public static final class ExperimentConfig.VersionRelease.TrafficAllocation extends GeneratedMessage implements ExperimentConfig.VersionRelease.TrafficAllocationOrBuilderTraffic allocation for the version release.
Protobuf type
google.cloud.ces.v1beta.ExperimentConfig.VersionRelease.TrafficAllocation
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ExperimentConfig.VersionRelease.TrafficAllocationStatic Fields
APP_VERSION_FIELD_NUMBER
public static final int APP_VERSION_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TRAFFIC_PERCENTAGE_FIELD_NUMBER
public static final int TRAFFIC_PERCENTAGE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static ExperimentConfig.VersionRelease.TrafficAllocation getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static ExperimentConfig.VersionRelease.TrafficAllocation.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation.Builder |
|
newBuilder(ExperimentConfig.VersionRelease.TrafficAllocation prototype)
public static ExperimentConfig.VersionRelease.TrafficAllocation.Builder newBuilder(ExperimentConfig.VersionRelease.TrafficAllocation prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
ExperimentConfig.VersionRelease.TrafficAllocation |
| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation.Builder |
|
parseDelimitedFrom(InputStream input)
public static ExperimentConfig.VersionRelease.TrafficAllocation parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ExperimentConfig.VersionRelease.TrafficAllocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static ExperimentConfig.VersionRelease.TrafficAllocation parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ExperimentConfig.VersionRelease.TrafficAllocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static ExperimentConfig.VersionRelease.TrafficAllocation parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ExperimentConfig.VersionRelease.TrafficAllocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static ExperimentConfig.VersionRelease.TrafficAllocation parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ExperimentConfig.VersionRelease.TrafficAllocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static ExperimentConfig.VersionRelease.TrafficAllocation parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ExperimentConfig.VersionRelease.TrafficAllocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static ExperimentConfig.VersionRelease.TrafficAllocation parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ExperimentConfig.VersionRelease.TrafficAllocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<ExperimentConfig.VersionRelease.TrafficAllocation> parser()| Returns | |
|---|---|
| Type | Description |
Parser<TrafficAllocation> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAppVersion()
public String getAppVersion() Optional. App version of the traffic allocation.
Format:
projects/{project}/locations/{location}/apps/{app}/versions/{version}
string app_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The appVersion. |
getAppVersionBytes()
public ByteString getAppVersionBytes() Optional. App version of the traffic allocation.
Format:
projects/{project}/locations/{location}/apps/{app}/versions/{version}
string app_version = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for appVersion. |
getDefaultInstanceForType()
public ExperimentConfig.VersionRelease.TrafficAllocation getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation |
|
getId()
public String getId()Optional. Id of the traffic allocation. Free format string, up to 128 characters.
string id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The id. |
getIdBytes()
public ByteString getIdBytes()Optional. Id of the traffic allocation. Free format string, up to 128 characters.
string id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for id. |
getParserForType()
public Parser<ExperimentConfig.VersionRelease.TrafficAllocation> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<TrafficAllocation> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getTrafficPercentage()
public int getTrafficPercentage()Optional. Traffic percentage of the traffic allocation. Must be between 0 and 100.
int32 traffic_percentage = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The trafficPercentage. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public ExperimentConfig.VersionRelease.TrafficAllocation.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ExperimentConfig.VersionRelease.TrafficAllocation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation.Builder |
|
toBuilder()
public ExperimentConfig.VersionRelease.TrafficAllocation.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
ExperimentConfig.VersionRelease.TrafficAllocation.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|