Class ImportStatefileRequest (0.6.0)

public final class ImportStatefileRequest extends GeneratedMessageV3 implements ImportStatefileRequestOrBuilder

A request to import a state file passed to a 'ImportStatefile' call.

Protobuf type google.cloud.config.v1.ImportStatefileRequest

Static Fields

LOCK_ID_FIELD_NUMBER

public static final int LOCK_ID_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

SKIP_DRAFT_FIELD_NUMBER

public static final int SKIP_DRAFT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ImportStatefileRequest getDefaultInstance()
Returns
TypeDescription
ImportStatefileRequest

getDescriptor()

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

newBuilder()

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

newBuilder(ImportStatefileRequest prototype)

public static ImportStatefileRequest.Builder newBuilder(ImportStatefileRequest prototype)
Parameter
NameDescription
prototypeImportStatefileRequest
Returns
TypeDescription
ImportStatefileRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ImportStatefileRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportStatefileRequest

getLockId()

public long getLockId()

Required. Lock ID of the lock file to verify that the user who is importing the state file previously locked the Deployment.

int64 lock_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
long

The lockId.

getParent()

public String getParent()

Required. The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<ImportStatefileRequest> getParserForType()
Returns
TypeDescription
Parser<ImportStatefileRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSkipDraft()

public boolean getSkipDraft()

Optional.

bool skip_draft = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The skipDraft.

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 ImportStatefileRequest.Builder newBuilderForType()
Returns
TypeDescription
ImportStatefileRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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