Class GetPhraseSetRequest.Builder (2.4.0)

public static final class GetPhraseSetRequest.Builder extends GeneratedMessageV3.Builder<GetPhraseSetRequest.Builder> implements GetPhraseSetRequestOrBuilder

Message sent by the client for the GetPhraseSet method.

Protobuf type google.cloud.speech.v1.GetPhraseSetRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GetPhraseSetRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetPhraseSetRequest.Builder
Overrides

build()

public GetPhraseSetRequest build()
Returns
TypeDescription
GetPhraseSetRequest

buildPartial()

public GetPhraseSetRequest buildPartial()
Returns
TypeDescription
GetPhraseSetRequest

clear()

public GetPhraseSetRequest.Builder clear()
Returns
TypeDescription
GetPhraseSetRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetPhraseSetRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetPhraseSetRequest.Builder
Overrides

clearName()

public GetPhraseSetRequest.Builder clearName()

Required. The name of the phrase set to retrieve. Format: projects/{project}/locations/{location}/phraseSets/{phrase_set} Speech-to-Text supports three locations: global, us (US North America), and eu (Europe). If you are calling the speech.googleapis.com endpoint, use the global location. To specify a region, use a regional endpoint with matching us or eu location value.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GetPhraseSetRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetPhraseSetRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetPhraseSetRequest.Builder
Overrides

clone()

public GetPhraseSetRequest.Builder clone()
Returns
TypeDescription
GetPhraseSetRequest.Builder
Overrides

getDefaultInstanceForType()

public GetPhraseSetRequest getDefaultInstanceForType()
Returns
TypeDescription
GetPhraseSetRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The name of the phrase set to retrieve. Format: projects/{project}/locations/{location}/phraseSets/{phrase_set} Speech-to-Text supports three locations: global, us (US North America), and eu (Europe). If you are calling the speech.googleapis.com endpoint, use the global location. To specify a region, use a regional endpoint with matching us or eu location value.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the phrase set to retrieve. Format: projects/{project}/locations/{location}/phraseSets/{phrase_set} Speech-to-Text supports three locations: global, us (US North America), and eu (Europe). If you are calling the speech.googleapis.com endpoint, use the global location. To specify a region, use a regional endpoint with matching us or eu location value.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetPhraseSetRequest other)

public GetPhraseSetRequest.Builder mergeFrom(GetPhraseSetRequest other)
Parameter
NameDescription
otherGetPhraseSetRequest
Returns
TypeDescription
GetPhraseSetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GetPhraseSetRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GetPhraseSetRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GetPhraseSetRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GetPhraseSetRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetPhraseSetRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetPhraseSetRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GetPhraseSetRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GetPhraseSetRequest.Builder
Overrides

setName(String value)

public GetPhraseSetRequest.Builder setName(String value)

Required. The name of the phrase set to retrieve. Format: projects/{project}/locations/{location}/phraseSets/{phrase_set} Speech-to-Text supports three locations: global, us (US North America), and eu (Europe). If you are calling the speech.googleapis.com endpoint, use the global location. To specify a region, use a regional endpoint with matching us or eu location value.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetPhraseSetRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetPhraseSetRequest.Builder setNameBytes(ByteString value)

Required. The name of the phrase set to retrieve. Format: projects/{project}/locations/{location}/phraseSets/{phrase_set} Speech-to-Text supports three locations: global, us (US North America), and eu (Europe). If you are calling the speech.googleapis.com endpoint, use the global location. To specify a region, use a regional endpoint with matching us or eu location value.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetPhraseSetRequest.Builder

This builder for chaining.

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

public GetPhraseSetRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetPhraseSetRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetPhraseSetRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetPhraseSetRequest.Builder
Overrides