Class ListControlsResponse.Builder (2.18.0)

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

Response for ListControls method.

Protobuf type google.cloud.retail.v2beta.ListControlsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v2beta.Control controls = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.retail.v2beta.Control>
Returns
TypeDescription
ListControlsResponse.Builder

addControls(Control value)

public ListControlsResponse.Builder addControls(Control value)

All the Controls for a given catalog.

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

Parameter
NameDescription
valueControl
Returns
TypeDescription
ListControlsResponse.Builder

addControls(Control.Builder builderForValue)

public ListControlsResponse.Builder addControls(Control.Builder builderForValue)

All the Controls for a given catalog.

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

Parameter
NameDescription
builderForValueControl.Builder
Returns
TypeDescription
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.v2beta.Control controls = 1;

Parameters
NameDescription
indexint
valueControl
Returns
TypeDescription
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.v2beta.Control controls = 1;

Parameters
NameDescription
indexint
builderForValueControl.Builder
Returns
TypeDescription
ListControlsResponse.Builder

addControlsBuilder()

public Control.Builder addControlsBuilder()

All the Controls for a given catalog.

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

Returns
TypeDescription
Control.Builder

addControlsBuilder(int index)

public Control.Builder addControlsBuilder(int index)

All the Controls for a given catalog.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Control.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListControlsResponse build()
Returns
TypeDescription
ListControlsResponse

buildPartial()

public ListControlsResponse buildPartial()
Returns
TypeDescription
ListControlsResponse

clear()

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

clearControls()

public ListControlsResponse.Builder clearControls()

All the Controls for a given catalog.

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

Returns
TypeDescription
ListControlsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListControlsResponse.Builder clearNextPageToken()

Pagination token, if not returned indicates the last page.

string next_page_token = 2;

Returns
TypeDescription
ListControlsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getControls(int index)

public Control getControls(int index)

All the Controls for a given catalog.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Control

getControlsBuilder(int index)

public Control.Builder getControlsBuilder(int index)

All the Controls for a given catalog.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Control.Builder

getControlsBuilderList()

public List<Control.Builder> getControlsBuilderList()

All the Controls for a given catalog.

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

Returns
TypeDescription
List<Builder>

getControlsCount()

public int getControlsCount()

All the Controls for a given catalog.

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

Returns
TypeDescription
int

getControlsList()

public List<Control> getControlsList()

All the Controls for a given catalog.

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

Returns
TypeDescription
List<Control>

getControlsOrBuilder(int index)

public ControlOrBuilder getControlsOrBuilder(int index)

All the Controls for a given catalog.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ControlOrBuilder

getControlsOrBuilderList()

public List<? extends ControlOrBuilder> getControlsOrBuilderList()

All the Controls for a given catalog.

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

Returns
TypeDescription
List<? extends com.google.cloud.retail.v2beta.ControlOrBuilder>

getDefaultInstanceForType()

public ListControlsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListControlsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Pagination token, if not returned indicates the last page.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Pagination token, if not returned indicates the last page.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListControlsResponse other)

public ListControlsResponse.Builder mergeFrom(ListControlsResponse other)
Parameter
NameDescription
otherListControlsResponse
Returns
TypeDescription
ListControlsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeControls(int index)

public ListControlsResponse.Builder removeControls(int index)

All the Controls for a given catalog.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v2beta.Control controls = 1;

Parameters
NameDescription
indexint
valueControl
Returns
TypeDescription
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.v2beta.Control controls = 1;

Parameters
NameDescription
indexint
builderForValueControl.Builder
Returns
TypeDescription
ListControlsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListControlsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListControlsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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