Class ImportIntentsResponse.Builder

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

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

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

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

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

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

      public ImportIntentsResponse.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<ImportIntentsResponse.Builder>
      Throws:
      IOException
    • getIntentsList

      public com.google.protobuf.ProtocolStringList getIntentsList()
       The unique identifier of the imported intents.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getIntentsList in interface ImportIntentsResponseOrBuilder
      Returns:
      A list containing the intents.
    • getIntentsCount

      public int getIntentsCount()
       The unique identifier of the imported intents.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getIntentsCount in interface ImportIntentsResponseOrBuilder
      Returns:
      The count of intents.
    • getIntents

      public String getIntents(int index)
       The unique identifier of the imported intents.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getIntents in interface ImportIntentsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The intents at the given index.
    • getIntentsBytes

      public com.google.protobuf.ByteString getIntentsBytes(int index)
       The unique identifier of the imported intents.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getIntentsBytes in interface ImportIntentsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the intents at the given index.
    • setIntents

      public ImportIntentsResponse.Builder setIntents(int index, String value)
       The unique identifier of the imported intents.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The intents to set.
      Returns:
      This builder for chaining.
    • addIntents

      public ImportIntentsResponse.Builder addIntents(String value)
       The unique identifier of the imported intents.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The intents to add.
      Returns:
      This builder for chaining.
    • addAllIntents

      public ImportIntentsResponse.Builder addAllIntents(Iterable<String> values)
       The unique identifier of the imported intents.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      values - The intents to add.
      Returns:
      This builder for chaining.
    • clearIntents

      public ImportIntentsResponse.Builder clearIntents()
       The unique identifier of the imported intents.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addIntentsBytes

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

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

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

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

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

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

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

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

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