Class CloudRepoSourceContext.Builder (2.31.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.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.

.grafeas.v1.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.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.

.grafeas.v1.AliasContext alias_context = 3;

Returns
TypeDescription
AliasContext

The aliasContext.

getAliasContextBuilder()

public AliasContext.Builder getAliasContextBuilder()

An alias, which may be a branch or tag.

.grafeas.v1.AliasContext alias_context = 3;

Returns
TypeDescription
AliasContext.Builder

getAliasContextOrBuilder()

public AliasContextOrBuilder getAliasContextOrBuilder()

An alias, which may be a branch or tag.

.grafeas.v1.AliasContext alias_context = 3;

Returns
TypeDescription