Class ModelFeatures.Builder (4.42.0)

public static final class ModelFeatures.Builder extends GeneratedMessageV3.Builder<ModelFeatures.Builder> implements ModelFeaturesOrBuilder

Represents the collection of features belonging to a model

Protobuf type google.cloud.speech.v2.ModelFeatures

Static Methods

getDescriptor()

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

Methods

addAllModelFeature(Iterable<? extends ModelFeature> values)

public ModelFeatures.Builder addAllModelFeature(Iterable<? extends ModelFeature> values)

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.speech.v2.ModelFeature>
Returns
Type Description
ModelFeatures.Builder

addModelFeature(ModelFeature value)

public ModelFeatures.Builder addModelFeature(ModelFeature value)

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Parameter
Name Description
value ModelFeature
Returns
Type Description
ModelFeatures.Builder

addModelFeature(ModelFeature.Builder builderForValue)

public ModelFeatures.Builder addModelFeature(ModelFeature.Builder builderForValue)

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Parameter
Name Description
builderForValue ModelFeature.Builder
Returns
Type Description
ModelFeatures.Builder

addModelFeature(int index, ModelFeature value)

public ModelFeatures.Builder addModelFeature(int index, ModelFeature value)

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Parameters
Name Description
index int
value ModelFeature
Returns
Type Description
ModelFeatures.Builder

addModelFeature(int index, ModelFeature.Builder builderForValue)

public ModelFeatures.Builder addModelFeature(int index, ModelFeature.Builder builderForValue)

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Parameters
Name Description
index int
builderForValue ModelFeature.Builder
Returns
Type Description
ModelFeatures.Builder

addModelFeatureBuilder()

public ModelFeature.Builder addModelFeatureBuilder()

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Returns
Type Description
ModelFeature.Builder

addModelFeatureBuilder(int index)

public ModelFeature.Builder addModelFeatureBuilder(int index)

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Parameter
Name Description
index int
Returns
Type Description
ModelFeature.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ModelFeatures build()
Returns
Type Description
ModelFeatures

buildPartial()

public ModelFeatures buildPartial()
Returns
Type Description
ModelFeatures

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearModelFeature()

public ModelFeatures.Builder clearModelFeature()

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Returns
Type Description
ModelFeatures.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ModelFeatures getDefaultInstanceForType()
Returns
Type Description
ModelFeatures

getDescriptorForType()

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

getModelFeature(int index)

public ModelFeature getModelFeature(int index)

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Parameter
Name Description
index int
Returns
Type Description
ModelFeature

getModelFeatureBuilder(int index)

public ModelFeature.Builder getModelFeatureBuilder(int index)

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Parameter
Name Description
index int
Returns
Type Description
ModelFeature.Builder

getModelFeatureBuilderList()

public List<ModelFeature.Builder> getModelFeatureBuilderList()

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Returns
Type Description
List<Builder>

getModelFeatureCount()

public int getModelFeatureCount()

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Returns
Type Description
int

getModelFeatureList()

public List<ModelFeature> getModelFeatureList()

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Returns
Type Description
List<ModelFeature>

getModelFeatureOrBuilder(int index)

public ModelFeatureOrBuilder getModelFeatureOrBuilder(int index)

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Parameter
Name Description
index int
Returns
Type Description
ModelFeatureOrBuilder

getModelFeatureOrBuilderList()

public List<? extends ModelFeatureOrBuilder> getModelFeatureOrBuilderList()

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Returns
Type Description
List<? extends com.google.cloud.speech.v2.ModelFeatureOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ModelFeatures other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeModelFeature(int index)

public ModelFeatures.Builder removeModelFeature(int index)

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Parameter
Name Description
index int
Returns
Type Description
ModelFeatures.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setModelFeature(int index, ModelFeature value)

public ModelFeatures.Builder setModelFeature(int index, ModelFeature value)

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Parameters
Name Description
index int
value ModelFeature
Returns
Type Description
ModelFeatures.Builder

setModelFeature(int index, ModelFeature.Builder builderForValue)

public ModelFeatures.Builder setModelFeature(int index, ModelFeature.Builder builderForValue)

Repeated field that contains all features of the model

repeated .google.cloud.speech.v2.ModelFeature model_feature = 1;

Parameters
Name Description
index int
builderForValue ModelFeature.Builder
Returns
Type Description
ModelFeatures.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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