Class VersionVariants.Variant (0.14.2)

public static final class VersionVariants.Variant extends GeneratedMessageV3 implements VersionVariants.VariantOrBuilder

A single flow version with specified traffic allocation.

Protobuf type google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant

Static Fields

IS_CONTROL_GROUP_FIELD_NUMBER

public static final int IS_CONTROL_GROUP_FIELD_NUMBER
Field Value
TypeDescription
int

TRAFFIC_ALLOCATION_FIELD_NUMBER

public static final int TRAFFIC_ALLOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VersionVariants.Variant getDefaultInstance()
Returns
TypeDescription
VersionVariants.Variant

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static VersionVariants.Variant.Builder newBuilder()
Returns
TypeDescription
VersionVariants.Variant.Builder

newBuilder(VersionVariants.Variant prototype)

public static VersionVariants.Variant.Builder newBuilder(VersionVariants.Variant prototype)
Parameter
NameDescription
prototypeVersionVariants.Variant
Returns
TypeDescription
VersionVariants.Variant.Builder

parseDelimitedFrom(InputStream input)

public static VersionVariants.Variant parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VersionVariants.Variant
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VersionVariants.Variant parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VersionVariants.Variant
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static VersionVariants.Variant parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
VersionVariants.Variant
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VersionVariants.Variant parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VersionVariants.Variant
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VersionVariants.Variant parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
VersionVariants.Variant
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VersionVariants.Variant parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VersionVariants.Variant
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VersionVariants.Variant parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
VersionVariants.Variant
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VersionVariants.Variant parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VersionVariants.Variant
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static VersionVariants.Variant parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VersionVariants.Variant
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VersionVariants.Variant parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VersionVariants.Variant
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static VersionVariants.Variant parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
VersionVariants.Variant
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VersionVariants.Variant parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VersionVariants.Variant
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<VersionVariants.Variant> parser()
Returns
TypeDescription
Parser<Variant>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public VersionVariants.Variant getDefaultInstanceForType()
Returns
TypeDescription
VersionVariants.Variant

getIsControlGroup()

public boolean getIsControlGroup()

Whether the variant is for the control group.

bool is_control_group = 3;

Returns
TypeDescription
boolean

The isControlGroup.

getParserForType()

public Parser<VersionVariants.Variant> getParserForType()
Returns
TypeDescription
Parser<Variant>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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;

Returns
TypeDescription
float

The trafficAllocation.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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;

Returns
TypeDescription
String

The version.

getVersionBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for version.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public VersionVariants.Variant.Builder newBuilderForType()
Returns
TypeDescription
VersionVariants.Variant.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VersionVariants.Variant.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
VersionVariants.Variant.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public VersionVariants.Variant.Builder toBuilder()
Returns
TypeDescription
VersionVariants.Variant.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException