Package com.google.cloud.speech.v2
Interface CreateCustomClassRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CreateCustomClassRequest,CreateCustomClassRequest.Builder
@Generated
public interface CreateCustomClassRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.The ID to use for the CustomClass, which will become the final component of the CustomClass's resource name.com.google.protobuf.ByteStringThe ID to use for the CustomClass, which will become the final component of the CustomClass's resource name.Required.Required.com.google.protobuf.ByteStringRequired.booleanIf set, validate the request and preview the CustomClass, but do not actually create it.booleanRequired.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasCustomClass
boolean hasCustomClass()Required. The CustomClass to create.
.google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the customClass field is set.
-
getCustomClass
CustomClass getCustomClass()Required. The CustomClass to create.
.google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The customClass.
-
getCustomClassOrBuilder
CustomClassOrBuilder getCustomClassOrBuilder()Required. The CustomClass to create.
.google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; -
getValidateOnly
boolean getValidateOnly()If set, validate the request and preview the CustomClass, but do not actually create it.
bool validate_only = 2;- Returns:
- The validateOnly.
-
getCustomClassId
String getCustomClassId()The ID to use for the CustomClass, which will become the final component of the CustomClass's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
string custom_class_id = 3;- Returns:
- The customClassId.
-
getCustomClassIdBytes
com.google.protobuf.ByteString getCustomClassIdBytes()The ID to use for the CustomClass, which will become the final component of the CustomClass's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
string custom_class_id = 3;- Returns:
- The bytes for customClassId.
-
getParent
String getParent()Required. The project and location where this CustomClass will be created. The expected format is `projects/{project}/locations/{location}`.string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The parent.
-
getParentBytes
com.google.protobuf.ByteString getParentBytes()Required. The project and location where this CustomClass will be created. The expected format is `projects/{project}/locations/{location}`.string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for parent.
-