Interface TrafficTargetOrBuilder (0.16.0)

public interface TrafficTargetOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPercent()

public abstract int getPercent()

Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.

int32 percent = 3;

Returns
TypeDescription
int

The percent.

getRevision()

public abstract String getRevision()

Revision to which to send this portion of traffic, if traffic allocation is by revision.

string revision = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The revision.

getRevisionBytes()

public abstract ByteString getRevisionBytes()

Revision to which to send this portion of traffic, if traffic allocation is by revision.

string revision = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for revision.

getTag()

public abstract String getTag()

Indicates a string to be part of the URI to exclusively reference this target.

string tag = 4;

Returns
TypeDescription
String

The tag.

getTagBytes()

public abstract ByteString getTagBytes()

Indicates a string to be part of the URI to exclusively reference this target.

string tag = 4;

Returns
TypeDescription
ByteString

The bytes for tag.

getType()

public abstract TrafficTargetAllocationType getType()

The allocation type for this traffic target.

.google.cloud.run.v2.TrafficTargetAllocationType type = 1;

Returns
TypeDescription
TrafficTargetAllocationType

The type.

getTypeValue()

public abstract int getTypeValue()

The allocation type for this traffic target.

.google.cloud.run.v2.TrafficTargetAllocationType type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for type.