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
RECOGNIZER_FIELD_NUMBER
public static final int RECOGNIZER_FIELD_NUMBER
Field Value
RECOGNIZER_ID_FIELD_NUMBER
public static final int RECOGNIZER_ID_FIELD_NUMBER
Field Value
VALIDATE_ONLY_FIELD_NUMBER
public static final int VALIDATE_ONLY_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static CreateRecognizerRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static CreateRecognizerRequest.Builder newBuilder()
Returns
newBuilder(CreateRecognizerRequest prototype)
public static CreateRecognizerRequest.Builder newBuilder(CreateRecognizerRequest prototype)
Parameter
Returns
public static CreateRecognizerRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateRecognizerRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CreateRecognizerRequest parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CreateRecognizerRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CreateRecognizerRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CreateRecognizerRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateRecognizerRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CreateRecognizerRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CreateRecognizerRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CreateRecognizerRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CreateRecognizerRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CreateRecognizerRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<CreateRecognizerRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public CreateRecognizerRequest getDefaultInstanceForType()
Returns
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
Type | Description |
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
getParserForType()
public Parser<CreateRecognizerRequest> getParserForType()
Returns
Overrides
getRecognizer()
public Recognizer getRecognizer()
Required. The Recognizer to create.
.google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
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
Type | Description |
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
Type | Description |
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
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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
Type | Description |
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
Type | Description |
boolean | Whether the recognizer field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public CreateRecognizerRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CreateRecognizerRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public CreateRecognizerRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions