Class TrafficTargetStatus.Builder (0.5.0)

public static final class TrafficTargetStatus.Builder extends GeneratedMessageV3.Builder<TrafficTargetStatus.Builder> implements TrafficTargetStatusOrBuilder

Represents the observed state of a single TrafficTarget entry.

Protobuf type google.cloud.run.v2.TrafficTargetStatus

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TrafficTargetStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TrafficTargetStatus.Builder
Overrides

build()

public TrafficTargetStatus build()
Returns
TypeDescription
TrafficTargetStatus

buildPartial()

public TrafficTargetStatus buildPartial()
Returns
TypeDescription
TrafficTargetStatus

clear()

public TrafficTargetStatus.Builder clear()
Returns
TypeDescription
TrafficTargetStatus.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TrafficTargetStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TrafficTargetStatus.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TrafficTargetStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TrafficTargetStatus.Builder
Overrides

clearPercent()

public TrafficTargetStatus.Builder clearPercent()

Specifies percent of the traffic to this Revision.

int32 percent = 3;

Returns
TypeDescription
TrafficTargetStatus.Builder

This builder for chaining.

clearRevision()

public TrafficTargetStatus.Builder clearRevision()

Revision to which this traffic is sent.

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

Returns
TypeDescription
TrafficTargetStatus.Builder

This builder for chaining.

clearTag()

public TrafficTargetStatus.Builder clearTag()

Indicates the string used in the URI to exclusively reference this target.

string tag = 4;

Returns
TypeDescription
TrafficTargetStatus.Builder

This builder for chaining.

clearType()

public TrafficTargetStatus.Builder clearType()

The allocation type for this traffic target.

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

Returns
TypeDescription
TrafficTargetStatus.Builder

This builder for chaining.

clearUri()

public TrafficTargetStatus.Builder clearUri()

Displays the target URI.

string uri = 5;

Returns
TypeDescription
TrafficTargetStatus.Builder

This builder for chaining.

clone()

public TrafficTargetStatus.Builder clone()
Returns
TypeDescription
TrafficTargetStatus.Builder
Overrides

getDefaultInstanceForType()

public TrafficTargetStatus getDefaultInstanceForType()
Returns
TypeDescription
TrafficTargetStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPercent()

public int getPercent()

Specifies percent of the traffic to this Revision.

int32 percent = 3;

Returns
TypeDescription
int

The percent.

getRevision()

public String getRevision()

Revision to which this traffic is sent.

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

Returns
TypeDescription
String

The revision.

getRevisionBytes()

public ByteString getRevisionBytes()

Revision to which this traffic is sent.

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

Returns
TypeDescription
ByteString

The bytes for revision.

getTag()

public String getTag()

Indicates the string used in the URI to exclusively reference this target.

string tag = 4;

Returns
TypeDescription
String

The tag.

getTagBytes()

public ByteString getTagBytes()

Indicates the string used in the URI to exclusively reference this target.

string tag = 4;

Returns
TypeDescription
ByteString

The bytes for tag.

getType()

public TrafficTargetAllocationType getType()

The allocation type for this traffic target.

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

Returns
TypeDescription
TrafficTargetAllocationType

The type.

getTypeValue()

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

getUri()

public String getUri()

Displays the target URI.

string uri = 5;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Displays the target URI.

string uri = 5;

Returns
TypeDescription
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TrafficTargetStatus other)

public TrafficTargetStatus.Builder mergeFrom(TrafficTargetStatus other)
Parameter
NameDescription
otherTrafficTargetStatus
Returns
TypeDescription
TrafficTargetStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TrafficTargetStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrafficTargetStatus.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TrafficTargetStatus.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TrafficTargetStatus.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TrafficTargetStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TrafficTargetStatus.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TrafficTargetStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TrafficTargetStatus.Builder
Overrides

setPercent(int value)

public TrafficTargetStatus.Builder setPercent(int value)

Specifies percent of the traffic to this Revision.

int32 percent = 3;

Parameter
NameDescription
valueint

The percent to set.

Returns
TypeDescription
TrafficTargetStatus.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TrafficTargetStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TrafficTargetStatus.Builder
Overrides

setRevision(String value)

public TrafficTargetStatus.Builder setRevision(String value)

Revision to which this traffic is sent.

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

Parameter
NameDescription
valueString

The revision to set.

Returns
TypeDescription
TrafficTargetStatus.Builder

This builder for chaining.

setRevisionBytes(ByteString value)

public TrafficTargetStatus.Builder setRevisionBytes(ByteString value)

Revision to which this traffic is sent.

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

Parameter
NameDescription
valueByteString

The bytes for revision to set.

Returns
TypeDescription
TrafficTargetStatus.Builder

This builder for chaining.

setTag(String value)

public TrafficTargetStatus.Builder setTag(String value)

Indicates the string used in the URI to exclusively reference this target.

string tag = 4;

Parameter
NameDescription
valueString

The tag to set.

Returns
TypeDescription
TrafficTargetStatus.Builder

This builder for chaining.

setTagBytes(ByteString value)

public TrafficTargetStatus.Builder setTagBytes(ByteString value)

Indicates the string used in the URI to exclusively reference this target.

string tag = 4;

Parameter
NameDescription
valueByteString

The bytes for tag to set.

Returns
TypeDescription
TrafficTargetStatus.Builder

This builder for chaining.

setType(TrafficTargetAllocationType value)

public TrafficTargetStatus.Builder setType(TrafficTargetAllocationType value)

The allocation type for this traffic target.

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

Parameter
NameDescription
valueTrafficTargetAllocationType

The type to set.

Returns
TypeDescription
TrafficTargetStatus.Builder

This builder for chaining.

setTypeValue(int value)

public TrafficTargetStatus.Builder setTypeValue(int value)

The allocation type for this traffic target.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
TrafficTargetStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TrafficTargetStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TrafficTargetStatus.Builder
Overrides

setUri(String value)

public TrafficTargetStatus.Builder setUri(String value)

Displays the target URI.

string uri = 5;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
TrafficTargetStatus.Builder

This builder for chaining.

setUriBytes(ByteString value)

public TrafficTargetStatus.Builder setUriBytes(ByteString value)

Displays the target URI.

string uri = 5;

Parameter
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
TrafficTargetStatus.Builder

This builder for chaining.