Class ListCustomModelsResponse.Builder (0.81.0)

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

Response message for SearchTuningService.ListCustomModels method.

Protobuf type google.cloud.discoveryengine.v1.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.v1.CustomTuningModel models = 1;

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

addModels(CustomTuningModel value)

public ListCustomModelsResponse.Builder addModels(CustomTuningModel value)

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1.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.v1.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.v1.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.v1.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.v1.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.v1.CustomTuningModel models = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomTuningModel.Builder

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

clearModels()

public ListCustomModelsResponse.Builder clearModels()

List of custom tuning models.

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

Returns
Type Description
ListCustomModelsResponse.Builder

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.v1.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.v1.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.v1.CustomTuningModel models = 1;

Returns
Type Description
List<Builder>

getModelsCount()

public int getModelsCount()

List of custom tuning models.

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

Returns
Type Description
int

getModelsList()

public List<CustomTuningModel> getModelsList()

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1.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.v1.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.v1.CustomTuningModel models = 1;

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

internalGetFieldAccessorTable()

protected GeneratedMessage.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

removeModels(int index)

public ListCustomModelsResponse.Builder removeModels(int index)

List of custom tuning models.

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

Parameter
Name Description
index int
Returns
Type Description
ListCustomModelsResponse.Builder

setModels(int index, CustomTuningModel value)

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

List of custom tuning models.

repeated .google.cloud.discoveryengine.v1.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.v1.CustomTuningModel models = 1;

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