public static final class TrafficTargetStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TrafficTargetStatus.Builder> implements TrafficTargetStatusOrBuilder
Represents the observed state of a single `TrafficTarget` entry.Protobuf type
google.cloud.run.v2.TrafficTargetStatus| Modifier and Type | Method and Description |
|---|---|
TrafficTargetStatus.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TrafficTargetStatus |
build() |
TrafficTargetStatus |
buildPartial() |
TrafficTargetStatus.Builder |
clear() |
TrafficTargetStatus.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TrafficTargetStatus.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TrafficTargetStatus.Builder |
clearPercent()
Specifies percent of the traffic to this Revision.
|
TrafficTargetStatus.Builder |
clearRevision()
Revision to which this traffic is sent.
|
TrafficTargetStatus.Builder |
clearTag()
Indicates the string used in the URI to exclusively reference this target.
|
TrafficTargetStatus.Builder |
clearType()
The allocation type for this traffic target.
|
TrafficTargetStatus.Builder |
clearUri()
Displays the target URI.
|
TrafficTargetStatus.Builder |
clone() |
TrafficTargetStatus |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getPercent()
Specifies percent of the traffic to this Revision.
|
String |
getRevision()
Revision to which this traffic is sent.
|
com.google.protobuf.ByteString |
getRevisionBytes()
Revision to which this traffic is sent.
|
String |
getTag()
Indicates the string used in the URI to exclusively reference this target.
|
com.google.protobuf.ByteString |
getTagBytes()
Indicates the string used in the URI to exclusively reference this target.
|
TrafficTargetAllocationType |
getType()
The allocation type for this traffic target.
|
int |
getTypeValue()
The allocation type for this traffic target.
|
String |
getUri()
Displays the target URI.
|
com.google.protobuf.ByteString |
getUriBytes()
Displays the target URI.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TrafficTargetStatus.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TrafficTargetStatus.Builder |
mergeFrom(com.google.protobuf.Message other) |
TrafficTargetStatus.Builder |
mergeFrom(TrafficTargetStatus other) |
TrafficTargetStatus.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TrafficTargetStatus.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TrafficTargetStatus.Builder |
setPercent(int value)
Specifies percent of the traffic to this Revision.
|
TrafficTargetStatus.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TrafficTargetStatus.Builder |
setRevision(String value)
Revision to which this traffic is sent.
|
TrafficTargetStatus.Builder |
setRevisionBytes(com.google.protobuf.ByteString value)
Revision to which this traffic is sent.
|
TrafficTargetStatus.Builder |
setTag(String value)
Indicates the string used in the URI to exclusively reference this target.
|
TrafficTargetStatus.Builder |
setTagBytes(com.google.protobuf.ByteString value)
Indicates the string used in the URI to exclusively reference this target.
|
TrafficTargetStatus.Builder |
setType(TrafficTargetAllocationType value)
The allocation type for this traffic target.
|
TrafficTargetStatus.Builder |
setTypeValue(int value)
The allocation type for this traffic target.
|
TrafficTargetStatus.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TrafficTargetStatus.Builder |
setUri(String value)
Displays the target URI.
|
TrafficTargetStatus.Builder |
setUriBytes(com.google.protobuf.ByteString value)
Displays the target URI.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficTargetStatus.Builder>public TrafficTargetStatus.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficTargetStatus.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficTargetStatus.Builder>public TrafficTargetStatus getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TrafficTargetStatus build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TrafficTargetStatus buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TrafficTargetStatus.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficTargetStatus.Builder>public TrafficTargetStatus.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficTargetStatus.Builder>public TrafficTargetStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficTargetStatus.Builder>public TrafficTargetStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficTargetStatus.Builder>public TrafficTargetStatus.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficTargetStatus.Builder>public TrafficTargetStatus.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficTargetStatus.Builder>public TrafficTargetStatus.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TrafficTargetStatus.Builder>public TrafficTargetStatus.Builder mergeFrom(TrafficTargetStatus other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficTargetStatus.Builder>public TrafficTargetStatus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TrafficTargetStatus.Builder>IOExceptionpublic int getTypeValue()
The allocation type for this traffic target.
.google.cloud.run.v2.TrafficTargetAllocationType type = 1;getTypeValue in interface TrafficTargetStatusOrBuilderpublic TrafficTargetStatus.Builder setTypeValue(int value)
The allocation type for this traffic target.
.google.cloud.run.v2.TrafficTargetAllocationType type = 1;value - The enum numeric value on the wire for type to set.public TrafficTargetAllocationType getType()
The allocation type for this traffic target.
.google.cloud.run.v2.TrafficTargetAllocationType type = 1;getType in interface TrafficTargetStatusOrBuilderpublic TrafficTargetStatus.Builder setType(TrafficTargetAllocationType value)
The allocation type for this traffic target.
.google.cloud.run.v2.TrafficTargetAllocationType type = 1;value - The type to set.public TrafficTargetStatus.Builder clearType()
The allocation type for this traffic target.
.google.cloud.run.v2.TrafficTargetAllocationType type = 1;public String getRevision()
Revision to which this traffic is sent.
string revision = 2 [(.google.api.resource_reference) = { ... }getRevision in interface TrafficTargetStatusOrBuilderpublic com.google.protobuf.ByteString getRevisionBytes()
Revision to which this traffic is sent.
string revision = 2 [(.google.api.resource_reference) = { ... }getRevisionBytes in interface TrafficTargetStatusOrBuilderpublic TrafficTargetStatus.Builder setRevision(String value)
Revision to which this traffic is sent.
string revision = 2 [(.google.api.resource_reference) = { ... }value - The revision to set.public TrafficTargetStatus.Builder clearRevision()
Revision to which this traffic is sent.
string revision = 2 [(.google.api.resource_reference) = { ... }public TrafficTargetStatus.Builder setRevisionBytes(com.google.protobuf.ByteString value)
Revision to which this traffic is sent.
string revision = 2 [(.google.api.resource_reference) = { ... }value - The bytes for revision to set.public int getPercent()
Specifies percent of the traffic to this Revision.
int32 percent = 3;getPercent in interface TrafficTargetStatusOrBuilderpublic TrafficTargetStatus.Builder setPercent(int value)
Specifies percent of the traffic to this Revision.
int32 percent = 3;value - The percent to set.public TrafficTargetStatus.Builder clearPercent()
Specifies percent of the traffic to this Revision.
int32 percent = 3;public String getTag()
Indicates the string used in the URI to exclusively reference this target.
string tag = 4;getTag in interface TrafficTargetStatusOrBuilderpublic com.google.protobuf.ByteString getTagBytes()
Indicates the string used in the URI to exclusively reference this target.
string tag = 4;getTagBytes in interface TrafficTargetStatusOrBuilderpublic TrafficTargetStatus.Builder setTag(String value)
Indicates the string used in the URI to exclusively reference this target.
string tag = 4;value - The tag to set.public TrafficTargetStatus.Builder clearTag()
Indicates the string used in the URI to exclusively reference this target.
string tag = 4;public TrafficTargetStatus.Builder setTagBytes(com.google.protobuf.ByteString value)
Indicates the string used in the URI to exclusively reference this target.
string tag = 4;value - The bytes for tag to set.public String getUri()
Displays the target URI.
string uri = 5;getUri in interface TrafficTargetStatusOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
Displays the target URI.
string uri = 5;getUriBytes in interface TrafficTargetStatusOrBuilderpublic TrafficTargetStatus.Builder setUri(String value)
Displays the target URI.
string uri = 5;value - The uri to set.public TrafficTargetStatus.Builder clearUri()
Displays the target URI.
string uri = 5;public TrafficTargetStatus.Builder setUriBytes(com.google.protobuf.ByteString value)
Displays the target URI.
string uri = 5;value - The bytes for uri to set.public final TrafficTargetStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficTargetStatus.Builder>public final TrafficTargetStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TrafficTargetStatus.Builder>Copyright © 2025 Google LLC. All rights reserved.