Class ListControlsResponse.Builder (2.49.0)

public static final class ListControlsResponse.Builder extends GeneratedMessageV3.Builder<ListControlsResponse.Builder> implements ListControlsResponseOrBuilder

Response for ListControls method.

Protobuf type google.cloud.retail.v2.ListControlsResponse

Static Methods

getDescriptor()

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

Methods

addAllControls(Iterable<? extends Control> values)

public ListControlsResponse.Builder addAllControls(Iterable<? extends Control> values)

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.retail.v2.Control>
Returns
Type Description
ListControlsResponse.Builder

addControls(Control value)

public ListControlsResponse.Builder addControls(Control value)

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Parameter
Name Description
value Control
Returns
Type Description
ListControlsResponse.Builder

addControls(Control.Builder builderForValue)

public ListControlsResponse.Builder addControls(Control.Builder builderForValue)

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Parameter
Name Description
builderForValue Control.Builder
Returns
Type Description
ListControlsResponse.Builder

addControls(int index, Control value)

public ListControlsResponse.Builder addControls(int index, Control value)

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Parameters
Name Description
index int
value Control
Returns
Type Description
ListControlsResponse.Builder

addControls(int index, Control.Builder builderForValue)

public ListControlsResponse.Builder addControls(int index, Control.Builder builderForValue)

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Parameters
Name Description
index int
builderForValue Control.Builder
Returns
Type Description
ListControlsResponse.Builder

addControlsBuilder()

public Control.Builder addControlsBuilder()

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Returns
Type Description
Control.Builder

addControlsBuilder(int index)

public Control.Builder addControlsBuilder(int index)

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Parameter
Name Description
index int
Returns
Type Description
Control.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListControlsResponse build()
Returns
Type Description
ListControlsResponse

buildPartial()

public ListControlsResponse buildPartial()
Returns
Type Description
ListControlsResponse

clear()

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

clearControls()

public ListControlsResponse.Builder clearControls()

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Returns
Type Description
ListControlsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListControlsResponse.Builder clearNextPageToken()

Pagination token, if not returned indicates the last page.

string next_page_token = 2;

Returns
Type Description
ListControlsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getControls(int index)

public Control getControls(int index)

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Parameter
Name Description
index int
Returns
Type Description
Control

getControlsBuilder(int index)

public Control.Builder getControlsBuilder(int index)

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Parameter
Name Description
index int
Returns
Type Description
Control.Builder

getControlsBuilderList()

public List<Control.Builder> getControlsBuilderList()

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Returns
Type Description
List<Builder>

getControlsCount()

public int getControlsCount()

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Returns
Type Description
int

getControlsList()

public List<Control> getControlsList()

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Returns
Type Description
List<Control>

getControlsOrBuilder(int index)

public ControlOrBuilder getControlsOrBuilder(int index)

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Parameter
Name Description
index int
Returns
Type Description
ControlOrBuilder

getControlsOrBuilderList()

public List<? extends ControlOrBuilder> getControlsOrBuilderList()

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Returns
Type Description
List<? extends com.google.cloud.retail.v2.ControlOrBuilder>

getDefaultInstanceForType()

public ListControlsResponse getDefaultInstanceForType()
Returns
Type Description
ListControlsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Pagination token, if not returned indicates the last page.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Pagination token, if not returned indicates the last page.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListControlsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeControls(int index)

public ListControlsResponse.Builder removeControls(int index)

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Parameter
Name Description
index int
Returns
Type Description
ListControlsResponse.Builder

setControls(int index, Control value)

public ListControlsResponse.Builder setControls(int index, Control value)

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Parameters
Name Description
index int
value Control
Returns
Type Description
ListControlsResponse.Builder

setControls(int index, Control.Builder builderForValue)

public ListControlsResponse.Builder setControls(int index, Control.Builder builderForValue)

All the Controls for a given catalog.

repeated .google.cloud.retail.v2.Control controls = 1;

Parameters
Name Description
index int
builderForValue Control.Builder
Returns
Type Description
ListControlsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListControlsResponse.Builder setNextPageToken(String value)

Pagination token, if not returned indicates the last page.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListControlsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListControlsResponse.Builder setNextPageTokenBytes(ByteString value)

Pagination token, if not returned indicates the last page.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListControlsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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