Class RollbackTargetRequest.Builder (1.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RollbackTargetRequest build()
Returns
TypeDescription
RollbackTargetRequest

buildPartial()

public RollbackTargetRequest buildPartial()
Returns
TypeDescription
RollbackTargetRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public RollbackTargetRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
RollbackTargetRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RollbackTargetRequest getDefaultInstanceForType()
Returns
TypeDescription
RollbackTargetRequest

getDescriptorForType()

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

getRolloutId()

public String getRolloutId()

Required. ID of the rollback Rollout to create.

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

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

Whether the rollbackConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RollbackTargetRequest other)

public RollbackTargetRequest.Builder mergeFrom(RollbackTargetRequest other)
Parameter
NameDescription
otherRollbackTargetRequest
Returns
TypeDescription
RollbackTargetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RollbackTargetRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RollbackTargetRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RollbackTargetRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

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

The bytes for name to set.

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

The releaseId to set.

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

The bytes for releaseId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueRollbackTargetConfig
Returns
TypeDescription
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
NameDescription
builderForValueRollbackTargetConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The rolloutId to set.

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

The bytes for rolloutId to set.

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

The rolloutToRollBack to set.

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

The bytes for rolloutToRollBack to set.

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

The targetId to set.

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

The bytes for targetId to set.

Returns
TypeDescription
RollbackTargetRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RollbackTargetRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
RollbackTargetRequest.Builder

This builder for chaining.