Send feedback
Class CreateBackupPlanRequest.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 CreateBackupPlanRequest . Builder extends GeneratedMessageV3 . Builder<CreateBackupPlanRequest . Builder > implements CreateBackupPlanRequestOrBuilder
Request message for CreateBackupPlan.
Protobuf type google.cloud.gkebackup.v1.CreateBackupPlanRequest
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateBackupPlanRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public CreateBackupPlanRequest build ()
Returns
buildPartial()
public CreateBackupPlanRequest buildPartial ()
Returns
clear()
public CreateBackupPlanRequest . Builder clear ()
Returns
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];
Returns
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
clearField(Descriptors.FieldDescriptor field)
public CreateBackupPlanRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateBackupPlanRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
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) = { ... }
Returns
clone()
public CreateBackupPlanRequest . Builder clone ()
Returns
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];
Returns
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
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
getDefaultInstanceForType()
public CreateBackupPlanRequest getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
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 ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
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];
Parameter
Returns
mergeFrom(CreateBackupPlanRequest other)
public CreateBackupPlanRequest . Builder mergeFrom ( CreateBackupPlanRequest other )
Parameter
Returns
public CreateBackupPlanRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateBackupPlanRequest . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateBackupPlanRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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];
Parameter
Returns
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
Returns
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.
Returns
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.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateBackupPlanRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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.
Returns
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.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateBackupPlanRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateBackupPlanRequest . 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-06 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-06 UTC."],[],[]]