Class Experiment.Definition.Builder

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

public static final class Experiment.Definition.Builder extends com.google.protobuf.GeneratedMessage.Builder<Experiment.Definition.Builder> implements Experiment.DefinitionOrBuilder
 Definition of the experiment.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Experiment.Definition
  • 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<Experiment.Definition.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<Experiment.Definition.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<Experiment.Definition.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Experiment.Definition.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<Experiment.Definition.Builder>
      Throws:
      IOException
    • getVariantsCase

      public Experiment.Definition.VariantsCase getVariantsCase()
      Specified by:
      getVariantsCase in interface Experiment.DefinitionOrBuilder
    • clearVariants

      public Experiment.Definition.Builder clearVariants()
    • getCondition

      public String getCondition()
       The condition defines which subset of sessions are selected for
       this experiment. If not specified, all sessions are eligible. E.g.
       "query_input.language_code=en" See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string condition = 1;
      Specified by:
      getCondition in interface Experiment.DefinitionOrBuilder
      Returns:
      The condition.
    • getConditionBytes

      public com.google.protobuf.ByteString getConditionBytes()
       The condition defines which subset of sessions are selected for
       this experiment. If not specified, all sessions are eligible. E.g.
       "query_input.language_code=en" See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string condition = 1;
      Specified by:
      getConditionBytes in interface Experiment.DefinitionOrBuilder
      Returns:
      The bytes for condition.
    • setCondition

      public Experiment.Definition.Builder setCondition(String value)
       The condition defines which subset of sessions are selected for
       this experiment. If not specified, all sessions are eligible. E.g.
       "query_input.language_code=en" See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string condition = 1;
      Parameters:
      value - The condition to set.
      Returns:
      This builder for chaining.
    • clearCondition

      public Experiment.Definition.Builder clearCondition()
       The condition defines which subset of sessions are selected for
       this experiment. If not specified, all sessions are eligible. E.g.
       "query_input.language_code=en" See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string condition = 1;
      Returns:
      This builder for chaining.
    • setConditionBytes

      public Experiment.Definition.Builder setConditionBytes(com.google.protobuf.ByteString value)
       The condition defines which subset of sessions are selected for
       this experiment. If not specified, all sessions are eligible. E.g.
       "query_input.language_code=en" See the [conditions
       reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
       
      string condition = 1;
      Parameters:
      value - The bytes for condition to set.
      Returns:
      This builder for chaining.
    • hasVersionVariants

      public boolean hasVersionVariants()
       The flow versions as the variants of this experiment.
       
      .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;
      Specified by:
      hasVersionVariants in interface Experiment.DefinitionOrBuilder
      Returns:
      Whether the versionVariants field is set.
    • getVersionVariants

      public VersionVariants getVersionVariants()
       The flow versions as the variants of this experiment.
       
      .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;
      Specified by:
      getVersionVariants in interface Experiment.DefinitionOrBuilder
      Returns:
      The versionVariants.
    • setVersionVariants

      public Experiment.Definition.Builder setVersionVariants(VersionVariants value)
       The flow versions as the variants of this experiment.
       
      .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;
    • setVersionVariants

      public Experiment.Definition.Builder setVersionVariants(VersionVariants.Builder builderForValue)
       The flow versions as the variants of this experiment.
       
      .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;
    • mergeVersionVariants

      public Experiment.Definition.Builder mergeVersionVariants(VersionVariants value)
       The flow versions as the variants of this experiment.
       
      .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;
    • clearVersionVariants

      public Experiment.Definition.Builder clearVersionVariants()
       The flow versions as the variants of this experiment.
       
      .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;
    • getVersionVariantsBuilder

      public VersionVariants.Builder getVersionVariantsBuilder()
       The flow versions as the variants of this experiment.
       
      .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;
    • getVersionVariantsOrBuilder

      public VersionVariantsOrBuilder getVersionVariantsOrBuilder()
       The flow versions as the variants of this experiment.
       
      .google.cloud.dialogflow.cx.v3beta1.VersionVariants version_variants = 2;
      Specified by:
      getVersionVariantsOrBuilder in interface Experiment.DefinitionOrBuilder