Class CloudRepoSourceContext.Builder (2.12.0)

public static final class CloudRepoSourceContext.Builder extends GeneratedMessageV3.Builder<CloudRepoSourceContext.Builder> implements CloudRepoSourceContextOrBuilder

A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo.

Protobuf type grafeas.v1beta1.source.CloudRepoSourceContext

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudRepoSourceContext build()
Returns
TypeDescription
CloudRepoSourceContext

buildPartial()

public CloudRepoSourceContext buildPartial()
Returns
TypeDescription
CloudRepoSourceContext

clear()

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

clearAliasContext()

public CloudRepoSourceContext.Builder clearAliasContext()

An alias, which may be a branch or tag.

.grafeas.v1beta1.source.AliasContext alias_context = 3;

Returns
TypeDescription
CloudRepoSourceContext.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRepoId()

public CloudRepoSourceContext.Builder clearRepoId()

The ID of the repo.

.grafeas.v1beta1.source.RepoId repo_id = 1;

Returns
TypeDescription
CloudRepoSourceContext.Builder

clearRevision()

public CloudRepoSourceContext.Builder clearRevision()
Returns
TypeDescription
CloudRepoSourceContext.Builder

clearRevisionId()

public CloudRepoSourceContext.Builder clearRevisionId()

A revision ID.

string revision_id = 2;

Returns
TypeDescription
CloudRepoSourceContext.Builder

This builder for chaining.

clone()

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

getAliasContext()

public AliasContext getAliasContext()

An alias, which may be a branch or tag.

.grafeas.v1beta1.source.AliasContext alias_context = 3;

Returns
TypeDescription
AliasContext

The aliasContext.

getAliasContextBuilder()

public AliasContext.Builder getAliasContextBuilder()

An alias, which may be a branch or tag.

.grafeas.v1beta1.source.AliasContext alias_context = 3;

Returns
TypeDescription
AliasContext.Builder

getAliasContextOrBuilder()

public AliasContextOrBuilder getAliasContextOrBuilder()

An alias, which may be a branch or tag.

.grafeas.v1beta1.source.AliasContext alias_context = 3;

Returns
TypeDescription
AliasContextOrBuilder

getDefaultInstanceForType()

public CloudRepoSourceContext getDefaultInstanceForType()
Returns
TypeDescription
CloudRepoSourceContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRepoId()

public RepoId getRepoId()

The ID of the repo.

.grafeas.v1beta1.source.RepoId repo_id = 1;

Returns
TypeDescription
RepoId

The repoId.

getRepoIdBuilder()

public RepoId.Builder getRepoIdBuilder()

The ID of the repo.

.grafeas.v1beta1.source.RepoId repo_id = 1;

Returns
TypeDescription
RepoId.Builder

getRepoIdOrBuilder()

public RepoIdOrBuilder getRepoIdOrBuilder()

The ID of the repo.

.grafeas.v1beta1.source.RepoId repo_id = 1;

Returns
TypeDescription
RepoIdOrBuilder

getRevisionCase()

public CloudRepoSourceContext.RevisionCase getRevisionCase()
Returns
TypeDescription
CloudRepoSourceContext.RevisionCase

getRevisionId()

public String getRevisionId()

A revision ID.

string revision_id = 2;

Returns
TypeDescription
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

A revision ID.

string revision_id = 2;

Returns
TypeDescription
ByteString

The bytes for revisionId.

hasAliasContext()

public boolean hasAliasContext()

An alias, which may be a branch or tag.

.grafeas.v1beta1.source.AliasContext alias_context = 3;

Returns
TypeDescription
boolean

Whether the aliasContext field is set.

hasRepoId()

public boolean hasRepoId()

The ID of the repo.

.grafeas.v1beta1.source.RepoId repo_id = 1;

Returns
TypeDescription
boolean

Whether the repoId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAliasContext(AliasContext value)

public CloudRepoSourceContext.Builder mergeAliasContext(AliasContext value)

An alias, which may be a branch or tag.

.grafeas.v1beta1.source.AliasContext alias_context = 3;

Parameter
NameDescription
valueAliasContext
Returns
TypeDescription
CloudRepoSourceContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CloudRepoSourceContext other)

public CloudRepoSourceContext.Builder mergeFrom(CloudRepoSourceContext other)
Parameter
NameDescription
otherCloudRepoSourceContext
Returns
TypeDescription
CloudRepoSourceContext.Builder

mergeRepoId(RepoId value)

public CloudRepoSourceContext.Builder mergeRepoId(RepoId value)

The ID of the repo.

.grafeas.v1beta1.source.RepoId repo_id = 1;

Parameter
NameDescription
valueRepoId
Returns
TypeDescription
CloudRepoSourceContext.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAliasContext(AliasContext value)

public CloudRepoSourceContext.Builder setAliasContext(AliasContext value)

An alias, which may be a branch or tag.

.grafeas.v1beta1.source.AliasContext alias_context = 3;

Parameter
NameDescription
valueAliasContext
Returns
TypeDescription
CloudRepoSourceContext.Builder

setAliasContext(AliasContext.Builder builderForValue)

public CloudRepoSourceContext.Builder setAliasContext(AliasContext.Builder builderForValue)

An alias, which may be a branch or tag.

.grafeas.v1beta1.source.AliasContext alias_context = 3;

Parameter
NameDescription
builderForValueAliasContext.Builder
Returns
TypeDescription
CloudRepoSourceContext.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRepoId(RepoId value)

public CloudRepoSourceContext.Builder setRepoId(RepoId value)

The ID of the repo.

.grafeas.v1beta1.source.RepoId repo_id = 1;

Parameter
NameDescription
valueRepoId
Returns
TypeDescription
CloudRepoSourceContext.Builder

setRepoId(RepoId.Builder builderForValue)

public CloudRepoSourceContext.Builder setRepoId(RepoId.Builder builderForValue)

The ID of the repo.

.grafeas.v1beta1.source.RepoId repo_id = 1;

Parameter
NameDescription
builderForValueRepoId.Builder
Returns
TypeDescription
CloudRepoSourceContext.Builder

setRevisionId(String value)

public CloudRepoSourceContext.Builder setRevisionId(String value)

A revision ID.

string revision_id = 2;

Parameter
NameDescription
valueString

The revisionId to set.

Returns
TypeDescription
CloudRepoSourceContext.Builder

This builder for chaining.

setRevisionIdBytes(ByteString value)

public CloudRepoSourceContext.Builder setRevisionIdBytes(ByteString value)

A revision ID.

string revision_id = 2;

Parameter
NameDescription
valueByteString

The bytes for revisionId to set.

Returns
TypeDescription
CloudRepoSourceContext.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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