Class ImportEntityTypesRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest
All Implemented Interfaces:
ImportEntityTypesRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ImportEntityTypesRequest extends com.google.protobuf.GeneratedMessage implements ImportEntityTypesRequestOrBuilder
 The request message for
 [EntityTypes.ImportEntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityTypes.ImportEntityTypes].
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest
See Also:
  • Field Details

    • PARENT_FIELD_NUMBER

      public static final int PARENT_FIELD_NUMBER
      See Also:
    • ENTITY_TYPES_URI_FIELD_NUMBER

      public static final int ENTITY_TYPES_URI_FIELD_NUMBER
      See Also:
    • ENTITY_TYPES_CONTENT_FIELD_NUMBER

      public static final int ENTITY_TYPES_CONTENT_FIELD_NUMBER
      See Also:
    • MERGE_OPTION_FIELD_NUMBER

      public static final int MERGE_OPTION_FIELD_NUMBER
      See Also:
    • TARGET_ENTITY_TYPE_FIELD_NUMBER

      public static final int TARGET_ENTITY_TYPE_FIELD_NUMBER
      See Also:
  • 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
    • getEntityTypesCase

      public ImportEntityTypesRequest.EntityTypesCase getEntityTypesCase()
      Specified by:
      getEntityTypesCase in interface ImportEntityTypesRequestOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ImportEntityTypesRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImportEntityTypesRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImportEntityTypesRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImportEntityTypesRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImportEntityTypesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImportEntityTypesRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ImportEntityTypesRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ImportEntityTypesRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ImportEntityTypesRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ImportEntityTypesRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ImportEntityTypesRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ImportEntityTypesRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static ImportEntityTypesRequest.Builder newBuilder()
    • newBuilder

      public static ImportEntityTypesRequest.Builder newBuilder(ImportEntityTypesRequest prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ImportEntityTypesRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ImportEntityTypesRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ImportEntityTypesRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<ImportEntityTypesRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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