Class ListBranchesResponse.Builder (2.48.0)

public static final class ListBranchesResponse.Builder extends GeneratedMessageV3.Builder<ListBranchesResponse.Builder> implements ListBranchesResponseOrBuilder

Response for BranchService.ListBranches method.

Protobuf type google.cloud.retail.v2alpha.ListBranchesResponse

Static Methods

getDescriptor()

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

Methods

addAllBranches(Iterable<? extends Branch> values)

public ListBranchesResponse.Builder addAllBranches(Iterable<? extends Branch> values)

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.retail.v2alpha.Branch>
Returns
Type Description
ListBranchesResponse.Builder

addBranches(Branch value)

public ListBranchesResponse.Builder addBranches(Branch value)

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Parameter
Name Description
value Branch
Returns
Type Description
ListBranchesResponse.Builder

addBranches(Branch.Builder builderForValue)

public ListBranchesResponse.Builder addBranches(Branch.Builder builderForValue)

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Parameter
Name Description
builderForValue Branch.Builder
Returns
Type Description
ListBranchesResponse.Builder

addBranches(int index, Branch value)

public ListBranchesResponse.Builder addBranches(int index, Branch value)

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Parameters
Name Description
index int
value Branch
Returns
Type Description
ListBranchesResponse.Builder

addBranches(int index, Branch.Builder builderForValue)

public ListBranchesResponse.Builder addBranches(int index, Branch.Builder builderForValue)

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Parameters
Name Description
index int
builderForValue Branch.Builder
Returns
Type Description
ListBranchesResponse.Builder

addBranchesBuilder()

public Branch.Builder addBranchesBuilder()

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Returns
Type Description
Branch.Builder

addBranchesBuilder(int index)

public Branch.Builder addBranchesBuilder(int index)

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Parameter
Name Description
index int
Returns
Type Description
Branch.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListBranchesResponse build()
Returns
Type Description
ListBranchesResponse

buildPartial()

public ListBranchesResponse buildPartial()
Returns
Type Description
ListBranchesResponse

clear()

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

clearBranches()

public ListBranchesResponse.Builder clearBranches()

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Returns
Type Description
ListBranchesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBranches(int index)

public Branch getBranches(int index)

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Parameter
Name Description
index int
Returns
Type Description
Branch

getBranchesBuilder(int index)

public Branch.Builder getBranchesBuilder(int index)

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Parameter
Name Description
index int
Returns
Type Description
Branch.Builder

getBranchesBuilderList()

public List<Branch.Builder> getBranchesBuilderList()

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Returns
Type Description
List<Builder>

getBranchesCount()

public int getBranchesCount()

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Returns
Type Description
int

getBranchesList()

public List<Branch> getBranchesList()

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Returns
Type Description
List<Branch>

getBranchesOrBuilder(int index)

public BranchOrBuilder getBranchesOrBuilder(int index)

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Parameter
Name Description
index int
Returns
Type Description
BranchOrBuilder

getBranchesOrBuilderList()

public List<? extends BranchOrBuilder> getBranchesOrBuilderList()

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Returns
Type Description
List<? extends com.google.cloud.retail.v2alpha.BranchOrBuilder>

getDefaultInstanceForType()

public ListBranchesResponse getDefaultInstanceForType()
Returns
Type Description
ListBranchesResponse

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(ListBranchesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeBranches(int index)

public ListBranchesResponse.Builder removeBranches(int index)

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Parameter
Name Description
index int
Returns
Type Description
ListBranchesResponse.Builder

setBranches(int index, Branch value)

public ListBranchesResponse.Builder setBranches(int index, Branch value)

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Parameters
Name Description
index int
value Branch
Returns
Type Description
ListBranchesResponse.Builder

setBranches(int index, Branch.Builder builderForValue)

public ListBranchesResponse.Builder setBranches(int index, Branch.Builder builderForValue)

The Branches.

repeated .google.cloud.retail.v2alpha.Branch branches = 1;

Parameters
Name Description
index int
builderForValue Branch.Builder
Returns
Type Description
ListBranchesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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