public static final class ListModelsResponse.Builder extends GeneratedMessageV3.Builder<ListModelsResponse.Builder> implements ListModelsResponseOrBuilder
Response to a ListModelRequest.
Protobuf type google.cloud.retail.v2beta.ListModelsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllModels(Iterable<? extends Model> values)
public ListModelsResponse.Builder addAllModels(Iterable<? extends Model> values)
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.retail.v2beta.Model>
|
Returns
addModels(Model value)
public ListModelsResponse.Builder addModels(Model value)
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Parameter
Name | Description |
value | Model
|
Returns
addModels(Model.Builder builderForValue)
public ListModelsResponse.Builder addModels(Model.Builder builderForValue)
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Parameter
Returns
addModels(int index, Model value)
public ListModelsResponse.Builder addModels(int index, Model value)
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Parameters
Returns
addModels(int index, Model.Builder builderForValue)
public ListModelsResponse.Builder addModels(int index, Model.Builder builderForValue)
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Parameters
Returns
addModelsBuilder()
public Model.Builder addModelsBuilder()
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Returns
addModelsBuilder(int index)
public Model.Builder addModelsBuilder(int index)
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListModelsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListModelsResponse build()
Returns
buildPartial()
public ListModelsResponse buildPartial()
Returns
clear()
public ListModelsResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListModelsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearModels()
public ListModelsResponse.Builder clearModels()
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Returns
clearNextPageToken()
public ListModelsResponse.Builder clearNextPageToken()
Pagination token, if not returned indicates the last page.
string next_page_token = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListModelsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ListModelsResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListModelsResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getModels(int index)
public Model getModels(int index)
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Parameter
Returns
getModelsBuilder(int index)
public Model.Builder getModelsBuilder(int index)
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Parameter
Returns
getModelsBuilderList()
public List<Model.Builder> getModelsBuilderList()
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Returns
getModelsCount()
public int getModelsCount()
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Returns
getModelsList()
public List<Model> getModelsList()
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Returns
getModelsOrBuilder(int index)
public ModelOrBuilder getModelsOrBuilder(int index)
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Parameter
Returns
getModelsOrBuilderList()
public List<? extends ModelOrBuilder> getModelsOrBuilderList()
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Returns
Type | Description |
List<? extends com.google.cloud.retail.v2beta.ModelOrBuilder> | |
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListModelsResponse other)
public ListModelsResponse.Builder mergeFrom(ListModelsResponse other)
Parameter
Returns
public ListModelsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListModelsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListModelsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeModels(int index)
public ListModelsResponse.Builder removeModels(int index)
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListModelsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setModels(int index, Model value)
public ListModelsResponse.Builder setModels(int index, Model value)
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Parameters
Returns
setModels(int index, Model.Builder builderForValue)
public ListModelsResponse.Builder setModels(int index, Model.Builder builderForValue)
List of Models.
repeated .google.cloud.retail.v2beta.Model models = 1;
Parameters
Returns
setNextPageToken(String value)
public ListModelsResponse.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
setNextPageTokenBytes(ByteString value)
public ListModelsResponse.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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListModelsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListModelsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides