Class CreateEntityTypeRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateEntityTypeRequest.Builder>
com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessage.Builder<CreateEntityTypeRequest.Builder> implements CreateEntityTypeRequestOrBuilder
 The request message for
 [EntityTypes.CreateEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityType].
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

      public CreateEntityTypeRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateEntityTypeRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      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.cx.v3beta1.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.cx.v3beta1.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.cx.v3beta1.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.cx.v3beta1.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.cx.v3beta1.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearEntityType

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

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

      public EntityTypeOrBuilder getEntityTypeOrBuilder()
       Required. The entity type to create.
       
      .google.cloud.dialogflow.cx.v3beta1.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntityTypeOrBuilder in interface CreateEntityTypeRequestOrBuilder
    • getLanguageCode

      public String getLanguageCode()
       The language of the following fields in `entity_type`:
      
       *   `EntityType.entities.value`
       *   `EntityType.entities.synonyms`
       *   `EntityType.excluded_phrases.value`
      
       If not specified, the agent's default language is used.
       [Many
       languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
       are supported.
       Note: languages must be enabled in the agent before they can be used.
       
      string language_code = 3;
      Specified by:
      getLanguageCode in interface CreateEntityTypeRequestOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       The language of the following fields in `entity_type`:
      
       *   `EntityType.entities.value`
       *   `EntityType.entities.synonyms`
       *   `EntityType.excluded_phrases.value`
      
       If not specified, the agent's default language is used.
       [Many
       languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
       are supported.
       Note: languages must be enabled in the agent before they can be used.
       
      string language_code = 3;
      Specified by:
      getLanguageCodeBytes in interface CreateEntityTypeRequestOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public CreateEntityTypeRequest.Builder setLanguageCode(String value)
       The language of the following fields in `entity_type`:
      
       *   `EntityType.entities.value`
       *   `EntityType.entities.synonyms`
       *   `EntityType.excluded_phrases.value`
      
       If not specified, the agent's default language is used.
       [Many
       languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
       are supported.
       Note: languages must be enabled in the agent before they can be used.
       
      string language_code = 3;
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public CreateEntityTypeRequest.Builder clearLanguageCode()
       The language of the following fields in `entity_type`:
      
       *   `EntityType.entities.value`
       *   `EntityType.entities.synonyms`
       *   `EntityType.excluded_phrases.value`
      
       If not specified, the agent's default language is used.
       [Many
       languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
       are supported.
       Note: languages must be enabled in the agent before they can be used.
       
      string language_code = 3;
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public CreateEntityTypeRequest.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       The language of the following fields in `entity_type`:
      
       *   `EntityType.entities.value`
       *   `EntityType.entities.synonyms`
       *   `EntityType.excluded_phrases.value`
      
       If not specified, the agent's default language is used.
       [Many
       languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
       are supported.
       Note: languages must be enabled in the agent before they can be used.
       
      string language_code = 3;
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.