Class TestConfig.Builder

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

public static final class TestConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<TestConfig.Builder> implements TestConfigOrBuilder
 Represents configurations for a test case.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.TestConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    Session parameters to be compared when calculating differences.
    Session parameters to be compared when calculating differences.
    addTrackingParametersBytes(com.google.protobuf.ByteString value)
    Session parameters to be compared when calculating differences.
     
     
     
    Flow name to start the test case with.
    The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with.
    Session parameters to be compared when calculating differences.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Flow name to start the test case with.
    com.google.protobuf.ByteString
    Flow name to start the test case with.
    The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with.
    com.google.protobuf.ByteString
    The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with.
    Session parameters to be compared when calculating differences.
    com.google.protobuf.ByteString
    Session parameters to be compared when calculating differences.
    int
    Session parameters to be compared when calculating differences.
    com.google.protobuf.ProtocolStringList
    Session parameters to be compared when calculating differences.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setFlow(String value)
    Flow name to start the test case with.
    setFlowBytes(com.google.protobuf.ByteString value)
    Flow name to start the test case with.
    setPage(String value)
    The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with.
    setPageBytes(com.google.protobuf.ByteString value)
    The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with.
    setTrackingParameters(int index, String value)
    Session parameters to be compared when calculating differences.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<TestConfig.Builder>
    • clear

      public TestConfig.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<TestConfig.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<TestConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public TestConfig.Builder mergeFrom(TestConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TestConfig.Builder>
    • mergeFrom

      public TestConfig.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<TestConfig.Builder>
      Throws:
      IOException
    • getTrackingParametersList

      public com.google.protobuf.ProtocolStringList getTrackingParametersList()
       Session parameters to be compared when calculating differences.
       
      repeated string tracking_parameters = 1;
      Specified by:
      getTrackingParametersList in interface TestConfigOrBuilder
      Returns:
      A list containing the trackingParameters.
    • getTrackingParametersCount

      public int getTrackingParametersCount()
       Session parameters to be compared when calculating differences.
       
      repeated string tracking_parameters = 1;
      Specified by:
      getTrackingParametersCount in interface TestConfigOrBuilder
      Returns:
      The count of trackingParameters.
    • getTrackingParameters

      public String getTrackingParameters(int index)
       Session parameters to be compared when calculating differences.
       
      repeated string tracking_parameters = 1;
      Specified by:
      getTrackingParameters in interface TestConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The trackingParameters at the given index.
    • getTrackingParametersBytes

      public com.google.protobuf.ByteString getTrackingParametersBytes(int index)
       Session parameters to be compared when calculating differences.
       
      repeated string tracking_parameters = 1;
      Specified by:
      getTrackingParametersBytes in interface TestConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the trackingParameters at the given index.
    • setTrackingParameters

      public TestConfig.Builder setTrackingParameters(int index, String value)
       Session parameters to be compared when calculating differences.
       
      repeated string tracking_parameters = 1;
      Parameters:
      index - The index to set the value at.
      value - The trackingParameters to set.
      Returns:
      This builder for chaining.
    • addTrackingParameters

      public TestConfig.Builder addTrackingParameters(String value)
       Session parameters to be compared when calculating differences.
       
      repeated string tracking_parameters = 1;
      Parameters:
      value - The trackingParameters to add.
      Returns:
      This builder for chaining.
    • addAllTrackingParameters

      public TestConfig.Builder addAllTrackingParameters(Iterable<String> values)
       Session parameters to be compared when calculating differences.
       
      repeated string tracking_parameters = 1;
      Parameters:
      values - The trackingParameters to add.
      Returns:
      This builder for chaining.
    • clearTrackingParameters

      public TestConfig.Builder clearTrackingParameters()
       Session parameters to be compared when calculating differences.
       
      repeated string tracking_parameters = 1;
      Returns:
      This builder for chaining.
    • addTrackingParametersBytes

      public TestConfig.Builder addTrackingParametersBytes(com.google.protobuf.ByteString value)
       Session parameters to be compared when calculating differences.
       
      repeated string tracking_parameters = 1;
      Parameters:
      value - The bytes of the trackingParameters to add.
      Returns:
      This builder for chaining.
    • getFlow

      public String getFlow()
       Flow name to start the test case with.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
      
       Only one of `flow` and `page` should be set to indicate the starting point
       of the test case. If neither is set, the test case will start with start
       page on the default start flow.
       
      string flow = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getFlow in interface TestConfigOrBuilder
      Returns:
      The flow.
    • getFlowBytes

      public com.google.protobuf.ByteString getFlowBytes()
       Flow name to start the test case with.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
      
       Only one of `flow` and `page` should be set to indicate the starting point
       of the test case. If neither is set, the test case will start with start
       page on the default start flow.
       
      string flow = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getFlowBytes in interface TestConfigOrBuilder
      Returns:
      The bytes for flow.
    • setFlow

      public TestConfig.Builder setFlow(String value)
       Flow name to start the test case with.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
      
       Only one of `flow` and `page` should be set to indicate the starting point
       of the test case. If neither is set, the test case will start with start
       page on the default start flow.
       
      string flow = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The flow to set.
      Returns:
      This builder for chaining.
    • clearFlow

      public TestConfig.Builder clearFlow()
       Flow name to start the test case with.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
      
       Only one of `flow` and `page` should be set to indicate the starting point
       of the test case. If neither is set, the test case will start with start
       page on the default start flow.
       
      string flow = 2 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setFlowBytes

      public TestConfig.Builder setFlowBytes(com.google.protobuf.ByteString value)
       Flow name to start the test case with.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
      
       Only one of `flow` and `page` should be set to indicate the starting point
       of the test case. If neither is set, the test case will start with start
       page on the default start flow.
       
      string flow = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for flow to set.
      Returns:
      This builder for chaining.
    • getPage

      public String getPage()
       The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case
       with. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
      
       Only one of `flow` and `page` should be set to indicate the starting point
       of the test case. If neither is set, the test case will start with start
       page on the default start flow.
       
      string page = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getPage in interface TestConfigOrBuilder
      Returns:
      The page.
    • getPageBytes

      public com.google.protobuf.ByteString getPageBytes()
       The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case
       with. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
      
       Only one of `flow` and `page` should be set to indicate the starting point
       of the test case. If neither is set, the test case will start with start
       page on the default start flow.
       
      string page = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getPageBytes in interface TestConfigOrBuilder
      Returns:
      The bytes for page.
    • setPage

      public TestConfig.Builder setPage(String value)
       The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case
       with. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
      
       Only one of `flow` and `page` should be set to indicate the starting point
       of the test case. If neither is set, the test case will start with start
       page on the default start flow.
       
      string page = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The page to set.
      Returns:
      This builder for chaining.
    • clearPage

      public TestConfig.Builder clearPage()
       The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case
       with. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
      
       Only one of `flow` and `page` should be set to indicate the starting point
       of the test case. If neither is set, the test case will start with start
       page on the default start flow.
       
      string page = 3 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setPageBytes

      public TestConfig.Builder setPageBytes(com.google.protobuf.ByteString value)
       The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case
       with. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
      
       Only one of `flow` and `page` should be set to indicate the starting point
       of the test case. If neither is set, the test case will start with start
       page on the default start flow.
       
      string page = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for page to set.
      Returns:
      This builder for chaining.