Class ProjectRepoId.Builder (1.6.0)

publicstaticfinalclass ProjectRepoId.BuilderextendsGeneratedMessageV3.Builder<ProjectRepoId.Builder>implementsProjectRepoIdOrBuilder

Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31) and a repo name within that project.

Protobuf type google.devtools.source.v1.ProjectRepoId

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicProjectRepoId.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicProjectRepoIdbuild()
Returns
Type Description

buildPartial()

publicProjectRepoIdbuildPartial()
Returns
Type Description

clear()

publicProjectRepoId.Builderclear()
Returns
Type Description
Overrides

clearField(Descriptors.FieldDescriptor field)

publicProjectRepoId.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicProjectRepoId.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clearProjectId()

publicProjectRepoId.BuilderclearProjectId()

The ID of the project.

string project_id = 1;

Returns
Type Description
ProjectRepoId.Builder

This builder for chaining.

clearRepoName()

publicProjectRepoId.BuilderclearRepoName()

The name of the repo. Leave empty for the default repo.

string repo_name = 2;

Returns
Type Description
ProjectRepoId.Builder

This builder for chaining.

clone()

publicProjectRepoId.Builderclone()
Returns
Type Description
Overrides

getDefaultInstanceForType()

publicProjectRepoIdgetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getProjectId()

publicStringgetProjectId()

The ID of the project.

string project_id = 1;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

publicByteStringgetProjectIdBytes()

The ID of the project.

string project_id = 1;

Returns
Type Description
ByteString

The bytes for projectId.

getRepoName()

publicStringgetRepoName()

The name of the repo. Leave empty for the default repo.

string repo_name = 2;

Returns
Type Description
String

The repoName.

getRepoNameBytes()

publicByteStringgetRepoNameBytes()

The name of the repo. Leave empty for the default repo.

string repo_name = 2;

Returns
Type Description
ByteString

The bytes for repoName.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(ProjectRepoId other)

publicProjectRepoId.BuildermergeFrom(ProjectRepoIdother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicProjectRepoId.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicProjectRepoId.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalProjectRepoId.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicProjectRepoId.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setProjectId(String value)

publicProjectRepoId.BuildersetProjectId(Stringvalue)

The ID of the project.

string project_id = 1;

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
ProjectRepoId.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

publicProjectRepoId.BuildersetProjectIdBytes(ByteStringvalue)

The ID of the project.

string project_id = 1;

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
ProjectRepoId.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicProjectRepoId.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setRepoName(String value)

publicProjectRepoId.BuildersetRepoName(Stringvalue)

The name of the repo. Leave empty for the default repo.

string repo_name = 2;

Parameter
Name Description
value String

The repoName to set.

Returns
Type Description
ProjectRepoId.Builder

This builder for chaining.

setRepoNameBytes(ByteString value)

publicProjectRepoId.BuildersetRepoNameBytes(ByteStringvalue)

The name of the repo. Leave empty for the default repo.

string repo_name = 2;

Parameter
Name Description
value ByteString

The bytes for repoName to set.

Returns
Type Description
ProjectRepoId.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalProjectRepoId.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.