Send feedback
Class CreateRestoreRequest.Builder (0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.1.0 keyboard_arrow_down
public static final class CreateRestoreRequest . Builder extends GeneratedMessageV3 . Builder<CreateRestoreRequest . Builder > implements CreateRestoreRequestOrBuilder
Request message for CreateRestore.
Protobuf type google.cloud.gkebackup.v1.CreateRestoreRequest
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateRestoreRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public CreateRestoreRequest build ()
Returns
buildPartial()
public CreateRestoreRequest buildPartial ()
Returns
clear()
public CreateRestoreRequest . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateRestoreRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateRestoreRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearParent()
public CreateRestoreRequest . Builder clearParent ()
Required. The RestorePlan within which to create the Restore.
Format: projects/*/locations/*/restorePlans/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearRestore()
public CreateRestoreRequest . Builder clearRestore ()
Required. The restore resource to create.
.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearRestoreId()
public CreateRestoreRequest . Builder clearRestoreId ()
Required. The client-provided short name for the Restore 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 Restores in this RestorePlan.
string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public CreateRestoreRequest . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public CreateRestoreRequest getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getParent()
public String getParent ()
Required. The RestorePlan within which to create the Restore.
Format: projects/*/locations/*/restorePlans/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type Description String The parent.
getParentBytes()
public ByteString getParentBytes ()
Required. The RestorePlan within which to create the Restore.
Format: projects/*/locations/*/restorePlans/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getRestore()
public Restore getRestore ()
Required. The restore resource to create.
.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getRestoreBuilder()
public Restore . Builder getRestoreBuilder ()
Required. The restore resource to create.
.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getRestoreId()
public String getRestoreId ()
Required. The client-provided short name for the Restore 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 Restores in this RestorePlan.
string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description String The restoreId.
getRestoreIdBytes()
public ByteString getRestoreIdBytes ()
Required. The client-provided short name for the Restore 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 Restores in this RestorePlan.
string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getRestoreOrBuilder()
public RestoreOrBuilder getRestoreOrBuilder ()
Required. The restore resource to create.
.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
hasRestore()
public boolean hasRestore ()
Required. The restore resource to create.
.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description boolean Whether the restore field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(CreateRestoreRequest other)
public CreateRestoreRequest . Builder mergeFrom ( CreateRestoreRequest other )
Parameter
Returns
public CreateRestoreRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateRestoreRequest . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeRestore(Restore value)
public CreateRestoreRequest . Builder mergeRestore ( Restore value )
Required. The restore resource to create.
.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateRestoreRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateRestoreRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setParent(String value)
public CreateRestoreRequest . Builder setParent ( String value )
Required. The RestorePlan within which to create the Restore.
Format: projects/*/locations/*/restorePlans/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name Description value String
The parent to set.
Returns
setParentBytes(ByteString value)
public CreateRestoreRequest . Builder setParentBytes ( ByteString value )
Required. The RestorePlan within which to create the Restore.
Format: projects/*/locations/*/restorePlans/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name Description value ByteString
The bytes for parent to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateRestoreRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setRestore(Restore value)
public CreateRestoreRequest . Builder setRestore ( Restore value )
Required. The restore resource to create.
.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setRestore(Restore.Builder builderForValue)
public CreateRestoreRequest . Builder setRestore ( Restore . Builder builderForValue )
Required. The restore resource to create.
.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setRestoreId(String value)
public CreateRestoreRequest . Builder setRestoreId ( String value )
Required. The client-provided short name for the Restore 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 Restores in this RestorePlan.
string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value String
The restoreId to set.
Returns
setRestoreIdBytes(ByteString value)
public CreateRestoreRequest . Builder setRestoreIdBytes ( ByteString value )
Required. The client-provided short name for the Restore 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 Restores in this RestorePlan.
string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value ByteString
The bytes for restoreId to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateRestoreRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-14 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-14 UTC."],[],[]]