Class LocationsMetadata.Builder (4.50.0)

public static final class LocationsMetadata.Builder extends GeneratedMessageV3.Builder<LocationsMetadata.Builder> implements LocationsMetadataOrBuilder

Main metadata for the Locations API for STT V2. Currently this is just the metadata about locales, models, and features

Protobuf type google.cloud.speech.v2.LocationsMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LocationsMetadata build()
Returns
Type Description
LocationsMetadata

buildPartial()

public LocationsMetadata buildPartial()
Returns
Type Description
LocationsMetadata

clear()

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

clearAccessMetadata()

public LocationsMetadata.Builder clearAccessMetadata()

Information about access metadata for the region and given project.

.google.cloud.speech.v2.AccessMetadata access_metadata = 2;

Returns
Type Description
LocationsMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLanguages()

public LocationsMetadata.Builder clearLanguages()

Information about available locales, models, and features represented in the hierarchical structure of locales -> models -> features

.google.cloud.speech.v2.LanguageMetadata languages = 1;

Returns
Type Description
LocationsMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAccessMetadata()

public AccessMetadata getAccessMetadata()

Information about access metadata for the region and given project.

.google.cloud.speech.v2.AccessMetadata access_metadata = 2;

Returns
Type Description
AccessMetadata

The accessMetadata.

getAccessMetadataBuilder()

public AccessMetadata.Builder getAccessMetadataBuilder()

Information about access metadata for the region and given project.

.google.cloud.speech.v2.AccessMetadata access_metadata = 2;

Returns
Type Description
AccessMetadata.Builder

getAccessMetadataOrBuilder()

public AccessMetadataOrBuilder getAccessMetadataOrBuilder()

Information about access metadata for the region and given project.

.google.cloud.speech.v2.AccessMetadata access_metadata = 2;

Returns
Type Description
AccessMetadataOrBuilder

getDefaultInstanceForType()

public LocationsMetadata getDefaultInstanceForType()
Returns
Type Description
LocationsMetadata

getDescriptorForType()

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

getLanguages()

public LanguageMetadata getLanguages()

Information about available locales, models, and features represented in the hierarchical structure of locales -> models -> features

.google.cloud.speech.v2.LanguageMetadata languages = 1;

Returns
Type Description
LanguageMetadata

The languages.

getLanguagesBuilder()

public LanguageMetadata.Builder getLanguagesBuilder()

Information about available locales, models, and features represented in the hierarchical structure of locales -> models -> features

.google.cloud.speech.v2.LanguageMetadata languages = 1;

Returns
Type Description
LanguageMetadata.Builder

getLanguagesOrBuilder()

public LanguageMetadataOrBuilder getLanguagesOrBuilder()

Information about available locales, models, and features represented in the hierarchical structure of locales -> models -> features

.google.cloud.speech.v2.LanguageMetadata languages = 1;

Returns
Type Description
LanguageMetadataOrBuilder

hasAccessMetadata()

public boolean hasAccessMetadata()

Information about access metadata for the region and given project.

.google.cloud.speech.v2.AccessMetadata access_metadata = 2;

Returns
Type Description
boolean

Whether the accessMetadata field is set.

hasLanguages()

public boolean hasLanguages()

Information about available locales, models, and features represented in the hierarchical structure of locales -> models -> features

.google.cloud.speech.v2.LanguageMetadata languages = 1;

Returns
Type Description
boolean

Whether the languages field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAccessMetadata(AccessMetadata value)

public LocationsMetadata.Builder mergeAccessMetadata(AccessMetadata value)

Information about access metadata for the region and given project.

.google.cloud.speech.v2.AccessMetadata access_metadata = 2;

Parameter
Name Description
value AccessMetadata
Returns
Type Description
LocationsMetadata.Builder

mergeFrom(LocationsMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLanguages(LanguageMetadata value)

public LocationsMetadata.Builder mergeLanguages(LanguageMetadata value)

Information about available locales, models, and features represented in the hierarchical structure of locales -> models -> features

.google.cloud.speech.v2.LanguageMetadata languages = 1;

Parameter
Name Description
value LanguageMetadata
Returns
Type Description
LocationsMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAccessMetadata(AccessMetadata value)

public LocationsMetadata.Builder setAccessMetadata(AccessMetadata value)

Information about access metadata for the region and given project.

.google.cloud.speech.v2.AccessMetadata access_metadata = 2;

Parameter
Name Description
value AccessMetadata
Returns
Type Description
LocationsMetadata.Builder

setAccessMetadata(AccessMetadata.Builder builderForValue)

public LocationsMetadata.Builder setAccessMetadata(AccessMetadata.Builder builderForValue)

Information about access metadata for the region and given project.

.google.cloud.speech.v2.AccessMetadata access_metadata = 2;

Parameter
Name Description
builderForValue AccessMetadata.Builder
Returns
Type Description
LocationsMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLanguages(LanguageMetadata value)

public LocationsMetadata.Builder setLanguages(LanguageMetadata value)

Information about available locales, models, and features represented in the hierarchical structure of locales -> models -> features

.google.cloud.speech.v2.LanguageMetadata languages = 1;

Parameter
Name Description
value LanguageMetadata
Returns
Type Description
LocationsMetadata.Builder

setLanguages(LanguageMetadata.Builder builderForValue)

public LocationsMetadata.Builder setLanguages(LanguageMetadata.Builder builderForValue)

Information about available locales, models, and features represented in the hierarchical structure of locales -> models -> features

.google.cloud.speech.v2.LanguageMetadata languages = 1;

Parameter
Name Description
builderForValue LanguageMetadata.Builder
Returns
Type Description
LocationsMetadata.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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