Class VersionVariants.Variant.Builder

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

public static final class VersionVariants.Variant.Builder extends com.google.protobuf.GeneratedMessage.Builder<VersionVariants.Variant.Builder> implements VersionVariants.VariantOrBuilder
 A single flow version with specified traffic allocation.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant
  • 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<VersionVariants.Variant.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<VersionVariants.Variant.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<VersionVariants.Variant.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public VersionVariants.Variant.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<VersionVariants.Variant.Builder>
      Throws:
      IOException
    • getVersion

      public String getVersion()
       The name of the flow version.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
       
      string version = 1;
      Specified by:
      getVersion in interface VersionVariants.VariantOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       The name of the flow version.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
       
      string version = 1;
      Specified by:
      getVersionBytes in interface VersionVariants.VariantOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public VersionVariants.Variant.Builder setVersion(String value)
       The name of the flow version.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
       
      string version = 1;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public VersionVariants.Variant.Builder clearVersion()
       The name of the flow version.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
       
      string version = 1;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public VersionVariants.Variant.Builder setVersionBytes(com.google.protobuf.ByteString value)
       The name of the flow version.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`.
       
      string version = 1;
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.
    • getTrafficAllocation

      public float getTrafficAllocation()
       Percentage of the traffic which should be routed to this
       version of flow. Traffic allocation for a single flow must sum up to 1.0.
       
      float traffic_allocation = 2;
      Specified by:
      getTrafficAllocation in interface VersionVariants.VariantOrBuilder
      Returns:
      The trafficAllocation.
    • setTrafficAllocation

      public VersionVariants.Variant.Builder setTrafficAllocation(float value)
       Percentage of the traffic which should be routed to this
       version of flow. Traffic allocation for a single flow must sum up to 1.0.
       
      float traffic_allocation = 2;
      Parameters:
      value - The trafficAllocation to set.
      Returns:
      This builder for chaining.
    • clearTrafficAllocation

      public VersionVariants.Variant.Builder clearTrafficAllocation()
       Percentage of the traffic which should be routed to this
       version of flow. Traffic allocation for a single flow must sum up to 1.0.
       
      float traffic_allocation = 2;
      Returns:
      This builder for chaining.
    • getIsControlGroup

      public boolean getIsControlGroup()
       Whether the variant is for the control group.
       
      bool is_control_group = 3;
      Specified by:
      getIsControlGroup in interface VersionVariants.VariantOrBuilder
      Returns:
      The isControlGroup.
    • setIsControlGroup

      public VersionVariants.Variant.Builder setIsControlGroup(boolean value)
       Whether the variant is for the control group.
       
      bool is_control_group = 3;
      Parameters:
      value - The isControlGroup to set.
      Returns:
      This builder for chaining.
    • clearIsControlGroup

      public VersionVariants.Variant.Builder clearIsControlGroup()
       Whether the variant is for the control group.
       
      bool is_control_group = 3;
      Returns:
      This builder for chaining.