Class CreateRestorePlanRequest (0.7.0)

public final class CreateRestorePlanRequest extends GeneratedMessageV3 implements CreateRestorePlanRequestOrBuilder

Request message for CreateRestorePlan.

Protobuf type google.cloud.gkebackup.v1.CreateRestorePlanRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

RESTORE_PLAN_FIELD_NUMBER

public static final int RESTORE_PLAN_FIELD_NUMBER
Field Value
TypeDescription
int

RESTORE_PLAN_ID_FIELD_NUMBER

public static final int RESTORE_PLAN_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateRestorePlanRequest getDefaultInstance()
Returns
TypeDescription
CreateRestorePlanRequest

getDescriptor()

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

newBuilder()

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

newBuilder(CreateRestorePlanRequest prototype)

public static CreateRestorePlanRequest.Builder newBuilder(CreateRestorePlanRequest prototype)
Parameter
NameDescription
prototypeCreateRestorePlanRequest
Returns
TypeDescription
CreateRestorePlanRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CreateRestorePlanRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateRestorePlanRequest

getParent()

public String getParent()

Required. The location within which to create the RestorePlan. Format: projects/*/locations/*

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The location within which to create the RestorePlan. Format: projects/*/locations/*

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

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

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

getRestorePlan()

public RestorePlan getRestorePlan()

Required. The RestorePlan resource object to create.

.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RestorePlan

The restorePlan.

getRestorePlanId()

public String getRestorePlanId()

Required. The client-provided short name for the RestorePlan resource. This name must:

  • be between 1 and 63 characters long (inclusive)
  • consist of only lower-case ASCII letters, numbers, and dashes
  • start with a lower-case letter
  • end with a lower-case letter or number
  • be unique within the set of RestorePlans in this location

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

Returns
TypeDescription
String

The restorePlanId.

getRestorePlanIdBytes()

public ByteString getRestorePlanIdBytes()

Required. The client-provided short name for the RestorePlan resource. This name must:

  • be between 1 and 63 characters long (inclusive)
  • consist of only lower-case ASCII letters, numbers, and dashes
  • start with a lower-case letter
  • end with a lower-case letter or number
  • be unique within the set of RestorePlans in this location

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

Returns
TypeDescription
ByteString

The bytes for restorePlanId.

getRestorePlanOrBuilder()

public RestorePlanOrBuilder getRestorePlanOrBuilder()

Required. The RestorePlan resource object to create.

.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RestorePlanOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasRestorePlan()

public boolean hasRestorePlan()

Required. The RestorePlan resource object to create.

.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the restorePlan 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 CreateRestorePlanRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateRestorePlanRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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