Class GitSourceContext.Builder (1.29.0)

public static final class GitSourceContext.Builder extends GeneratedMessageV3.Builder<GitSourceContext.Builder> implements GitSourceContextOrBuilder

A GitSourceContext denotes a particular revision in a third party Git repository (e.g. GitHub).

Protobuf type google.devtools.source.v1.GitSourceContext

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GitSourceContext build()
Returns
TypeDescription
GitSourceContext

buildPartial()

public GitSourceContext buildPartial()
Returns
TypeDescription
GitSourceContext

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRevisionId()

public GitSourceContext.Builder clearRevisionId()

Git commit hash. required.

string revision_id = 2;

Returns
TypeDescription
GitSourceContext.Builder

This builder for chaining.

clearUrl()

public GitSourceContext.Builder clearUrl()

Git repository URL.

string url = 1;

Returns
TypeDescription
GitSourceContext.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GitSourceContext getDefaultInstanceForType()
Returns
TypeDescription
GitSourceContext

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRevisionId()

public String getRevisionId()

Git commit hash. required.

string revision_id = 2;

Returns
TypeDescription
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

Git commit hash. required.

string revision_id = 2;

Returns
TypeDescription
ByteString

The bytes for revisionId.

getUrl()

public String getUrl()

Git repository URL.

string url = 1;

Returns
TypeDescription
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

Git repository URL.

string url = 1;

Returns
TypeDescription
ByteString

The bytes for url.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GitSourceContext other)

public GitSourceContext.Builder mergeFrom(GitSourceContext other)
Parameter
NameDescription
otherGitSourceContext
Returns
TypeDescription
GitSourceContext.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRevisionId(String value)

public GitSourceContext.Builder setRevisionId(String value)

Git commit hash. required.

string revision_id = 2;

Parameter
NameDescription
valueString

The revisionId to set.

Returns
TypeDescription
GitSourceContext.Builder

This builder for chaining.

setRevisionIdBytes(ByteString value)

public GitSourceContext.Builder setRevisionIdBytes(ByteString value)

Git commit hash. required.

string revision_id = 2;

Parameter
NameDescription
valueByteString

The bytes for revisionId to set.

Returns
TypeDescription
GitSourceContext.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUrl(String value)

public GitSourceContext.Builder setUrl(String value)

Git repository URL.

string url = 1;

Parameter
NameDescription
valueString

The url to set.

Returns
TypeDescription
GitSourceContext.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public GitSourceContext.Builder setUrlBytes(ByteString value)

Git repository URL.

string url = 1;

Parameter
NameDescription
valueByteString

The bytes for url to set.

Returns
TypeDescription
GitSourceContext.Builder

This builder for chaining.