Class VersionVariants.Variant.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public VersionVariants.Variant.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
      • clearField

        public VersionVariants.Variant.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
      • clearOneof

        public VersionVariants.Variant.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
      • setRepeatedField

        public VersionVariants.Variant.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
      • addRepeatedField

        public VersionVariants.Variant.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/versions/<Version ID>`.
         
        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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/versions/<Version ID>`.
         
        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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/versions/<Version ID>`.
         
        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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/versions/<Version ID>`.
         
        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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/versions/<Version ID>`.
         
        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.
      • 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.
      • setUnknownFields

        public final VersionVariants.Variant.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>
      • mergeUnknownFields

        public final VersionVariants.Variant.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VersionVariants.Variant.Builder>