Class ListCustomModelsResponse.Builder (0.43.0)

public static final class ListCustomModelsResponse.Builder extends GeneratedMessageV3.Builder<ListCustomModelsResponse.Builder> implements ListCustomModelsResponseOrBuilder

Response message for SearchTuningService.ListCustomModels method.

Protobuf type google.cloud.discoveryengine.v1beta.ListCustomModelsResponse

Static Methods

getDescriptor()

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

Methods

addAllModels(Iterable<? extends CustomTuningModel> values)

public ListCustomModelsResponse.Builder addAllModels(Iterable<? extends CustomTuningModel> values)

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.CustomTuningModel>
Returns
Type Description
ListCustomModelsResponse.Builder

addModels(CustomTuningModel value)

public ListCustomModelsResponse.Builder addModels(CustomTuningModel value)

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Parameter
Name Description
value CustomTuningModel
Returns
Type Description
ListCustomModelsResponse.Builder

addModels(CustomTuningModel.Builder builderForValue)

public ListCustomModelsResponse.Builder addModels(CustomTuningModel.Builder builderForValue)

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Parameter
Name Description
builderForValue CustomTuningModel.Builder
Returns
Type Description
ListCustomModelsResponse.Builder

addModels(int index, CustomTuningModel value)

public ListCustomModelsResponse.Builder addModels(int index, CustomTuningModel value)

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Parameters
Name Description
index int
value CustomTuningModel
Returns
Type Description
ListCustomModelsResponse.Builder

addModels(int index, CustomTuningModel.Builder builderForValue)

public ListCustomModelsResponse.Builder addModels(int index, CustomTuningModel.Builder builderForValue)

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Parameters
Name Description
index int
builderForValue CustomTuningModel.Builder
Returns
Type Description
ListCustomModelsResponse.Builder

addModelsBuilder()

public CustomTuningModel.Builder addModelsBuilder()

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Returns
Type Description
CustomTuningModel.Builder

addModelsBuilder(int index)

public CustomTuningModel.Builder addModelsBuilder(int index)

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomTuningModel.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCustomModelsResponse build()
Returns
Type Description
ListCustomModelsResponse

buildPartial()

public ListCustomModelsResponse buildPartial()
Returns
Type Description
ListCustomModelsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearModels()

public ListCustomModelsResponse.Builder clearModels()

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Returns
Type Description
ListCustomModelsResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListCustomModelsResponse getDefaultInstanceForType()
Returns
Type Description
ListCustomModelsResponse

getDescriptorForType()

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

getModels(int index)

public CustomTuningModel getModels(int index)

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomTuningModel

getModelsBuilder(int index)

public CustomTuningModel.Builder getModelsBuilder(int index)

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomTuningModel.Builder

getModelsBuilderList()

public List<CustomTuningModel.Builder> getModelsBuilderList()

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Returns
Type Description
List<Builder>

getModelsCount()

public int getModelsCount()

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Returns
Type Description
int

getModelsList()

public List<CustomTuningModel> getModelsList()

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Returns
Type Description
List<CustomTuningModel>

getModelsOrBuilder(int index)

public CustomTuningModelOrBuilder getModelsOrBuilder(int index)

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomTuningModelOrBuilder

getModelsOrBuilderList()

public List<? extends CustomTuningModelOrBuilder> getModelsOrBuilderList()

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.CustomTuningModelOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListCustomModelsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeModels(int index)

public ListCustomModelsResponse.Builder removeModels(int index)

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Parameter
Name Description
index int
Returns
Type Description
ListCustomModelsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setModels(int index, CustomTuningModel value)

public ListCustomModelsResponse.Builder setModels(int index, CustomTuningModel value)

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Parameters
Name Description
index int
value CustomTuningModel
Returns
Type Description
ListCustomModelsResponse.Builder

setModels(int index, CustomTuningModel.Builder builderForValue)

public ListCustomModelsResponse.Builder setModels(int index, CustomTuningModel.Builder builderForValue)

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1beta.CustomTuningModel models = 1;

Parameters
Name Description
index int
builderForValue CustomTuningModel.Builder
Returns
Type Description
ListCustomModelsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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