public final class GoogleCloudRunV2TrafficTarget
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Run Admin API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
GoogleCloudRunV2TrafficTarget() |
| Modifier and Type | Method and Description |
|---|---|
GoogleCloudRunV2TrafficTarget |
clone() |
Integer |
getPercent()
Specifies percent of the traffic to this Revision.
|
String |
getRevision()
Revision to which to send this portion of traffic, if traffic allocation is by revision.
|
String |
getTag()
Indicates a string to be part of the URI to exclusively reference this target.
|
String |
getType()
The allocation type for this traffic target.
|
GoogleCloudRunV2TrafficTarget |
set(String fieldName,
Object value) |
GoogleCloudRunV2TrafficTarget |
setPercent(Integer percent)
Specifies percent of the traffic to this Revision.
|
GoogleCloudRunV2TrafficTarget |
setRevision(String revision)
Revision to which to send this portion of traffic, if traffic allocation is by revision.
|
GoogleCloudRunV2TrafficTarget |
setTag(String tag)
Indicates a string to be part of the URI to exclusively reference this target.
|
GoogleCloudRunV2TrafficTarget |
setType(String type)
The allocation type for this traffic target.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Integer getPercent()
null for nonepublic GoogleCloudRunV2TrafficTarget setPercent(Integer percent)
percent - percent or null for nonepublic String getRevision()
null for nonepublic GoogleCloudRunV2TrafficTarget setRevision(String revision)
revision - revision or null for nonepublic String getTag()
null for nonepublic GoogleCloudRunV2TrafficTarget setTag(String tag)
tag - tag or null for nonepublic String getType()
null for nonepublic GoogleCloudRunV2TrafficTarget setType(String type)
type - type or null for nonepublic GoogleCloudRunV2TrafficTarget set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic GoogleCloudRunV2TrafficTarget clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.