Class CreateEntityTypeRequest.Builder

  • All Implemented Interfaces:
    CreateEntityTypeRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    CreateEntityTypeRequest

    public static final class CreateEntityTypeRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CreateEntityTypeRequest.Builder>
    implements CreateEntityTypeRequestOrBuilder
     The request message for
     [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType].
     
    Protobuf type google.cloud.dialogflow.v2.CreateEntityTypeRequest
    • 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<CreateEntityTypeRequest.Builder>
      • clear

        public CreateEntityTypeRequest.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<CreateEntityTypeRequest.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<CreateEntityTypeRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public CreateEntityTypeRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateEntityTypeRequest.Builder>
      • clearField

        public CreateEntityTypeRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateEntityTypeRequest.Builder>
      • clearOneof

        public CreateEntityTypeRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateEntityTypeRequest.Builder>
      • setRepeatedField

        public CreateEntityTypeRequest.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<CreateEntityTypeRequest.Builder>
      • addRepeatedField

        public CreateEntityTypeRequest.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<CreateEntityTypeRequest.Builder>
      • isInitialized

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

        public CreateEntityTypeRequest.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<CreateEntityTypeRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The agent to create a entity type for.
         Format: `projects/<Project ID>/agent`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateEntityTypeRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The agent to create a entity type for.
         Format: `projects/<Project ID>/agent`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateEntityTypeRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateEntityTypeRequest.Builder setParent​(String value)
         Required. The agent to create a entity type for.
         Format: `projects/<Project ID>/agent`.
         
        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 CreateEntityTypeRequest.Builder clearParent()
         Required. The agent to create a entity type for.
         Format: `projects/<Project ID>/agent`.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateEntityTypeRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The agent to create a entity type for.
         Format: `projects/<Project ID>/agent`.
         
        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.
      • hasEntityType

        public boolean hasEntityType()
         Required. The entity type to create.
         
        .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasEntityType in interface CreateEntityTypeRequestOrBuilder
        Returns:
        Whether the entityType field is set.
      • getEntityType

        public EntityType getEntityType()
         Required. The entity type to create.
         
        .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getEntityType in interface CreateEntityTypeRequestOrBuilder
        Returns:
        The entityType.
      • setEntityType

        public CreateEntityTypeRequest.Builder setEntityType​(EntityType value)
         Required. The entity type to create.
         
        .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
      • setEntityType

        public CreateEntityTypeRequest.Builder setEntityType​(EntityType.Builder builderForValue)
         Required. The entity type to create.
         
        .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeEntityType

        public CreateEntityTypeRequest.Builder mergeEntityType​(EntityType value)
         Required. The entity type to create.
         
        .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearEntityType

        public CreateEntityTypeRequest.Builder clearEntityType()
         Required. The entity type to create.
         
        .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
      • getEntityTypeBuilder

        public EntityType.Builder getEntityTypeBuilder()
         Required. The entity type to create.
         
        .google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
      • getLanguageCode

        public String getLanguageCode()
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLanguageCode in interface CreateEntityTypeRequestOrBuilder
        Returns:
        The languageCode.
      • getLanguageCodeBytes

        public com.google.protobuf.ByteString getLanguageCodeBytes()
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLanguageCodeBytes in interface CreateEntityTypeRequestOrBuilder
        Returns:
        The bytes for languageCode.
      • setLanguageCode

        public CreateEntityTypeRequest.Builder setLanguageCode​(String value)
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The languageCode to set.
        Returns:
        This builder for chaining.
      • clearLanguageCode

        public CreateEntityTypeRequest.Builder clearLanguageCode()
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setLanguageCodeBytes

        public CreateEntityTypeRequest.Builder setLanguageCodeBytes​(com.google.protobuf.ByteString value)
         Optional. The language used to access language-specific data.
         If not specified, the agent's default language is used.
         For more information, see
         [Multilingual intent and entity
         data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
         
        string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for languageCode to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CreateEntityTypeRequest.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<CreateEntityTypeRequest.Builder>
      • mergeUnknownFields

        public final CreateEntityTypeRequest.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<CreateEntityTypeRequest.Builder>