public static final class CreateBackupPlanRequest.Builder extends GeneratedMessage.Builder<CreateBackupPlanRequest.Builder> implements CreateBackupPlanRequestOrBuilderRequest message for CreateBackupPlan.
Protobuf type google.cloud.gkebackup.v1.CreateBackupPlanRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateBackupPlanRequest.BuilderImplements
CreateBackupPlanRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateBackupPlanRequest build()| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest |
|
buildPartial()
public CreateBackupPlanRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest |
|
clear()
public CreateBackupPlanRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest.Builder |
|
clearBackupPlan()
public CreateBackupPlanRequest.Builder clearBackupPlan()Required. The BackupPlan resource object to create.
.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest.Builder |
|
clearBackupPlanId()
public CreateBackupPlanRequest.Builder clearBackupPlanId()Required. The client-provided short name for the BackupPlan 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 BackupPlans in this location
string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest.Builder |
This builder for chaining. |
clearParent()
public CreateBackupPlanRequest.Builder clearParent() Required. The location within which to create the BackupPlan.
Format: projects/*/locations/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest.Builder |
This builder for chaining. |
getBackupPlan()
public BackupPlan getBackupPlan()Required. The BackupPlan resource object to create.
.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
BackupPlan |
The backupPlan. |
getBackupPlanBuilder()
public BackupPlan.Builder getBackupPlanBuilder()Required. The BackupPlan resource object to create.
.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
BackupPlan.Builder |
|
getBackupPlanId()
public String getBackupPlanId()Required. The client-provided short name for the BackupPlan 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 BackupPlans in this location
string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The backupPlanId. |
getBackupPlanIdBytes()
public ByteString getBackupPlanIdBytes()Required. The client-provided short name for the BackupPlan 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 BackupPlans in this location
string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for backupPlanId. |
getBackupPlanOrBuilder()
public BackupPlanOrBuilder getBackupPlanOrBuilder()Required. The BackupPlan resource object to create.
.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
BackupPlanOrBuilder |
|
getDefaultInstanceForType()
public CreateBackupPlanRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent() Required. The location within which to create the BackupPlan.
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 BackupPlan.
Format: projects/*/locations/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
hasBackupPlan()
public boolean hasBackupPlan()Required. The BackupPlan resource object to create.
.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the backupPlan field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBackupPlan(BackupPlan value)
public CreateBackupPlanRequest.Builder mergeBackupPlan(BackupPlan value)Required. The BackupPlan resource object to create.
.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
BackupPlan |
| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest.Builder |
|
mergeFrom(CreateBackupPlanRequest other)
public CreateBackupPlanRequest.Builder mergeFrom(CreateBackupPlanRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateBackupPlanRequest |
| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateBackupPlanRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateBackupPlanRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest.Builder |
|
setBackupPlan(BackupPlan value)
public CreateBackupPlanRequest.Builder setBackupPlan(BackupPlan value)Required. The BackupPlan resource object to create.
.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
BackupPlan |
| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest.Builder |
|
setBackupPlan(BackupPlan.Builder builderForValue)
public CreateBackupPlanRequest.Builder setBackupPlan(BackupPlan.Builder builderForValue)Required. The BackupPlan resource object to create.
.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BackupPlan.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest.Builder |
|
setBackupPlanId(String value)
public CreateBackupPlanRequest.Builder setBackupPlanId(String value)Required. The client-provided short name for the BackupPlan 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 BackupPlans in this location
string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe backupPlanId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest.Builder |
This builder for chaining. |
setBackupPlanIdBytes(ByteString value)
public CreateBackupPlanRequest.Builder setBackupPlanIdBytes(ByteString value)Required. The client-provided short name for the BackupPlan 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 BackupPlans in this location
string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for backupPlanId to set. |
| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest.Builder |
This builder for chaining. |
setParent(String value)
public CreateBackupPlanRequest.Builder setParent(String value) Required. The location within which to create the BackupPlan.
Format: projects/*/locations/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateBackupPlanRequest.Builder setParentBytes(ByteString value) Required. The location within which to create the BackupPlan.
Format: projects/*/locations/*
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateBackupPlanRequest.Builder |
This builder for chaining. |