Class Rollout.Builder (3.37.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Rollout.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Rollout.Builder
Overrides

build()

public Rollout build()
Returns
TypeDescription
Rollout

buildPartial()

public Rollout buildPartial()
Returns
TypeDescription
Rollout

clear()

public Rollout.Builder clear()
Returns
TypeDescription
Rollout.Builder
Overrides

clearCreateTime()

public Rollout.Builder clearCreateTime()

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Rollout.Builder

clearCreatedBy()

public Rollout.Builder clearCreatedBy()

The user who created the Rollout. Readonly.

string created_by = 3;

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

clearField(Descriptors.FieldDescriptor field)

public Rollout.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Rollout.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Rollout.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Rollout.Builder

This builder for chaining.

clearStrategy()

public Rollout.Builder clearStrategy()
Returns
TypeDescription
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
TypeDescription
Rollout.Builder

clone()

public Rollout.Builder clone()
Returns
TypeDescription
Rollout.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getCreatedBy()

public String getCreatedBy()

The user who created the Rollout. Readonly.

string created_by = 3;

Returns
TypeDescription
String

The createdBy.

getCreatedByBytes()

public ByteString getCreatedByBytes()

The user who created the Rollout. Readonly.

string created_by = 3;

Returns
TypeDescription
ByteString

The bytes for createdBy.

getDefaultInstanceForType()

public Rollout getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Rollout.DeleteServiceStrategyOrBuilder

getDescriptorForType()

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

The bytes for rolloutId.

getServiceName()

public String getServiceName()

The name of the service associated with this Rollout.

string service_name = 8;

Returns
TypeDescription
String

The serviceName.

getServiceNameBytes()

public ByteString getServiceNameBytes()

The name of the service associated with this Rollout.

string service_name = 8;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for status.

getStrategyCase()

public Rollout.StrategyCase getStrategyCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Rollout.TrafficPercentStrategyOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the trafficPercentStrategy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Rollout.Builder mergeCreateTime(Timestamp value)

Creation time of the rollout. Readonly.

.google.protobuf.Timestamp create_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueRollout.DeleteServiceStrategy
Returns
TypeDescription
Rollout.Builder

mergeFrom(Rollout other)

public Rollout.Builder mergeFrom(Rollout other)
Parameter
NameDescription
otherRollout
Returns
TypeDescription
Rollout.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Rollout.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Rollout.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Rollout.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRollout.TrafficPercentStrategy
Returns
TypeDescription
Rollout.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Rollout.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Rollout.Builder

setCreatedBy(String value)

public Rollout.Builder setCreatedBy(String value)

The user who created the Rollout. Readonly.

string created_by = 3;

Parameter
NameDescription
valueString

The createdBy to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for createdBy to set.

Returns
TypeDescription
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
NameDescription
valueRollout.DeleteServiceStrategy
Returns
TypeDescription
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
NameDescription
builderForValueRollout.DeleteServiceStrategy.Builder
Returns
TypeDescription
Rollout.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Rollout.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Rollout.Builder
Overrides

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

public Rollout.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The rolloutId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for rolloutId to set.

Returns
TypeDescription
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
NameDescription
valueString

The serviceName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for serviceName to set.

Returns
TypeDescription
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
NameDescription
valueRollout.RolloutStatus

The status to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueRollout.TrafficPercentStrategy
Returns
TypeDescription
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
NameDescription
builderForValueRollout.TrafficPercentStrategy.Builder
Returns
TypeDescription
Rollout.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Rollout.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Rollout.Builder
Overrides