public static final class CreateBackupPolicyRequest.Builder extends GeneratedMessageV3.Builder<CreateBackupPolicyRequest.Builder> implements CreateBackupPolicyRequestOrBuilder
CreateBackupPolicyRequest creates a backupPolicy.
Protobuf type google.cloud.netapp.v1.CreateBackupPolicyRequest
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 CreateBackupPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateBackupPolicyRequest build()
buildPartial()
public CreateBackupPolicyRequest buildPartial()
clear()
public CreateBackupPolicyRequest.Builder clear()
Overrides
clearBackupPolicy()
public CreateBackupPolicyRequest.Builder clearBackupPolicy()
Required. A backupPolicy resource
.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
clearBackupPolicyId()
public CreateBackupPolicyRequest.Builder clearBackupPolicyId()
Required. The ID to use for the backup policy.
The ID must be unique within the specified location.
Must contain only letters, numbers and hyphen, with the first
character a letter, the last a letter or a
number, and a 63 character maximum.
string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public CreateBackupPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateBackupPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParent()
public CreateBackupPolicyRequest.Builder clearParent()
Required. The location to create the backup policies of, in the format
projects/{project_id}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clone()
public CreateBackupPolicyRequest.Builder clone()
Overrides
getBackupPolicy()
public BackupPolicy getBackupPolicy()
Required. A backupPolicy resource
.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
getBackupPolicyBuilder()
public BackupPolicy.Builder getBackupPolicyBuilder()
Required. A backupPolicy resource
.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
getBackupPolicyId()
public String getBackupPolicyId()
Required. The ID to use for the backup policy.
The ID must be unique within the specified location.
Must contain only letters, numbers and hyphen, with the first
character a letter, the last a letter or a
number, and a 63 character maximum.
string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The backupPolicyId.
|
getBackupPolicyIdBytes()
public ByteString getBackupPolicyIdBytes()
Required. The ID to use for the backup policy.
The ID must be unique within the specified location.
Must contain only letters, numbers and hyphen, with the first
character a letter, the last a letter or a
number, and a 63 character maximum.
string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for backupPolicyId.
|
getBackupPolicyOrBuilder()
public BackupPolicyOrBuilder getBackupPolicyOrBuilder()
Required. A backupPolicy resource
.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public CreateBackupPolicyRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getParent()
public String getParent()
Required. The location to create the backup policies of, in the format
projects/{project_id}/locations/{location}
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 to create the backup policies of, in the format
projects/{project_id}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for parent.
|
hasBackupPolicy()
public boolean hasBackupPolicy()
Required. A backupPolicy resource
.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the backupPolicy field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeBackupPolicy(BackupPolicy value)
public CreateBackupPolicyRequest.Builder mergeBackupPolicy(BackupPolicy value)
Required. A backupPolicy resource
.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
mergeFrom(CreateBackupPolicyRequest other)
public CreateBackupPolicyRequest.Builder mergeFrom(CreateBackupPolicyRequest other)
public CreateBackupPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateBackupPolicyRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateBackupPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setBackupPolicy(BackupPolicy value)
public CreateBackupPolicyRequest.Builder setBackupPolicy(BackupPolicy value)
Required. A backupPolicy resource
.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
setBackupPolicy(BackupPolicy.Builder builderForValue)
public CreateBackupPolicyRequest.Builder setBackupPolicy(BackupPolicy.Builder builderForValue)
Required. A backupPolicy resource
.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];
setBackupPolicyId(String value)
public CreateBackupPolicyRequest.Builder setBackupPolicyId(String value)
Required. The ID to use for the backup policy.
The ID must be unique within the specified location.
Must contain only letters, numbers and hyphen, with the first
character a letter, the last a letter or a
number, and a 63 character maximum.
string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The backupPolicyId to set.
|
setBackupPolicyIdBytes(ByteString value)
public CreateBackupPolicyRequest.Builder setBackupPolicyIdBytes(ByteString value)
Required. The ID to use for the backup policy.
The ID must be unique within the specified location.
Must contain only letters, numbers and hyphen, with the first
character a letter, the last a letter or a
number, and a 63 character maximum.
string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for backupPolicyId to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public CreateBackupPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setParent(String value)
public CreateBackupPolicyRequest.Builder setParent(String value)
Required. The location to create the backup policies of, in the format
projects/{project_id}/locations/{location}
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 CreateBackupPolicyRequest.Builder setParentBytes(ByteString value)
Required. The location to create the backup policies of, in the format
projects/{project_id}/locations/{location}
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 CreateBackupPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateBackupPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides