Class ImportTestCasesResponse.Builder

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

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

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

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

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

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

      public ImportTestCasesResponse.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<ImportTestCasesResponse.Builder>
      Throws:
      IOException
    • getNamesList

      public com.google.protobuf.ProtocolStringList getNamesList()
       The unique identifiers of the new test cases.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
       
      repeated string names = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getNamesList in interface ImportTestCasesResponseOrBuilder
      Returns:
      A list containing the names.
    • getNamesCount

      public int getNamesCount()
       The unique identifiers of the new test cases.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
       
      repeated string names = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getNamesCount in interface ImportTestCasesResponseOrBuilder
      Returns:
      The count of names.
    • getNames

      public String getNames(int index)
       The unique identifiers of the new test cases.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
       
      repeated string names = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getNames in interface ImportTestCasesResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The names at the given index.
    • getNamesBytes

      public com.google.protobuf.ByteString getNamesBytes(int index)
       The unique identifiers of the new test cases.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
       
      repeated string names = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getNamesBytes in interface ImportTestCasesResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the names at the given index.
    • setNames

      public ImportTestCasesResponse.Builder setNames(int index, String value)
       The unique identifiers of the new test cases.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
       
      repeated string names = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The names to set.
      Returns:
      This builder for chaining.
    • addNames

      public ImportTestCasesResponse.Builder addNames(String value)
       The unique identifiers of the new test cases.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
       
      repeated string names = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The names to add.
      Returns:
      This builder for chaining.
    • addAllNames

      public ImportTestCasesResponse.Builder addAllNames(Iterable<String> values)
       The unique identifiers of the new test cases.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
       
      repeated string names = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      values - The names to add.
      Returns:
      This builder for chaining.
    • clearNames

      public ImportTestCasesResponse.Builder clearNames()
       The unique identifiers of the new test cases.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
       
      repeated string names = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addNamesBytes

      public ImportTestCasesResponse.Builder addNamesBytes(com.google.protobuf.ByteString value)
       The unique identifiers of the new test cases.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
       
      repeated string names = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the names to add.
      Returns:
      This builder for chaining.