public static final class CreateBackupPlanRequest.Builder extends GeneratedMessageV3.Builder<CreateBackupPlanRequest.Builder> implements CreateBackupPlanRequestOrBuilder
Request message for CreateBackupPlan.
Protobuf type google.cloud.gkebackup.v1.CreateBackupPlanRequest
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 CreateBackupPlanRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateBackupPlanRequest build()
buildPartial()
public CreateBackupPlanRequest buildPartial()
clear()
public CreateBackupPlanRequest.Builder clear()
Overrides
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];
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];
clearField(Descriptors.FieldDescriptor field)
public CreateBackupPlanRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateBackupPlanRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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) = { ... }
clone()
public CreateBackupPlanRequest.Builder clone()
Overrides
getBackupPlan()
public BackupPlan getBackupPlan()
Required. The BackupPlan resource object to create.
.google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];
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];
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];
getDefaultInstanceForType()
public CreateBackupPlanRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
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];
mergeFrom(CreateBackupPlanRequest other)
public CreateBackupPlanRequest.Builder mergeFrom(CreateBackupPlanRequest other)
public CreateBackupPlanRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateBackupPlanRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateBackupPlanRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
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];
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 | String
The backupPlanId to set.
|
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 | ByteString
The bytes for backupPlanId to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public CreateBackupPlanRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 | String
The parent to set.
|
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 | ByteString
The bytes for parent to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateBackupPlanRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateBackupPlanRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides