Class ImportEntityTypesRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportEntityTypesRequest.Builder>
com.google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.Builder
All Implemented Interfaces:
ImportEntityTypesRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ImportEntityTypesRequest

public static final class ImportEntityTypesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImportEntityTypesRequest.Builder> implements ImportEntityTypesRequestOrBuilder
 The request message for
 [EntityTypes.ImportEntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityTypes.ImportEntityTypes].
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest
  • 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<ImportEntityTypesRequest.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<ImportEntityTypesRequest.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<ImportEntityTypesRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public ImportEntityTypesRequest.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<ImportEntityTypesRequest.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<ImportEntityTypesRequest.Builder>
    • mergeFrom

      public ImportEntityTypesRequest.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<ImportEntityTypesRequest.Builder>
      Throws:
      IOException
    • getEntityTypesCase

      public ImportEntityTypesRequest.EntityTypesCase getEntityTypesCase()
      Specified by:
      getEntityTypesCase in interface ImportEntityTypesRequestOrBuilder
    • clearEntityTypes

      public ImportEntityTypesRequest.Builder clearEntityTypes()
    • getParent

      public String getParent()
       Required. The agent to import the entity types into.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface ImportEntityTypesRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The agent to import the entity types into.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface ImportEntityTypesRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ImportEntityTypesRequest.Builder setParent(String value)
       Required. The agent to import the entity types into.
       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 ImportEntityTypesRequest.Builder clearParent()
       Required. The agent to import the entity types into.
       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 ImportEntityTypesRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The agent to import the entity types into.
       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.
    • hasEntityTypesUri

      public boolean hasEntityTypesUri()
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import entity types from. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a read operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have read permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string entity_types_uri = 2;
      Specified by:
      hasEntityTypesUri in interface ImportEntityTypesRequestOrBuilder
      Returns:
      Whether the entityTypesUri field is set.
    • getEntityTypesUri

      public String getEntityTypesUri()
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import entity types from. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a read operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have read permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string entity_types_uri = 2;
      Specified by:
      getEntityTypesUri in interface ImportEntityTypesRequestOrBuilder
      Returns:
      The entityTypesUri.
    • getEntityTypesUriBytes

      public com.google.protobuf.ByteString getEntityTypesUriBytes()
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import entity types from. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a read operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have read permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string entity_types_uri = 2;
      Specified by:
      getEntityTypesUriBytes in interface ImportEntityTypesRequestOrBuilder
      Returns:
      The bytes for entityTypesUri.
    • setEntityTypesUri

      public ImportEntityTypesRequest.Builder setEntityTypesUri(String value)
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import entity types from. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a read operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have read permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string entity_types_uri = 2;
      Parameters:
      value - The entityTypesUri to set.
      Returns:
      This builder for chaining.
    • clearEntityTypesUri

      public ImportEntityTypesRequest.Builder clearEntityTypesUri()
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import entity types from. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a read operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have read permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string entity_types_uri = 2;
      Returns:
      This builder for chaining.
    • setEntityTypesUriBytes

      public ImportEntityTypesRequest.Builder setEntityTypesUriBytes(com.google.protobuf.ByteString value)
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import entity types from. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a read operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have read permissions for the object. For more information, see
       [Dialogflow access
       control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
       
      string entity_types_uri = 2;
      Parameters:
      value - The bytes for entityTypesUri to set.
      Returns:
      This builder for chaining.
    • hasEntityTypesContent

      public boolean hasEntityTypesContent()
       Uncompressed byte content of entity types.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3;
      Specified by:
      hasEntityTypesContent in interface ImportEntityTypesRequestOrBuilder
      Returns:
      Whether the entityTypesContent field is set.
    • getEntityTypesContent

      public InlineSource getEntityTypesContent()
       Uncompressed byte content of entity types.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3;
      Specified by:
      getEntityTypesContent in interface ImportEntityTypesRequestOrBuilder
      Returns:
      The entityTypesContent.
    • setEntityTypesContent

      public ImportEntityTypesRequest.Builder setEntityTypesContent(InlineSource value)
       Uncompressed byte content of entity types.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3;
    • setEntityTypesContent

      public ImportEntityTypesRequest.Builder setEntityTypesContent(InlineSource.Builder builderForValue)
       Uncompressed byte content of entity types.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3;
    • mergeEntityTypesContent

      public ImportEntityTypesRequest.Builder mergeEntityTypesContent(InlineSource value)
       Uncompressed byte content of entity types.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3;
    • clearEntityTypesContent

      public ImportEntityTypesRequest.Builder clearEntityTypesContent()
       Uncompressed byte content of entity types.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3;
    • getEntityTypesContentBuilder

      public InlineSource.Builder getEntityTypesContentBuilder()
       Uncompressed byte content of entity types.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3;
    • getEntityTypesContentOrBuilder

      public InlineSourceOrBuilder getEntityTypesContentOrBuilder()
       Uncompressed byte content of entity types.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3;
      Specified by:
      getEntityTypesContentOrBuilder in interface ImportEntityTypesRequestOrBuilder
    • getMergeOptionValue

      public int getMergeOptionValue()
       Required. Merge option for importing entity types.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMergeOptionValue in interface ImportEntityTypesRequestOrBuilder
      Returns:
      The enum numeric value on the wire for mergeOption.
    • setMergeOptionValue

      public ImportEntityTypesRequest.Builder setMergeOptionValue(int value)
       Required. Merge option for importing entity types.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for mergeOption to set.
      Returns:
      This builder for chaining.
    • getMergeOption

      public ImportEntityTypesRequest.MergeOption getMergeOption()
       Required. Merge option for importing entity types.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMergeOption in interface ImportEntityTypesRequestOrBuilder
      Returns:
      The mergeOption.
    • setMergeOption

       Required. Merge option for importing entity types.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The mergeOption to set.
      Returns:
      This builder for chaining.
    • clearMergeOption

      public ImportEntityTypesRequest.Builder clearMergeOption()
       Required. Merge option for importing entity types.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getTargetEntityType

      public String getTargetEntityType()
       Optional. The target entity type to import into.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
       If set, there should be only one entity type included in
       [entity_types][google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.entity_types],
       of which the type should match the type of the target entity type. All
       [entities][google.cloud.dialogflow.cx.v3beta1.EntityType.entities] in the
       imported entity type will be added to the target entity type.
       
      string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getTargetEntityType in interface ImportEntityTypesRequestOrBuilder
      Returns:
      The targetEntityType.
    • getTargetEntityTypeBytes

      public com.google.protobuf.ByteString getTargetEntityTypeBytes()
       Optional. The target entity type to import into.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
       If set, there should be only one entity type included in
       [entity_types][google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.entity_types],
       of which the type should match the type of the target entity type. All
       [entities][google.cloud.dialogflow.cx.v3beta1.EntityType.entities] in the
       imported entity type will be added to the target entity type.
       
      string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getTargetEntityTypeBytes in interface ImportEntityTypesRequestOrBuilder
      Returns:
      The bytes for targetEntityType.
    • setTargetEntityType

      public ImportEntityTypesRequest.Builder setTargetEntityType(String value)
       Optional. The target entity type to import into.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
       If set, there should be only one entity type included in
       [entity_types][google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.entity_types],
       of which the type should match the type of the target entity type. All
       [entities][google.cloud.dialogflow.cx.v3beta1.EntityType.entities] in the
       imported entity type will be added to the target entity type.
       
      string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The targetEntityType to set.
      Returns:
      This builder for chaining.
    • clearTargetEntityType

      public ImportEntityTypesRequest.Builder clearTargetEntityType()
       Optional. The target entity type to import into.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
       If set, there should be only one entity type included in
       [entity_types][google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.entity_types],
       of which the type should match the type of the target entity type. All
       [entities][google.cloud.dialogflow.cx.v3beta1.EntityType.entities] in the
       imported entity type will be added to the target entity type.
       
      string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setTargetEntityTypeBytes

      public ImportEntityTypesRequest.Builder setTargetEntityTypeBytes(com.google.protobuf.ByteString value)
       Optional. The target entity type to import into.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
       If set, there should be only one entity type included in
       [entity_types][google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.entity_types],
       of which the type should match the type of the target entity type. All
       [entities][google.cloud.dialogflow.cx.v3beta1.EntityType.entities] in the
       imported entity type will be added to the target entity type.
       
      string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for targetEntityType to set.
      Returns:
      This builder for chaining.