Class FetchRemoteBranchesResponse.Builder (0.84.0)

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

FetchRemoteBranches response message.

Protobuf type google.cloud.dataform.v1.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.

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.

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 GeneratedMessage.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

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.