Class RepoId.Builder (2.33.0)

public static final class RepoId.Builder extends GeneratedMessageV3.Builder<RepoId.Builder> implements RepoIdOrBuilder

A unique identifier for a Cloud Repo.

Protobuf type grafeas.v1beta1.source.RepoId

Implements

RepoIdOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RepoId.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RepoId.Builder
Overrides

build()

public RepoId build()
Returns
TypeDescription
RepoId

buildPartial()

public RepoId buildPartial()
Returns
TypeDescription
RepoId

clear()

public RepoId.Builder clear()
Returns
TypeDescription
RepoId.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RepoId.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RepoId.Builder
Overrides

clearId()

public RepoId.Builder clearId()
Returns
TypeDescription
RepoId.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public RepoId.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RepoId.Builder
Overrides

clearProjectRepoId()

public RepoId.Builder clearProjectRepoId()

A combination of a project ID and a repo name.

.grafeas.v1beta1.source.ProjectRepoId project_repo_id = 1;

Returns
TypeDescription
RepoId.Builder

clearUid()

public RepoId.Builder clearUid()

A server-assigned, globally unique identifier.

string uid = 2;

Returns
TypeDescription
RepoId.Builder

This builder for chaining.

clone()

public RepoId.Builder clone()
Returns
TypeDescription
RepoId.Builder
Overrides

getDefaultInstanceForType()

public RepoId getDefaultInstanceForType()
Returns
TypeDescription
RepoId

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIdCase()

public RepoId.IdCase getIdCase()
Returns
TypeDescription
RepoId.IdCase

getProjectRepoId()

public ProjectRepoId getProjectRepoId()

A combination of a project ID and a repo name.

.grafeas.v1beta1.source.ProjectRepoId project_repo_id = 1;

Returns
TypeDescription
ProjectRepoId

The projectRepoId.

getProjectRepoIdBuilder()

public ProjectRepoId.Builder getProjectRepoIdBuilder()

A combination of a project ID and a repo name.

.grafeas.v1beta1.source.ProjectRepoId project_repo_id = 1;

Returns
TypeDescription
ProjectRepoId.Builder

getProjectRepoIdOrBuilder()

public ProjectRepoIdOrBuilder getProjectRepoIdOrBuilder()

A combination of a project ID and a repo name.

.grafeas.v1beta1.source.ProjectRepoId project_repo_id = 1;

Returns
TypeDescription
ProjectRepoIdOrBuilder

getUid()

public String getUid()

A server-assigned, globally unique identifier.

string uid = 2;

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

A server-assigned, globally unique identifier.

string uid = 2;

Returns
TypeDescription
ByteString

The bytes for uid.

hasProjectRepoId()

public boolean hasProjectRepoId()

A combination of a project ID and a repo name.

.grafeas.v1beta1.source.ProjectRepoId project_repo_id = 1;

Returns
TypeDescription
boolean

Whether the projectRepoId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RepoId.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RepoId.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RepoId.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RepoId.Builder
Overrides

mergeFrom(RepoId other)

public RepoId.Builder mergeFrom(RepoId other)
Parameter
NameDescription
otherRepoId
Returns
TypeDescription
RepoId.Builder

mergeProjectRepoId(ProjectRepoId value)

public RepoId.Builder mergeProjectRepoId(ProjectRepoId value)

A combination of a project ID and a repo name.

.grafeas.v1beta1.source.ProjectRepoId project_repo_id = 1;

Parameter
NameDescription
valueProjectRepoId
Returns
TypeDescription
RepoId.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RepoId.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RepoId.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RepoId.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RepoId.Builder
Overrides

setProjectRepoId(ProjectRepoId value)

public RepoId.Builder setProjectRepoId(ProjectRepoId value)

A combination of a project ID and a repo name.

.grafeas.v1beta1.source.ProjectRepoId project_repo_id = 1;

Parameter
NameDescription
valueProjectRepoId
Returns
TypeDescription
RepoId.Builder

setProjectRepoId(ProjectRepoId.Builder builderForValue)

public RepoId.Builder setProjectRepoId(ProjectRepoId.Builder builderForValue)

A combination of a project ID and a repo name.

.grafeas.v1beta1.source.ProjectRepoId project_repo_id = 1;

Parameter
NameDescription
builderForValueProjectRepoId.Builder
Returns
TypeDescription
RepoId.Builder

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

public RepoId.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RepoId.Builder
Overrides

setUid(String value)

public RepoId.Builder setUid(String value)

A server-assigned, globally unique identifier.

string uid = 2;

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
RepoId.Builder

This builder for chaining.

setUidBytes(ByteString value)

public RepoId.Builder setUidBytes(ByteString value)

A server-assigned, globally unique identifier.

string uid = 2;

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
RepoId.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RepoId.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RepoId.Builder
Overrides