Class FetchRemoteBranchesResponse.Builder (0.48.0)

public static final class FetchRemoteBranchesResponse.Builder extends GeneratedMessageV3.Builder<FetchRemoteBranchesResponse.Builder> implements FetchRemoteBranchesResponseOrBuilder

FetchRemoteBranches response message.

Protobuf type google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllBranches(Iterable<String> values)

public FetchRemoteBranchesResponse.Builder addAllBranches(Iterable<String> values)

The remote repository's branch names.

repeated string branches = 1;

Parameter
Name Description
values Iterable<String>

The branches to add.

Returns
Type Description
FetchRemoteBranchesResponse.Builder

This builder for chaining.

addBranches(String value)

public FetchRemoteBranchesResponse.Builder addBranches(String value)

The remote repository's branch names.

repeated string branches = 1;

Parameter
Name Description
value String

The branches to add.

Returns
Type Description
FetchRemoteBranchesResponse.Builder

This builder for chaining.

addBranchesBytes(ByteString value)

public FetchRemoteBranchesResponse.Builder addBranchesBytes(ByteString value)

The remote repository's branch names.

repeated string branches = 1;

Parameter
Name Description
value ByteString

The bytes of the branches to add.

Returns
Type Description
FetchRemoteBranchesResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FetchRemoteBranchesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FetchRemoteBranchesResponse.Builder
Overrides

build()

public FetchRemoteBranchesResponse build()
Returns
Type Description
FetchRemoteBranchesResponse

buildPartial()

public FetchRemoteBranchesResponse buildPartial()
Returns
Type Description
FetchRemoteBranchesResponse

clear()

public FetchRemoteBranchesResponse.Builder clear()
Returns
Type Description
FetchRemoteBranchesResponse.Builder
Overrides

clearBranches()

public FetchRemoteBranchesResponse.Builder clearBranches()

The remote repository's branch names.

repeated string branches = 1;

Returns
Type Description
FetchRemoteBranchesResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public FetchRemoteBranchesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
FetchRemoteBranchesResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FetchRemoteBranchesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
FetchRemoteBranchesResponse.Builder
Overrides

clone()

public FetchRemoteBranchesResponse.Builder clone()
Returns
Type Description
FetchRemoteBranchesResponse.Builder
Overrides

getBranches(int index)

public String getBranches(int index)

The remote repository's branch names.

repeated string branches = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The branches at the given index.

getBranchesBytes(int index)

public ByteString getBranchesBytes(int index)

The remote repository's branch names.

repeated string branches = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the branches at the given index.

getBranchesCount()

public int getBranchesCount()

The remote repository's branch names.

repeated string branches = 1;

Returns
Type Description
int

The count of branches.

getBranchesList()

public ProtocolStringList getBranchesList()

The remote repository's branch names.

repeated string branches = 1;

Returns
Type Description
ProtocolStringList

A list containing the branches.

getDefaultInstanceForType()

public FetchRemoteBranchesResponse getDefaultInstanceForType()
Returns
Type Description
FetchRemoteBranchesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchRemoteBranchesResponse other)

public FetchRemoteBranchesResponse.Builder mergeFrom(FetchRemoteBranchesResponse other)
Parameter
Name Description
other FetchRemoteBranchesResponse
Returns
Type Description
FetchRemoteBranchesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FetchRemoteBranchesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FetchRemoteBranchesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FetchRemoteBranchesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FetchRemoteBranchesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FetchRemoteBranchesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FetchRemoteBranchesResponse.Builder
Overrides

setBranches(int index, String value)

public FetchRemoteBranchesResponse.Builder setBranches(int index, String value)

The remote repository's branch names.

repeated string branches = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The branches to set.

Returns
Type Description
FetchRemoteBranchesResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public FetchRemoteBranchesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
FetchRemoteBranchesResponse.Builder
Overrides

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

public FetchRemoteBranchesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FetchRemoteBranchesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FetchRemoteBranchesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FetchRemoteBranchesResponse.Builder
Overrides