Class CreateCustomClassRequest.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCustomClassRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCustomClassRequest.Builder>
      • getDefaultInstanceForType

        public CreateCustomClassRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CreateCustomClassRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CreateCustomClassRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public CreateCustomClassRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCustomClassRequest.Builder>
      • addRepeatedField

        public CreateCustomClassRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCustomClassRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCustomClassRequest.Builder>
      • mergeFrom

        public CreateCustomClassRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateCustomClassRequest.Builder>
        Throws:
        IOException
      • hasCustomClass

        public boolean hasCustomClass()
         Required. The CustomClass to create.
         
        .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasCustomClass in interface CreateCustomClassRequestOrBuilder
        Returns:
        Whether the customClass field is set.
      • getCustomClass

        public CustomClass getCustomClass()
         Required. The CustomClass to create.
         
        .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCustomClass in interface CreateCustomClassRequestOrBuilder
        Returns:
        The customClass.
      • setCustomClass

        public CreateCustomClassRequest.Builder setCustomClass​(CustomClass value)
         Required. The CustomClass to create.
         
        .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED];
      • mergeCustomClass

        public CreateCustomClassRequest.Builder mergeCustomClass​(CustomClass value)
         Required. The CustomClass to create.
         
        .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED];
      • clearCustomClass

        public CreateCustomClassRequest.Builder clearCustomClass()
         Required. The CustomClass to create.
         
        .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED];
      • getCustomClassBuilder

        public CustomClass.Builder getCustomClassBuilder()
         Required. The CustomClass to create.
         
        .google.cloud.speech.v2.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED];
      • getValidateOnly

        public boolean getValidateOnly()
         If set, validate the request and preview the CustomClass, but do not
         actually create it.
         
        bool validate_only = 2;
        Specified by:
        getValidateOnly in interface CreateCustomClassRequestOrBuilder
        Returns:
        The validateOnly.
      • setValidateOnly

        public CreateCustomClassRequest.Builder setValidateOnly​(boolean value)
         If set, validate the request and preview the CustomClass, but do not
         actually create it.
         
        bool validate_only = 2;
        Parameters:
        value - The validateOnly to set.
        Returns:
        This builder for chaining.
      • clearValidateOnly

        public CreateCustomClassRequest.Builder clearValidateOnly()
         If set, validate the request and preview the CustomClass, but do not
         actually create it.
         
        bool validate_only = 2;
        Returns:
        This builder for chaining.
      • getCustomClassId

        public 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;
        Specified by:
        getCustomClassId in interface CreateCustomClassRequestOrBuilder
        Returns:
        The customClassId.
      • getCustomClassIdBytes

        public 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;
        Specified by:
        getCustomClassIdBytes in interface CreateCustomClassRequestOrBuilder
        Returns:
        The bytes for customClassId.
      • setCustomClassId

        public CreateCustomClassRequest.Builder setCustomClassId​(String value)
         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;
        Parameters:
        value - The customClassId to set.
        Returns:
        This builder for chaining.
      • clearCustomClassId

        public CreateCustomClassRequest.Builder clearCustomClassId()
         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:
        This builder for chaining.
      • setCustomClassIdBytes

        public CreateCustomClassRequest.Builder setCustomClassIdBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for customClassId to set.
        Returns:
        This builder for chaining.
      • getParent

        public 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) = { ... }
        Specified by:
        getParent in interface CreateCustomClassRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public 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) = { ... }
        Specified by:
        getParentBytes in interface CreateCustomClassRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateCustomClassRequest.Builder setParent​(String value)
         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) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateCustomClassRequest.Builder clearParent()
         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:
        This builder for chaining.
      • setParentBytes

        public CreateCustomClassRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         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) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CreateCustomClassRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCustomClassRequest.Builder>
      • mergeUnknownFields

        public final CreateCustomClassRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCustomClassRequest.Builder>