Class ExportEntityTypesRequest.Builder

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

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

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

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

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

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

      public ExportEntityTypesRequest.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<ExportEntityTypesRequest.Builder>
      Throws:
      IOException
    • getDestinationCase

      public ExportEntityTypesRequest.DestinationCase getDestinationCase()
      Specified by:
      getDestinationCase in interface ExportEntityTypesRequestOrBuilder
    • clearDestination

      public ExportEntityTypesRequest.Builder clearDestination()
    • getParent

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

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

      public ExportEntityTypesRequest.Builder setParent(String value)
       Required. The name of the parent agent to export entity types.
       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 ExportEntityTypesRequest.Builder clearParent()
       Required. The name of the parent agent to export entity types.
       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 ExportEntityTypesRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the parent agent to export entity types.
       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.
    • getEntityTypesList

      public com.google.protobuf.ProtocolStringList getEntityTypesList()
       Required. The name of the entity types to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
       
      repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntityTypesList in interface ExportEntityTypesRequestOrBuilder
      Returns:
      A list containing the entityTypes.
    • getEntityTypesCount

      public int getEntityTypesCount()
       Required. The name of the entity types to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
       
      repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntityTypesCount in interface ExportEntityTypesRequestOrBuilder
      Returns:
      The count of entityTypes.
    • getEntityTypes

      public String getEntityTypes(int index)
       Required. The name of the entity types to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
       
      repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntityTypes in interface ExportEntityTypesRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The entityTypes at the given index.
    • getEntityTypesBytes

      public com.google.protobuf.ByteString getEntityTypesBytes(int index)
       Required. The name of the entity types to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
       
      repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntityTypesBytes in interface ExportEntityTypesRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the entityTypes at the given index.
    • setEntityTypes

      public ExportEntityTypesRequest.Builder setEntityTypes(int index, String value)
       Required. The name of the entity types to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
       
      repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The entityTypes to set.
      Returns:
      This builder for chaining.
    • addEntityTypes

      public ExportEntityTypesRequest.Builder addEntityTypes(String value)
       Required. The name of the entity types to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
       
      repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The entityTypes to add.
      Returns:
      This builder for chaining.
    • addAllEntityTypes

      public ExportEntityTypesRequest.Builder addAllEntityTypes(Iterable<String> values)
       Required. The name of the entity types to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
       
      repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The entityTypes to add.
      Returns:
      This builder for chaining.
    • clearEntityTypes

      public ExportEntityTypesRequest.Builder clearEntityTypes()
       Required. The name of the entity types to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
       
      repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addEntityTypesBytes

      public ExportEntityTypesRequest.Builder addEntityTypesBytes(com.google.protobuf.ByteString value)
       Required. The name of the entity types to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
       
      repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the entityTypes to add.
      Returns:
      This builder for chaining.
    • hasEntityTypesUri

      public boolean hasEntityTypesUri()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the entity
       types to. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasEntityTypesUri in interface ExportEntityTypesRequestOrBuilder
      Returns:
      Whether the entityTypesUri field is set.
    • getEntityTypesUri

      public String getEntityTypesUri()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the entity
       types to. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEntityTypesUri in interface ExportEntityTypesRequestOrBuilder
      Returns:
      The entityTypesUri.
    • getEntityTypesUriBytes

      public com.google.protobuf.ByteString getEntityTypesUriBytes()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the entity
       types to. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEntityTypesUriBytes in interface ExportEntityTypesRequestOrBuilder
      Returns:
      The bytes for entityTypesUri.
    • setEntityTypesUri

      public ExportEntityTypesRequest.Builder setEntityTypesUri(String value)
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the entity
       types to. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The entityTypesUri to set.
      Returns:
      This builder for chaining.
    • clearEntityTypesUri

      public ExportEntityTypesRequest.Builder clearEntityTypesUri()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the entity
       types to. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEntityTypesUriBytes

      public ExportEntityTypesRequest.Builder setEntityTypesUriBytes(com.google.protobuf.ByteString value)
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the entity
       types to. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for entityTypesUri to set.
      Returns:
      This builder for chaining.
    • hasEntityTypesContentInline

      public boolean hasEntityTypesContentInline()
       Optional. The option to return the serialized entity types inline.
       
      bool entity_types_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasEntityTypesContentInline in interface ExportEntityTypesRequestOrBuilder
      Returns:
      Whether the entityTypesContentInline field is set.
    • getEntityTypesContentInline

      public boolean getEntityTypesContentInline()
       Optional. The option to return the serialized entity types inline.
       
      bool entity_types_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEntityTypesContentInline in interface ExportEntityTypesRequestOrBuilder
      Returns:
      The entityTypesContentInline.
    • setEntityTypesContentInline

      public ExportEntityTypesRequest.Builder setEntityTypesContentInline(boolean value)
       Optional. The option to return the serialized entity types inline.
       
      bool entity_types_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The entityTypesContentInline to set.
      Returns:
      This builder for chaining.
    • clearEntityTypesContentInline

      public ExportEntityTypesRequest.Builder clearEntityTypesContentInline()
       Optional. The option to return the serialized entity types inline.
       
      bool entity_types_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getDataFormatValue

      public int getDataFormatValue()
       Optional. The data format of the exported entity types. If not specified,
       `BLOB` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataFormatValue in interface ExportEntityTypesRequestOrBuilder
      Returns:
      The enum numeric value on the wire for dataFormat.
    • setDataFormatValue

      public ExportEntityTypesRequest.Builder setDataFormatValue(int value)
       Optional. The data format of the exported entity types. If not specified,
       `BLOB` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for dataFormat to set.
      Returns:
      This builder for chaining.
    • getDataFormat

      public ExportEntityTypesRequest.DataFormat getDataFormat()
       Optional. The data format of the exported entity types. If not specified,
       `BLOB` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataFormat in interface ExportEntityTypesRequestOrBuilder
      Returns:
      The dataFormat.
    • setDataFormat

       Optional. The data format of the exported entity types. If not specified,
       `BLOB` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dataFormat to set.
      Returns:
      This builder for chaining.
    • clearDataFormat

      public ExportEntityTypesRequest.Builder clearDataFormat()
       Optional. The data format of the exported entity types. If not specified,
       `BLOB` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getLanguageCode

      public String getLanguageCode()
       Optional. The language to retrieve the entity type for. The following
       fields are language dependent:
      
       *   `EntityType.entities.value`
       *   `EntityType.entities.synonyms`
       *   `EntityType.excluded_phrases.value`
      
       If not specified, all language dependent fields will be retrieved.
       [Many
       languages](https://cloud.google.com/dialogflow/docs/reference/language)
       are supported.
       Note: languages must be enabled in the agent before they can be used.
       
      string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCode in interface ExportEntityTypesRequestOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       Optional. The language to retrieve the entity type for. The following
       fields are language dependent:
      
       *   `EntityType.entities.value`
       *   `EntityType.entities.synonyms`
       *   `EntityType.excluded_phrases.value`
      
       If not specified, all language dependent fields will be retrieved.
       [Many
       languages](https://cloud.google.com/dialogflow/docs/reference/language)
       are supported.
       Note: languages must be enabled in the agent before they can be used.
       
      string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodeBytes in interface ExportEntityTypesRequestOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public ExportEntityTypesRequest.Builder setLanguageCode(String value)
       Optional. The language to retrieve the entity type for. The following
       fields are language dependent:
      
       *   `EntityType.entities.value`
       *   `EntityType.entities.synonyms`
       *   `EntityType.excluded_phrases.value`
      
       If not specified, all language dependent fields will be retrieved.
       [Many
       languages](https://cloud.google.com/dialogflow/docs/reference/language)
       are supported.
       Note: languages must be enabled in the agent before they can be used.
       
      string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public ExportEntityTypesRequest.Builder clearLanguageCode()
       Optional. The language to retrieve the entity type for. The following
       fields are language dependent:
      
       *   `EntityType.entities.value`
       *   `EntityType.entities.synonyms`
       *   `EntityType.excluded_phrases.value`
      
       If not specified, all language dependent fields will be retrieved.
       [Many
       languages](https://cloud.google.com/dialogflow/docs/reference/language)
       are supported.
       Note: languages must be enabled in the agent before they can be used.
       
      string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public ExportEntityTypesRequest.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       Optional. The language to retrieve the entity type for. The following
       fields are language dependent:
      
       *   `EntityType.entities.value`
       *   `EntityType.entities.synonyms`
       *   `EntityType.excluded_phrases.value`
      
       If not specified, all language dependent fields will be retrieved.
       [Many
       languages](https://cloud.google.com/dialogflow/docs/reference/language)
       are supported.
       Note: languages must be enabled in the agent before they can be used.
       
      string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.