public static final class CreateRestoreRequest.Builder extends GeneratedMessageV3.Builder<CreateRestoreRequest.Builder> implements CreateRestoreRequestOrBuilder
Request message for CreateRestore.
Protobuf type google.cloud.gkebackup.v1.CreateRestoreRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateRestoreRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateRestoreRequest build()
buildPartial()
public CreateRestoreRequest buildPartial()
clear()
public CreateRestoreRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateRestoreRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateRestoreRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clearRestore()
public CreateRestoreRequest.Builder clearRestore()
Required. The restore resource to create.
.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
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];
clone()
public CreateRestoreRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateRestoreRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
Type |
Description |
ByteString |
The bytes for parent.
|
getRestore()
public Restore getRestore()
Required. The restore resource to create.
.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
Restore |
The restore.
|
getRestoreBuilder()
public Restore.Builder getRestoreBuilder()
Required. The restore resource to create.
.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
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 |
Type |
Description |
ByteString |
The bytes for restoreId.
|
getRestoreOrBuilder()
public RestoreOrBuilder getRestoreOrBuilder()
Required. The restore resource to create.
.google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateRestoreRequest other)
public CreateRestoreRequest.Builder mergeFrom(CreateRestoreRequest other)
public CreateRestoreRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateRestoreRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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 |
Name |
Description |
value |
Restore
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateRestoreRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateRestoreRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateRestoreRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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 |
Name |
Description |
value |
Restore
|
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];
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateRestoreRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides