Class ImportEntityTypesResponse.Builder

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

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

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

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

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

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

      public ImportEntityTypesResponse.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<ImportEntityTypesResponse.Builder>
      Throws:
      IOException
    • getEntityTypesList

      public com.google.protobuf.ProtocolStringList getEntityTypesList()
       The unique identifier of the imported entity types.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
       
      repeated string entity_types = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getEntityTypesList in interface ImportEntityTypesResponseOrBuilder
      Returns:
      A list containing the entityTypes.
    • getEntityTypesCount

      public int getEntityTypesCount()
       The unique identifier of the imported entity types.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
       
      repeated string entity_types = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getEntityTypesCount in interface ImportEntityTypesResponseOrBuilder
      Returns:
      The count of entityTypes.
    • getEntityTypes

      public String getEntityTypes(int index)
       The unique identifier of the imported entity types.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
       
      repeated string entity_types = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getEntityTypes in interface ImportEntityTypesResponseOrBuilder
      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)
       The unique identifier of the imported entity types.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
       
      repeated string entity_types = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getEntityTypesBytes in interface ImportEntityTypesResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the entityTypes at the given index.
    • setEntityTypes

      public ImportEntityTypesResponse.Builder setEntityTypes(int index, String value)
       The unique identifier of the imported entity types.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
       
      repeated string entity_types = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The entityTypes to set.
      Returns:
      This builder for chaining.
    • addEntityTypes

      public ImportEntityTypesResponse.Builder addEntityTypes(String value)
       The unique identifier of the imported entity types.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
       
      repeated string entity_types = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The entityTypes to add.
      Returns:
      This builder for chaining.
    • addAllEntityTypes

      public ImportEntityTypesResponse.Builder addAllEntityTypes(Iterable<String> values)
       The unique identifier of the imported entity types.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
       
      repeated string entity_types = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      values - The entityTypes to add.
      Returns:
      This builder for chaining.
    • clearEntityTypes

      public ImportEntityTypesResponse.Builder clearEntityTypes()
       The unique identifier of the imported entity types.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
       
      repeated string entity_types = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addEntityTypesBytes

      public ImportEntityTypesResponse.Builder addEntityTypesBytes(com.google.protobuf.ByteString value)
       The unique identifier of the imported entity types.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
       
      repeated string entity_types = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the entityTypes to add.
      Returns:
      This builder for chaining.
    • hasConflictingResources

      public boolean hasConflictingResources()
       Info which resources have conflicts when
       [REPORT_CONFLICT][ImportEntityTypesResponse.REPORT_CONFLICT] merge_option
       is set in ImportEntityTypesRequest.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesResponse.ConflictingResources conflicting_resources = 2;
      Specified by:
      hasConflictingResources in interface ImportEntityTypesResponseOrBuilder
      Returns:
      Whether the conflictingResources field is set.
    • getConflictingResources

      public ImportEntityTypesResponse.ConflictingResources getConflictingResources()
       Info which resources have conflicts when
       [REPORT_CONFLICT][ImportEntityTypesResponse.REPORT_CONFLICT] merge_option
       is set in ImportEntityTypesRequest.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesResponse.ConflictingResources conflicting_resources = 2;
      Specified by:
      getConflictingResources in interface ImportEntityTypesResponseOrBuilder
      Returns:
      The conflictingResources.
    • setConflictingResources

       Info which resources have conflicts when
       [REPORT_CONFLICT][ImportEntityTypesResponse.REPORT_CONFLICT] merge_option
       is set in ImportEntityTypesRequest.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesResponse.ConflictingResources conflicting_resources = 2;
    • setConflictingResources

       Info which resources have conflicts when
       [REPORT_CONFLICT][ImportEntityTypesResponse.REPORT_CONFLICT] merge_option
       is set in ImportEntityTypesRequest.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesResponse.ConflictingResources conflicting_resources = 2;
    • mergeConflictingResources

       Info which resources have conflicts when
       [REPORT_CONFLICT][ImportEntityTypesResponse.REPORT_CONFLICT] merge_option
       is set in ImportEntityTypesRequest.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesResponse.ConflictingResources conflicting_resources = 2;
    • clearConflictingResources

      public ImportEntityTypesResponse.Builder clearConflictingResources()
       Info which resources have conflicts when
       [REPORT_CONFLICT][ImportEntityTypesResponse.REPORT_CONFLICT] merge_option
       is set in ImportEntityTypesRequest.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesResponse.ConflictingResources conflicting_resources = 2;
    • getConflictingResourcesBuilder

      public ImportEntityTypesResponse.ConflictingResources.Builder getConflictingResourcesBuilder()
       Info which resources have conflicts when
       [REPORT_CONFLICT][ImportEntityTypesResponse.REPORT_CONFLICT] merge_option
       is set in ImportEntityTypesRequest.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesResponse.ConflictingResources conflicting_resources = 2;
    • getConflictingResourcesOrBuilder

      public ImportEntityTypesResponse.ConflictingResourcesOrBuilder getConflictingResourcesOrBuilder()
       Info which resources have conflicts when
       [REPORT_CONFLICT][ImportEntityTypesResponse.REPORT_CONFLICT] merge_option
       is set in ImportEntityTypesRequest.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesResponse.ConflictingResources conflicting_resources = 2;
      Specified by:
      getConflictingResourcesOrBuilder in interface ImportEntityTypesResponseOrBuilder