Class CreateRecognizerRequest (4.1.0)

public final class CreateRecognizerRequest extends GeneratedMessageV3 implements CreateRecognizerRequestOrBuilder

Request message for the CreateRecognizer method.

Protobuf type google.cloud.speech.v2.CreateRecognizerRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

RECOGNIZER_FIELD_NUMBER

public static final int RECOGNIZER_FIELD_NUMBER
Field Value
TypeDescription
int

RECOGNIZER_ID_FIELD_NUMBER

public static final int RECOGNIZER_ID_FIELD_NUMBER
Field Value
TypeDescription
int

VALIDATE_ONLY_FIELD_NUMBER

public static final int VALIDATE_ONLY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateRecognizerRequest getDefaultInstance()
Returns
TypeDescription
CreateRecognizerRequest

getDescriptor()

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

newBuilder()

public static CreateRecognizerRequest.Builder newBuilder()
Returns
TypeDescription
CreateRecognizerRequest.Builder

newBuilder(CreateRecognizerRequest prototype)

public static CreateRecognizerRequest.Builder newBuilder(CreateRecognizerRequest prototype)
Parameter
NameDescription
prototypeCreateRecognizerRequest
Returns
TypeDescription
CreateRecognizerRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateRecognizerRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateRecognizerRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateRecognizerRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateRecognizerRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateRecognizerRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateRecognizerRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateRecognizerRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateRecognizerRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateRecognizerRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateRecognizerRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateRecognizerRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateRecognizerRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateRecognizerRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateRecognizerRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateRecognizerRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateRecognizerRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateRecognizerRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateRecognizerRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateRecognizerRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateRecognizerRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateRecognizerRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateRecognizerRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateRecognizerRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateRecognizerRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateRecognizerRequest> parser()
Returns
TypeDescription
Parser<CreateRecognizerRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateRecognizerRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateRecognizerRequest

getParent()

public String getParent()

Required. The project and location where this Recognizer will be created. The expected format is projects/{project}/locations/{location}.

string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project and location where this Recognizer will be created. The expected format is projects/{project}/locations/{location}.

string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateRecognizerRequest> getParserForType()
Returns
TypeDescription
Parser<CreateRecognizerRequest>
Overrides

getRecognizer()

public Recognizer getRecognizer()

Required. The Recognizer to create.

.google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Recognizer

The recognizer.

getRecognizerId()

public String getRecognizerId()

The ID to use for the Recognizer, which will become the final component of the Recognizer's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.

string recognizer_id = 3;

Returns
TypeDescription
String

The recognizerId.

getRecognizerIdBytes()

public ByteString getRecognizerIdBytes()

The ID to use for the Recognizer, which will become the final component of the Recognizer's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.

string recognizer_id = 3;

Returns
TypeDescription
ByteString

The bytes for recognizerId.

getRecognizerOrBuilder()

public RecognizerOrBuilder getRecognizerOrBuilder()

Required. The Recognizer to create.

.google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognizerOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getValidateOnly()

public boolean getValidateOnly()

If set, validate the request and preview the Recognizer, but do not actually create it.

bool validate_only = 2;

Returns
TypeDescription
boolean

The validateOnly.

hasRecognizer()

public boolean hasRecognizer()

Required. The Recognizer to create.

.google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the recognizer field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateRecognizerRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateRecognizerRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateRecognizerRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateRecognizerRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateRecognizerRequest.Builder toBuilder()
Returns
TypeDescription
CreateRecognizerRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException