Class RollbackTargetRequest (1.31.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
TypeDescription
int

RELEASE_ID_FIELD_NUMBER

public static final int RELEASE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

ROLLBACK_CONFIG_FIELD_NUMBER

public static final int ROLLBACK_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

ROLLOUT_ID_FIELD_NUMBER

public static final int ROLLOUT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

ROLLOUT_TO_ROLL_BACK_FIELD_NUMBER

public static final int ROLLOUT_TO_ROLL_BACK_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_ID_FIELD_NUMBER

public static final int TARGET_ID_FIELD_NUMBER
Field Value
TypeDescription
int

VALIDATE_ONLY_FIELD_NUMBER

public static final int VALIDATE_ONLY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RollbackTargetRequest getDefaultInstance()
Returns
TypeDescription
RollbackTargetRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RollbackTargetRequest.Builder newBuilder()
Returns
TypeDescription
RollbackTargetRequest.Builder

newBuilder(RollbackTargetRequest prototype)

public static RollbackTargetRequest.Builder newBuilder(RollbackTargetRequest prototype)
Parameter
NameDescription
prototypeRollbackTargetRequest
Returns
TypeDescription
RollbackTargetRequest.Builder

parseDelimitedFrom(InputStream input)

public static RollbackTargetRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RollbackTargetRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RollbackTargetRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RollbackTargetRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RollbackTargetRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RollbackTargetRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RollbackTargetRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RollbackTargetRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RollbackTargetRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RollbackTargetRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RollbackTargetRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RollbackTargetRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RollbackTargetRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RollbackTargetRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RollbackTargetRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RollbackTargetRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RollbackTargetRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RollbackTargetRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RollbackTargetRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RollbackTargetRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RollbackTargetRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RollbackTargetRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RollbackTargetRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RollbackTargetRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RollbackTargetRequest> parser()
Returns
TypeDescription
Parser<RollbackTargetRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public RollbackTargetRequest getDefaultInstanceForType()
Returns
TypeDescription
RollbackTargetRequest

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.

getParserForType()

public Parser<RollbackTargetRequest> getParserForType()
Returns
TypeDescription
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
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.

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RollbackTargetRequest.Builder newBuilderForType()
Returns
TypeDescription
RollbackTargetRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RollbackTargetRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RollbackTargetRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RollbackTargetRequest.Builder toBuilder()
Returns
TypeDescription
RollbackTargetRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException