Class RollbackTargetRequest (1.46.0)

public final class RollbackTargetRequest extends GeneratedMessageV3 implements RollbackTargetRequestOrBuilder

The request object for RollbackTarget.

Protobuf type google.cloud.deploy.v1.RollbackTargetRequest

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

RELEASE_ID_FIELD_NUMBER

public static final int RELEASE_ID_FIELD_NUMBER
Field Value
Type Description
int

ROLLBACK_CONFIG_FIELD_NUMBER

public static final int ROLLBACK_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

ROLLOUT_ID_FIELD_NUMBER

public static final int ROLLOUT_ID_FIELD_NUMBER
Field Value
Type Description
int

ROLLOUT_TO_ROLL_BACK_FIELD_NUMBER

public static final int ROLLOUT_TO_ROLL_BACK_FIELD_NUMBER
Field Value
Type Description
int

TARGET_ID_FIELD_NUMBER

public static final int TARGET_ID_FIELD_NUMBER
Field Value
Type Description
int

VALIDATE_ONLY_FIELD_NUMBER

public static final int VALIDATE_ONLY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RollbackTargetRequest getDefaultInstance()
Returns
Type Description
RollbackTargetRequest

getDescriptor()

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

newBuilder()

public static RollbackTargetRequest.Builder newBuilder()
Returns
Type Description
RollbackTargetRequest.Builder

newBuilder(RollbackTargetRequest prototype)

public static RollbackTargetRequest.Builder newBuilder(RollbackTargetRequest prototype)
Parameter
Name Description
prototype RollbackTargetRequest
Returns
Type Description
RollbackTargetRequest.Builder

parseDelimitedFrom(InputStream input)

public static RollbackTargetRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RollbackTargetRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RollbackTargetRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RollbackTargetRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RollbackTargetRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RollbackTargetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RollbackTargetRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RollbackTargetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RollbackTargetRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RollbackTargetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RollbackTargetRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RollbackTargetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RollbackTargetRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RollbackTargetRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RollbackTargetRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RollbackTargetRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RollbackTargetRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RollbackTargetRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RollbackTargetRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RollbackTargetRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RollbackTargetRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RollbackTargetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RollbackTargetRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RollbackTargetRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RollbackTargetRequest> parser()
Returns
Type Description
Parser<RollbackTargetRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RollbackTargetRequest getDefaultInstanceForType()
Returns
Type Description
RollbackTargetRequest

getName()

public String getName()

Required. The DeliveryPipeline for which the rollback Rollout must be created. The format is 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 must be created. The format is 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.

getParserForType()

public Parser<RollbackTargetRequest> getParserForType()
Returns
Type Description
Parser<RollbackTargetRequest>
Overrides

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.

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RollbackTargetRequest.Builder newBuilderForType()
Returns
Type Description
RollbackTargetRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RollbackTargetRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RollbackTargetRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RollbackTargetRequest.Builder toBuilder()
Returns
Type Description
RollbackTargetRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException