Class FetchGitRefsResponse.Builder (3.32.0)

public static final class FetchGitRefsResponse.Builder extends GeneratedMessageV3.Builder<FetchGitRefsResponse.Builder> implements FetchGitRefsResponseOrBuilder

Response for fetching git refs

Protobuf type google.devtools.cloudbuild.v2.FetchGitRefsResponse

Static Methods

getDescriptor()

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

Methods

addAllRefNames(Iterable<String> values)

public FetchGitRefsResponse.Builder addAllRefNames(Iterable<String> values)

Name of the refs fetched.

repeated string ref_names = 1;

Parameter
NameDescription
valuesIterable<String>

The refNames to add.

Returns
TypeDescription
FetchGitRefsResponse.Builder

This builder for chaining.

addRefNames(String value)

public FetchGitRefsResponse.Builder addRefNames(String value)

Name of the refs fetched.

repeated string ref_names = 1;

Parameter
NameDescription
valueString

The refNames to add.

Returns
TypeDescription
FetchGitRefsResponse.Builder

This builder for chaining.

addRefNamesBytes(ByteString value)

public FetchGitRefsResponse.Builder addRefNamesBytes(ByteString value)

Name of the refs fetched.

repeated string ref_names = 1;

Parameter
NameDescription
valueByteString

The bytes of the refNames to add.

Returns
TypeDescription
FetchGitRefsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FetchGitRefsResponse build()
Returns
TypeDescription
FetchGitRefsResponse

buildPartial()

public FetchGitRefsResponse buildPartial()
Returns
TypeDescription
FetchGitRefsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRefNames()

public FetchGitRefsResponse.Builder clearRefNames()

Name of the refs fetched.

repeated string ref_names = 1;

Returns
TypeDescription
FetchGitRefsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FetchGitRefsResponse getDefaultInstanceForType()
Returns
TypeDescription
FetchGitRefsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRefNames(int index)

public String getRefNames(int index)

Name of the refs fetched.

repeated string ref_names = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The refNames at the given index.

getRefNamesBytes(int index)

public ByteString getRefNamesBytes(int index)

Name of the refs fetched.

repeated string ref_names = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the refNames at the given index.

getRefNamesCount()

public int getRefNamesCount()

Name of the refs fetched.

repeated string ref_names = 1;

Returns
TypeDescription
int

The count of refNames.

getRefNamesList()

public ProtocolStringList getRefNamesList()

Name of the refs fetched.

repeated string ref_names = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the refNames.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FetchGitRefsResponse other)

public FetchGitRefsResponse.Builder mergeFrom(FetchGitRefsResponse other)
Parameter
NameDescription
otherFetchGitRefsResponse
Returns
TypeDescription
FetchGitRefsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setRefNames(int index, String value)

public FetchGitRefsResponse.Builder setRefNames(int index, String value)

Name of the refs fetched.

repeated string ref_names = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The refNames to set.

Returns
TypeDescription
FetchGitRefsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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