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
      • getParent

        public String getParent()
         Required. The parent resource where this custom class will be created.
         Format:
        
         `projects/{project}/locations/{location}/customClasses`
        
         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](https://cloud.google.com/speech-to-text/docs/endpoints)
         with matching `us` or `eu` location value.
         
        string parent = 1 [(.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 parent resource where this custom class will be created.
         Format:
        
         `projects/{project}/locations/{location}/customClasses`
        
         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](https://cloud.google.com/speech-to-text/docs/endpoints)
         with matching `us` or `eu` location value.
         
        string parent = 1 [(.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 parent resource where this custom class will be created.
         Format:
        
         `projects/{project}/locations/{location}/customClasses`
        
         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](https://cloud.google.com/speech-to-text/docs/endpoints)
         with matching `us` or `eu` location value.
         
        string parent = 1 [(.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 parent resource where this custom class will be created.
         Format:
        
         `projects/{project}/locations/{location}/customClasses`
        
         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](https://cloud.google.com/speech-to-text/docs/endpoints)
         with matching `us` or `eu` location value.
         
        string parent = 1 [(.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 parent resource where this custom class will be created.
         Format:
        
         `projects/{project}/locations/{location}/customClasses`
        
         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](https://cloud.google.com/speech-to-text/docs/endpoints)
         with matching `us` or `eu` location value.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getCustomClassId

        public String getCustomClassId()
         Required. The ID to use for the custom class, which will become the final
         component of the custom class' resource name.
        
         This value should restrict to letters, numbers, and hyphens, with the first
         character a letter, the last a letter or a number, and be 4-63 characters.
         
        string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCustomClassId in interface CreateCustomClassRequestOrBuilder
        Returns:
        The customClassId.
      • getCustomClassIdBytes

        public com.google.protobuf.ByteString getCustomClassIdBytes()
         Required. The ID to use for the custom class, which will become the final
         component of the custom class' resource name.
        
         This value should restrict to letters, numbers, and hyphens, with the first
         character a letter, the last a letter or a number, and be 4-63 characters.
         
        string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCustomClassIdBytes in interface CreateCustomClassRequestOrBuilder
        Returns:
        The bytes for customClassId.
      • setCustomClassId

        public CreateCustomClassRequest.Builder setCustomClassId​(String value)
         Required. The ID to use for the custom class, which will become the final
         component of the custom class' resource name.
        
         This value should restrict to letters, numbers, and hyphens, with the first
         character a letter, the last a letter or a number, and be 4-63 characters.
         
        string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The customClassId to set.
        Returns:
        This builder for chaining.
      • clearCustomClassId

        public CreateCustomClassRequest.Builder clearCustomClassId()
         Required. The ID to use for the custom class, which will become the final
         component of the custom class' resource name.
        
         This value should restrict to letters, numbers, and hyphens, with the first
         character a letter, the last a letter or a number, and be 4-63 characters.
         
        string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setCustomClassIdBytes

        public CreateCustomClassRequest.Builder setCustomClassIdBytes​(com.google.protobuf.ByteString value)
         Required. The ID to use for the custom class, which will become the final
         component of the custom class' resource name.
        
         This value should restrict to letters, numbers, and hyphens, with the first
         character a letter, the last a letter or a number, and be 4-63 characters.
         
        string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for customClassId to set.
        Returns:
        This builder for chaining.
      • hasCustomClass

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

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

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

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

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

        public CustomClass.Builder getCustomClassBuilder()
         Required. The custom class to create.
         
        .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED];
      • 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>