public static final class CreateRestorePlanRequest.Builder extends GeneratedMessageV3.Builder<CreateRestorePlanRequest.Builder> implements CreateRestorePlanRequestOrBuilder
Request message for CreateRestorePlan.
Protobuf type google.cloud.gkebackup.v1.CreateRestorePlanRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateRestorePlanRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateRestorePlanRequest build()
Returns
buildPartial()
public CreateRestorePlanRequest buildPartial()
Returns
clear()
public CreateRestorePlanRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateRestorePlanRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateRestorePlanRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public CreateRestorePlanRequest.Builder clearParent()
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
clearRestorePlan()
public CreateRestorePlanRequest.Builder clearRestorePlan()
Required. The RestorePlan resource object to create.
.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearRestorePlanId()
public CreateRestorePlanRequest.Builder clearRestorePlanId()
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
clone()
public CreateRestorePlanRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateRestorePlanRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Type | Description |
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
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
getRestorePlanBuilder()
public RestorePlan.Builder getRestorePlanBuilder()
Required. The RestorePlan resource object to create.
.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
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
Type | Description |
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
Type | Description |
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
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
Type | Description |
boolean | Whether the restorePlan field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateRestorePlanRequest other)
public CreateRestorePlanRequest.Builder mergeFrom(CreateRestorePlanRequest other)
Parameter
Returns
public CreateRestorePlanRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateRestorePlanRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeRestorePlan(RestorePlan value)
public CreateRestorePlanRequest.Builder mergeRestorePlan(RestorePlan value)
Required. The RestorePlan resource object to create.
.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateRestorePlanRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateRestorePlanRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setParent(String value)
public CreateRestorePlanRequest.Builder setParent(String value)
Required. The location within which to create the RestorePlan.
Format: projects/*/locations/*
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 CreateRestorePlanRequest.Builder setParentBytes(ByteString value)
Required. The location within which to create the RestorePlan.
Format: projects/*/locations/*
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 CreateRestorePlanRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setRestorePlan(RestorePlan value)
public CreateRestorePlanRequest.Builder setRestorePlan(RestorePlan value)
Required. The RestorePlan resource object to create.
.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setRestorePlan(RestorePlan.Builder builderForValue)
public CreateRestorePlanRequest.Builder setRestorePlan(RestorePlan.Builder builderForValue)
Required. The RestorePlan resource object to create.
.google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setRestorePlanId(String value)
public CreateRestorePlanRequest.Builder setRestorePlanId(String value)
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];
Parameter
Name | Description |
value | String
The restorePlanId to set.
|
Returns
setRestorePlanIdBytes(ByteString value)
public CreateRestorePlanRequest.Builder setRestorePlanIdBytes(ByteString value)
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];
Parameter
Name | Description |
value | ByteString
The bytes for restorePlanId to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateRestorePlanRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides