Class Rollout (3.40.0)

public final class Rollout extends GeneratedMessageV3 implements RolloutOrBuilder

A rollout resource that defines how service configuration versions are pushed to control plane systems. Typically, you create a new version of the service config, and then create a Rollout to push the service config.

Protobuf type google.api.servicemanagement.v1.Rollout

Implements

RolloutOrBuilder

Static Fields

CREATED_BY_FIELD_NUMBER

public static final int CREATED_BY_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DELETE_SERVICE_STRATEGY_FIELD_NUMBER

public static final int DELETE_SERVICE_STRATEGY_FIELD_NUMBER
Field Value
Type Description
int

ROLLOUT_ID_FIELD_NUMBER

public static final int ROLLOUT_ID_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_NAME_FIELD_NUMBER

public static final int SERVICE_NAME_FIELD_NUMBER
Field Value
Type Description
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
Type Description
int

TRAFFIC_PERCENT_STRATEGY_FIELD_NUMBER

public static final int TRAFFIC_PERCENT_STRATEGY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Rollout getDefaultInstance()
Returns
Type Description
Rollout

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Rollout.Builder newBuilder()
Returns
Type Description
Rollout.Builder

newBuilder(Rollout prototype)

public static Rollout.Builder newBuilder(Rollout prototype)
Parameter
Name Description
prototype Rollout
Returns
Type Description
Rollout.Builder

parseDelimitedFrom(InputStream input)

public static Rollout parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Rollout
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Rollout parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Rollout
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Rollout parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Rollout
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Rollout parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Rollout
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Rollout parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Rollout
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Rollout parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Rollout
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Rollout parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Rollout
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Rollout parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Rollout
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Rollout parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Rollout
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Rollout parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Rollout
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Rollout parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Rollout
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Rollout parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Rollout
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Rollout> parser()
Returns
Type Description
Parser<Rollout>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
TimestampOrBuilder

getCreatedBy()

public String getCreatedBy()

The user who created the Rollout. Readonly.

string created_by = 3;

Returns
Type Description
String

The createdBy.

getCreatedByBytes()

public ByteString getCreatedByBytes()

The user who created the Rollout. Readonly.

string created_by = 3;

Returns
Type Description
ByteString

The bytes for createdBy.

getDefaultInstanceForType()

public Rollout getDefaultInstanceForType()
Returns
Type Description
Rollout

getDeleteServiceStrategy()

public Rollout.DeleteServiceStrategy getDeleteServiceStrategy()

The strategy associated with a rollout to delete a ManagedService. Readonly.

.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200;

Returns
Type Description
Rollout.DeleteServiceStrategy

The deleteServiceStrategy.

getDeleteServiceStrategyOrBuilder()

public Rollout.DeleteServiceStrategyOrBuilder getDeleteServiceStrategyOrBuilder()

The strategy associated with a rollout to delete a ManagedService. Readonly.

.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200;

Returns
Type Description
Rollout.DeleteServiceStrategyOrBuilder

getParserForType()

public Parser<Rollout> getParserForType()
Returns
Type Description
Parser<Rollout>
Overrides

getRolloutId()

public String getRolloutId()

Optional. Unique identifier of this Rollout. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed.

If not specified by client, the server will generate one. The generated id will have the form of <date><revision number>, where "date" is the create date in ISO 8601 format. "revision number" is a monotonically increasing positive number that is reset every day for each service. An example of the generated rollout_id is '2016-02-16r1'

string rollout_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The rolloutId.

getRolloutIdBytes()

public ByteString getRolloutIdBytes()

Optional. Unique identifier of this Rollout. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed.

If not specified by client, the server will generate one. The generated id will have the form of <date><revision number>, where "date" is the create date in ISO 8601 format. "revision number" is a monotonically increasing positive number that is reset every day for each service. An example of the generated rollout_id is '2016-02-16r1'

string rollout_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for rolloutId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceName()

public String getServiceName()

The name of the service associated with this Rollout.

string service_name = 8;

Returns
Type Description
String

The serviceName.

getServiceNameBytes()

public ByteString getServiceNameBytes()

The name of the service associated with this Rollout.

string service_name = 8;

Returns
Type Description
ByteString

The bytes for serviceName.

getStatus()

public Rollout.RolloutStatus getStatus()

The status of this rollout. Readonly. In case of a failed rollout, the system will automatically rollback to the current Rollout version. Readonly.

.google.api.servicemanagement.v1.Rollout.RolloutStatus status = 4;

Returns
Type Description
Rollout.RolloutStatus

The status.

getStatusValue()

public int getStatusValue()

The status of this rollout. Readonly. In case of a failed rollout, the system will automatically rollback to the current Rollout version. Readonly.

.google.api.servicemanagement.v1.Rollout.RolloutStatus status = 4;

Returns
Type Description
int

The enum numeric value on the wire for status.

getStrategyCase()

public Rollout.StrategyCase getStrategyCase()
Returns
Type Description
Rollout.StrategyCase

getTrafficPercentStrategy()

public Rollout.TrafficPercentStrategy getTrafficPercentStrategy()

Google Service Control selects service configurations based on traffic percentage.

.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5;

Returns
Type Description
Rollout.TrafficPercentStrategy

The trafficPercentStrategy.

getTrafficPercentStrategyOrBuilder()

public Rollout.TrafficPercentStrategyOrBuilder getTrafficPercentStrategyOrBuilder()

Google Service Control selects service configurations based on traffic percentage.

.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5;

Returns
Type Description
Rollout.TrafficPercentStrategyOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
boolean

Whether the createTime field is set.

hasDeleteServiceStrategy()

public boolean hasDeleteServiceStrategy()

The strategy associated with a rollout to delete a ManagedService. Readonly.

.google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy delete_service_strategy = 200;

Returns
Type Description
boolean

Whether the deleteServiceStrategy field is set.

hasTrafficPercentStrategy()

public boolean hasTrafficPercentStrategy()

Google Service Control selects service configurations based on traffic percentage.

.google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy traffic_percent_strategy = 5;

Returns
Type Description
boolean

Whether the trafficPercentStrategy field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Rollout.Builder newBuilderForType()
Returns
Type Description
Rollout.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Rollout.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Rollout.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Rollout.Builder toBuilder()
Returns
Type Description
Rollout.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException