Class RolloutControl.Builder (0.15.0)

public static final class RolloutControl.Builder extends GeneratedMessage.Builder<RolloutControl.Builder> implements RolloutControlOrBuilder

RolloutControl provides a way to request a change to the execution of a Rollout by pausing or canceling it.

Protobuf type google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl

Static Methods

getDescriptor()

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

Methods

build()

public RolloutControl build()
Returns
Type Description
RolloutControl

buildPartial()

public RolloutControl buildPartial()
Returns
Type Description
RolloutControl

clear()

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

clearAction()

public RolloutControl.Builder clearAction()

Required. Action to be performed on the Rollout. The default behavior is to run the rollout until it naturally reaches a terminal state.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction action = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RolloutControl.Builder

This builder for chaining.

clearActionParams()

public RolloutControl.Builder clearActionParams()
Returns
Type Description
RolloutControl.Builder

clearRunParams()

public RolloutControl.Builder clearRunParams()

Optional. Parameters for the RUN action. It is an error to specify this if the RolloutAction is not set to RUN. By default, the rollout will retry failed operations when resumed.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RolloutControl.Builder

getAction()

public RolloutAction getAction()

Required. Action to be performed on the Rollout. The default behavior is to run the rollout until it naturally reaches a terminal state.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction action = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RolloutAction

The action.

getActionParamsCase()

public RolloutControl.ActionParamsCase getActionParamsCase()
Returns
Type Description
RolloutControl.ActionParamsCase

getActionValue()

public int getActionValue()

Required. Action to be performed on the Rollout. The default behavior is to run the rollout until it naturally reaches a terminal state.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction action = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for action.

getDefaultInstanceForType()

public RolloutControl getDefaultInstanceForType()
Returns
Type Description
RolloutControl

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRunParams()

public RolloutControl.RunRolloutActionParams getRunParams()

Optional. Parameters for the RUN action. It is an error to specify this if the RolloutAction is not set to RUN. By default, the rollout will retry failed operations when resumed.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RolloutControl.RunRolloutActionParams

The runParams.

getRunParamsBuilder()

public RolloutControl.RunRolloutActionParams.Builder getRunParamsBuilder()

Optional. Parameters for the RUN action. It is an error to specify this if the RolloutAction is not set to RUN. By default, the rollout will retry failed operations when resumed.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RolloutControl.RunRolloutActionParams.Builder

getRunParamsOrBuilder()

public RolloutControl.RunRolloutActionParamsOrBuilder getRunParamsOrBuilder()

Optional. Parameters for the RUN action. It is an error to specify this if the RolloutAction is not set to RUN. By default, the rollout will retry failed operations when resumed.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RolloutControl.RunRolloutActionParamsOrBuilder

hasRunParams()

public boolean hasRunParams()

Optional. Parameters for the RUN action. It is an error to specify this if the RolloutAction is not set to RUN. By default, the rollout will retry failed operations when resumed.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the runParams field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RolloutControl other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRunParams(RolloutControl.RunRolloutActionParams value)

public RolloutControl.Builder mergeRunParams(RolloutControl.RunRolloutActionParams value)

Optional. Parameters for the RUN action. It is an error to specify this if the RolloutAction is not set to RUN. By default, the rollout will retry failed operations when resumed.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RolloutControl.RunRolloutActionParams
Returns
Type Description
RolloutControl.Builder

setAction(RolloutAction value)

public RolloutControl.Builder setAction(RolloutAction value)

Required. Action to be performed on the Rollout. The default behavior is to run the rollout until it naturally reaches a terminal state.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction action = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RolloutAction

The action to set.

Returns
Type Description
RolloutControl.Builder

This builder for chaining.

setActionValue(int value)

public RolloutControl.Builder setActionValue(int value)

Required. Action to be performed on the Rollout. The default behavior is to run the rollout until it naturally reaches a terminal state.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction action = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
RolloutControl.Builder

This builder for chaining.

setRunParams(RolloutControl.RunRolloutActionParams value)

public RolloutControl.Builder setRunParams(RolloutControl.RunRolloutActionParams value)

Optional. Parameters for the RUN action. It is an error to specify this if the RolloutAction is not set to RUN. By default, the rollout will retry failed operations when resumed.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RolloutControl.RunRolloutActionParams
Returns
Type Description
RolloutControl.Builder

setRunParams(RolloutControl.RunRolloutActionParams.Builder builderForValue)

public RolloutControl.Builder setRunParams(RolloutControl.RunRolloutActionParams.Builder builderForValue)

Optional. Parameters for the RUN action. It is an error to specify this if the RolloutAction is not set to RUN. By default, the rollout will retry failed operations when resumed.

.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RolloutControl.RunRolloutActionParams.Builder
Returns
Type Description
RolloutControl.Builder