Class Rollout.Builder (3.52.0)

public static final class Rollout.Builder extends GeneratedMessageV3.Builder<Rollout.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Rollout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Rollout.Builder
Overrides

build()

public Rollout build()
Returns
Type Description
Rollout

buildPartial()

public Rollout buildPartial()
Returns
Type Description
Rollout

clear()

public Rollout.Builder clear()
Returns
Type Description
Rollout.Builder
Overrides

clearCreateTime()

public Rollout.Builder clearCreateTime()

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Rollout.Builder

clearCreatedBy()

public Rollout.Builder clearCreatedBy()

The user who created the Rollout. Readonly.

string created_by = 3;

Returns
Type Description
Rollout.Builder

This builder for chaining.

clearDeleteServiceStrategy()

public Rollout.Builder clearDeleteServiceStrategy()

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

clearField(Descriptors.FieldDescriptor field)

public Rollout.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Rollout.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Rollout.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Rollout.Builder
Overrides

clearRolloutId()

public Rollout.Builder clearRolloutId()

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
Rollout.Builder

This builder for chaining.

clearServiceName()

public Rollout.Builder clearServiceName()

The name of the service associated with this Rollout.

string service_name = 8;

Returns
Type Description
Rollout.Builder

This builder for chaining.

clearStatus()

public Rollout.Builder clearStatus()

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

This builder for chaining.

clearStrategy()

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

clearTrafficPercentStrategy()

public Rollout.Builder clearTrafficPercentStrategy()

Google Service Control selects service configurations based on traffic percentage.

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

Returns
Type Description
Rollout.Builder

clone()

public Rollout.Builder clone()
Returns
Type Description
Rollout.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Builder

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.

getDeleteServiceStrategyBuilder()

public Rollout.DeleteServiceStrategy.Builder getDeleteServiceStrategyBuilder()

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

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

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.

getTrafficPercentStrategyBuilder()

public Rollout.TrafficPercentStrategy.Builder getTrafficPercentStrategyBuilder()

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Rollout.Builder mergeCreateTime(Timestamp value)

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
Rollout.Builder

mergeDeleteServiceStrategy(Rollout.DeleteServiceStrategy value)

public Rollout.Builder mergeDeleteServiceStrategy(Rollout.DeleteServiceStrategy value)

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

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

Parameter
Name Description
value Rollout.DeleteServiceStrategy
Returns
Type Description
Rollout.Builder

mergeFrom(Rollout other)

public Rollout.Builder mergeFrom(Rollout other)
Parameter
Name Description
other Rollout
Returns
Type Description
Rollout.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Rollout.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Rollout.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Rollout.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Rollout.Builder
Overrides

mergeTrafficPercentStrategy(Rollout.TrafficPercentStrategy value)

public Rollout.Builder mergeTrafficPercentStrategy(Rollout.TrafficPercentStrategy value)

Google Service Control selects service configurations based on traffic percentage.

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

Parameter
Name Description
value Rollout.TrafficPercentStrategy
Returns
Type Description
Rollout.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Rollout.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Rollout.Builder
Overrides

setCreateTime(Timestamp value)

public Rollout.Builder setCreateTime(Timestamp value)

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
Rollout.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Rollout.Builder setCreateTime(Timestamp.Builder builderForValue)

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Rollout.Builder

setCreatedBy(String value)

public Rollout.Builder setCreatedBy(String value)

The user who created the Rollout. Readonly.

string created_by = 3;

Parameter
Name Description
value String

The createdBy to set.

Returns
Type Description
Rollout.Builder

This builder for chaining.

setCreatedByBytes(ByteString value)

public Rollout.Builder setCreatedByBytes(ByteString value)

The user who created the Rollout. Readonly.

string created_by = 3;

Parameter
Name Description
value ByteString

The bytes for createdBy to set.

Returns
Type Description
Rollout.Builder

This builder for chaining.

setDeleteServiceStrategy(Rollout.DeleteServiceStrategy value)

public Rollout.Builder setDeleteServiceStrategy(Rollout.DeleteServiceStrategy value)

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

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

Parameter
Name Description
value Rollout.DeleteServiceStrategy
Returns
Type Description
Rollout.Builder

setDeleteServiceStrategy(Rollout.DeleteServiceStrategy.Builder builderForValue)

public Rollout.Builder setDeleteServiceStrategy(Rollout.DeleteServiceStrategy.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Rollout.DeleteServiceStrategy.Builder
Returns
Type Description
Rollout.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Rollout.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Rollout.Builder
Overrides

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

public Rollout.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Rollout.Builder
Overrides

setRolloutId(String value)

public Rollout.Builder setRolloutId(String value)

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];

Parameter
Name Description
value String

The rolloutId to set.

Returns
Type Description
Rollout.Builder

This builder for chaining.

setRolloutIdBytes(ByteString value)

public Rollout.Builder setRolloutIdBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for rolloutId to set.

Returns
Type Description
Rollout.Builder

This builder for chaining.

setServiceName(String value)

public Rollout.Builder setServiceName(String value)

The name of the service associated with this Rollout.

string service_name = 8;

Parameter
Name Description
value String

The serviceName to set.

Returns
Type Description
Rollout.Builder

This builder for chaining.

setServiceNameBytes(ByteString value)

public Rollout.Builder setServiceNameBytes(ByteString value)

The name of the service associated with this Rollout.

string service_name = 8;

Parameter
Name Description
value ByteString

The bytes for serviceName to set.

Returns
Type Description
Rollout.Builder

This builder for chaining.

setStatus(Rollout.RolloutStatus value)

public Rollout.Builder setStatus(Rollout.RolloutStatus value)

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;

Parameter
Name Description
value Rollout.RolloutStatus

The status to set.

Returns
Type Description
Rollout.Builder

This builder for chaining.

setStatusValue(int value)

public Rollout.Builder setStatusValue(int value)

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;

Parameter
Name Description
value int

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

Returns
Type Description
Rollout.Builder

This builder for chaining.

setTrafficPercentStrategy(Rollout.TrafficPercentStrategy value)

public Rollout.Builder setTrafficPercentStrategy(Rollout.TrafficPercentStrategy value)

Google Service Control selects service configurations based on traffic percentage.

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

Parameter
Name Description
value Rollout.TrafficPercentStrategy
Returns
Type Description
Rollout.Builder

setTrafficPercentStrategy(Rollout.TrafficPercentStrategy.Builder builderForValue)

public Rollout.Builder setTrafficPercentStrategy(Rollout.TrafficPercentStrategy.Builder builderForValue)

Google Service Control selects service configurations based on traffic percentage.

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

Parameter
Name Description
builderForValue Rollout.TrafficPercentStrategy.Builder
Returns
Type Description
Rollout.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Rollout.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Rollout.Builder
Overrides