Class RollbackTargetRequest.Builder (1.41.0)

public static final class RollbackTargetRequest.Builder extends GeneratedMessageV3.Builder<RollbackTargetRequest.Builder> implements RollbackTargetRequestOrBuilder

The request object for RollbackTarget.

Protobuf type google.cloud.deploy.v1.RollbackTargetRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RollbackTargetRequest build()
Returns
Type Description
RollbackTargetRequest

buildPartial()

public RollbackTargetRequest buildPartial()
Returns
Type Description
RollbackTargetRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public RollbackTargetRequest.Builder clearName()

Required. The DeliveryPipeline for which the rollback Rollout should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReleaseId()

public RollbackTargetRequest.Builder clearReleaseId()

Optional. ID of the Release to roll back to. If this isn't specified, the previous successful Rollout to the specified target will be used to determine the Release.

string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

clearRollbackConfig()

public RollbackTargetRequest.Builder clearRollbackConfig()

Optional. Configs for the rollback Rollout.

.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RollbackTargetRequest.Builder

clearRolloutId()

public RollbackTargetRequest.Builder clearRolloutId()

Required. ID of the rollback Rollout to create.

string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

clearRolloutToRollBack()

public RollbackTargetRequest.Builder clearRolloutToRollBack()

Optional. If provided, this must be the latest Rollout that is on the Target.

string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

clearTargetId()

public RollbackTargetRequest.Builder clearTargetId()

Required. ID of the Target that is being rolled back.

string target_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

clearValidateOnly()

public RollbackTargetRequest.Builder clearValidateOnly()

Optional. If set to true, the request is validated and the user is provided with a RollbackTargetResponse.

bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RollbackTargetRequest getDefaultInstanceForType()
Returns
Type Description
RollbackTargetRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The DeliveryPipeline for which the rollback Rollout should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The DeliveryPipeline for which the rollback Rollout should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getReleaseId()

public String getReleaseId()

Optional. ID of the Release to roll back to. If this isn't specified, the previous successful Rollout to the specified target will be used to determine the Release.

string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The releaseId.

getReleaseIdBytes()

public ByteString getReleaseIdBytes()

Optional. ID of the Release to roll back to. If this isn't specified, the previous successful Rollout to the specified target will be used to determine the Release.

string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for releaseId.

getRollbackConfig()

public RollbackTargetConfig getRollbackConfig()

Optional. Configs for the rollback Rollout.

.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RollbackTargetConfig

The rollbackConfig.

getRollbackConfigBuilder()

public RollbackTargetConfig.Builder getRollbackConfigBuilder()

Optional. Configs for the rollback Rollout.

.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RollbackTargetConfig.Builder

getRollbackConfigOrBuilder()

public RollbackTargetConfigOrBuilder getRollbackConfigOrBuilder()

Optional. Configs for the rollback Rollout.

.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RollbackTargetConfigOrBuilder

getRolloutId()

public String getRolloutId()

Required. ID of the rollback Rollout to create.

string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The rolloutId.

getRolloutIdBytes()

public ByteString getRolloutIdBytes()

Required. ID of the rollback Rollout to create.

string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for rolloutId.

getRolloutToRollBack()

public String getRolloutToRollBack()

Optional. If provided, this must be the latest Rollout that is on the Target.

string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The rolloutToRollBack.

getRolloutToRollBackBytes()

public ByteString getRolloutToRollBackBytes()

Optional. If provided, this must be the latest Rollout that is on the Target.

string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for rolloutToRollBack.

getTargetId()

public String getTargetId()

Required. ID of the Target that is being rolled back.

string target_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The targetId.

getTargetIdBytes()

public ByteString getTargetIdBytes()

Required. ID of the Target that is being rolled back.

string target_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for targetId.

getValidateOnly()

public boolean getValidateOnly()

Optional. If set to true, the request is validated and the user is provided with a RollbackTargetResponse.

bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

hasRollbackConfig()

public boolean hasRollbackConfig()

Optional. Configs for the rollback Rollout.

.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the rollbackConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RollbackTargetRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRollbackConfig(RollbackTargetConfig value)

public RollbackTargetRequest.Builder mergeRollbackConfig(RollbackTargetConfig value)

Optional. Configs for the rollback Rollout.

.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RollbackTargetConfig
Returns
Type Description
RollbackTargetRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public RollbackTargetRequest.Builder setName(String value)

Required. The DeliveryPipeline for which the rollback Rollout should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RollbackTargetRequest.Builder setNameBytes(ByteString value)

Required. The DeliveryPipeline for which the rollback Rollout should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

setReleaseId(String value)

public RollbackTargetRequest.Builder setReleaseId(String value)

Optional. ID of the Release to roll back to. If this isn't specified, the previous successful Rollout to the specified target will be used to determine the Release.

string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The releaseId to set.

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

setReleaseIdBytes(ByteString value)

public RollbackTargetRequest.Builder setReleaseIdBytes(ByteString value)

Optional. ID of the Release to roll back to. If this isn't specified, the previous successful Rollout to the specified target will be used to determine the Release.

string release_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for releaseId to set.

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

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

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

setRollbackConfig(RollbackTargetConfig value)

public RollbackTargetRequest.Builder setRollbackConfig(RollbackTargetConfig value)

Optional. Configs for the rollback Rollout.

.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RollbackTargetConfig
Returns
Type Description
RollbackTargetRequest.Builder

setRollbackConfig(RollbackTargetConfig.Builder builderForValue)

public RollbackTargetRequest.Builder setRollbackConfig(RollbackTargetConfig.Builder builderForValue)

Optional. Configs for the rollback Rollout.

.google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RollbackTargetConfig.Builder
Returns
Type Description
RollbackTargetRequest.Builder

setRolloutId(String value)

public RollbackTargetRequest.Builder setRolloutId(String value)

Required. ID of the rollback Rollout to create.

string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The rolloutId to set.

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

setRolloutIdBytes(ByteString value)

public RollbackTargetRequest.Builder setRolloutIdBytes(ByteString value)

Required. ID of the rollback Rollout to create.

string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for rolloutId to set.

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

setRolloutToRollBack(String value)

public RollbackTargetRequest.Builder setRolloutToRollBack(String value)

Optional. If provided, this must be the latest Rollout that is on the Target.

string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The rolloutToRollBack to set.

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

setRolloutToRollBackBytes(ByteString value)

public RollbackTargetRequest.Builder setRolloutToRollBackBytes(ByteString value)

Optional. If provided, this must be the latest Rollout that is on the Target.

string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for rolloutToRollBack to set.

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

setTargetId(String value)

public RollbackTargetRequest.Builder setTargetId(String value)

Required. ID of the Target that is being rolled back.

string target_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The targetId to set.

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

setTargetIdBytes(ByteString value)

public RollbackTargetRequest.Builder setTargetIdBytes(ByteString value)

Required. ID of the Target that is being rolled back.

string target_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for targetId to set.

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public RollbackTargetRequest.Builder setValidateOnly(boolean value)

Optional. If set to true, the request is validated and the user is provided with a RollbackTargetResponse.

bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
RollbackTargetRequest.Builder

This builder for chaining.