Class CloudRepoSourceContext.Builder (1.29.0)

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

A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform).

Protobuf type google.devtools.source.v1.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.

.google.devtools.source.v1.AliasContext alias_context = 4;

Returns
TypeDescription
CloudRepoSourceContext.Builder

clearAliasName() (deprecated)

public CloudRepoSourceContext.Builder clearAliasName()

Deprecated. google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=95

The name of an alias (branch, tag, etc.).

string alias_name = 3 [deprecated = true];

Returns
TypeDescription
CloudRepoSourceContext.Builder

This builder for chaining.

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.

.google.devtools.source.v1.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.

.google.devtools.source.v1.AliasContext alias_context = 4;

Returns
TypeDescription
AliasContext

The aliasContext.

getAliasContextBuilder()

public AliasContext.Builder getAliasContextBuilder()

An alias, which may be a branch or tag.

.google.devtools.source.v1.AliasContext alias_context = 4;

Returns
TypeDescription
AliasContext.Builder

getAliasContextOrBuilder()

public AliasContextOrBuilder getAliasContextOrBuilder()

An alias, which may be a branch or tag.

.google.devtools.source.v1.AliasContext alias_context = 4;

Returns
TypeDescription
AliasContextOrBuilder

getAliasName() (deprecated)

public String getAliasName()

Deprecated. google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=95

The name of an alias (branch, tag, etc.).

string alias_name = 3 [deprecated = true];

Returns
TypeDescription
String

The aliasName.

getAliasNameBytes() (deprecated)

public ByteString getAliasNameBytes()

Deprecated. google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=95

The name of an alias (branch, tag, etc.).

string alias_name = 3 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for aliasName.

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.

.google.devtools.source.v1.RepoId repo_id = 1;

Returns
TypeDescription
RepoId

The repoId.

getRepoIdBuilder()

public RepoId.Builder getRepoIdBuilder()

The ID of the repo.

.google.devtools.source.v1.RepoId repo_id = 1;

Returns
TypeDescription
RepoId.Builder

getRepoIdOrBuilder()

public RepoIdOrBuilder getRepoIdOrBuilder()

The ID of the repo.

.google.devtools.source.v1.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.

.google.devtools.source.v1.AliasContext alias_context = 4;

Returns
TypeDescription
boolean

Whether the aliasContext field is set.

hasAliasName() (deprecated)

public boolean hasAliasName()

Deprecated. google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=95

The name of an alias (branch, tag, etc.).

string alias_name = 3 [deprecated = true];

Returns
TypeDescription
boolean

Whether the aliasName field is set.

hasRepoId()

public boolean hasRepoId()

The ID of the repo.

.google.devtools.source.v1.RepoId repo_id = 1;

Returns
TypeDescription
boolean

Whether the repoId field is set.

hasRevisionId()

public boolean hasRevisionId()

A revision ID.

string revision_id = 2;

Returns
TypeDescription
boolean

Whether the revisionId 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.

.google.devtools.source.v1.AliasContext alias_context = 4;

Parameter
NameDescription
valueAliasContext
Returns
TypeDescription
CloudRepoSourceContext.Builder

mergeFrom(CloudRepoSourceContext other)

public CloudRepoSourceContext.Builder mergeFrom(CloudRepoSourceContext other)
Parameter
NameDescription
otherCloudRepoSourceContext
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

mergeRepoId(RepoId value)

public CloudRepoSourceContext.Builder mergeRepoId(RepoId value)

The ID of the repo.

.google.devtools.source.v1.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.

.google.devtools.source.v1.AliasContext alias_context = 4;

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.

.google.devtools.source.v1.AliasContext alias_context = 4;

Parameter
NameDescription
builderForValueAliasContext.Builder
Returns
TypeDescription
CloudRepoSourceContext.Builder

setAliasName(String value) (deprecated)

public CloudRepoSourceContext.Builder setAliasName(String value)

Deprecated. google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=95

The name of an alias (branch, tag, etc.).

string alias_name = 3 [deprecated = true];

Parameter
NameDescription
valueString

The aliasName to set.

Returns
TypeDescription
CloudRepoSourceContext.Builder

This builder for chaining.

setAliasNameBytes(ByteString value) (deprecated)

public CloudRepoSourceContext.Builder setAliasNameBytes(ByteString value)

Deprecated. google.devtools.source.v1.CloudRepoSourceContext.alias_name is deprecated. See google/devtools/source/v1/source_context.proto;l=95

The name of an alias (branch, tag, etc.).

string alias_name = 3 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for aliasName to set.

Returns
TypeDescription
CloudRepoSourceContext.Builder

This builder for chaining.

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.

.google.devtools.source.v1.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.

.google.devtools.source.v1.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