Class CreateBackupPolicyRequest.Builder (0.30.0)

public static final class CreateBackupPolicyRequest.Builder extends GeneratedMessageV3.Builder<CreateBackupPolicyRequest.Builder> implements CreateBackupPolicyRequestOrBuilder

CreateBackupPolicyRequest creates a backupPolicy.

Protobuf type google.cloud.netapp.v1.CreateBackupPolicyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateBackupPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateBackupPolicyRequest.Builder
Overrides

build()

public CreateBackupPolicyRequest build()
Returns
Type Description
CreateBackupPolicyRequest

buildPartial()

public CreateBackupPolicyRequest buildPartial()
Returns
Type Description
CreateBackupPolicyRequest

clear()

public CreateBackupPolicyRequest.Builder clear()
Returns
Type Description
CreateBackupPolicyRequest.Builder
Overrides

clearBackupPolicy()

public CreateBackupPolicyRequest.Builder clearBackupPolicy()

Required. A backupPolicy resource

.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateBackupPolicyRequest.Builder

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, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.

string backup_policy_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateBackupPolicyRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateBackupPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateBackupPolicyRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateBackupPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateBackupPolicyRequest.Builder
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) = { ... }

Returns
Type Description
CreateBackupPolicyRequest.Builder

This builder for chaining.

clone()

public CreateBackupPolicyRequest.Builder clone()
Returns
Type Description
CreateBackupPolicyRequest.Builder
Overrides

getBackupPolicy()

public BackupPolicy getBackupPolicy()

Required. A backupPolicy resource

.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupPolicy

The backupPolicy.

getBackupPolicyBuilder()

public BackupPolicy.Builder getBackupPolicyBuilder()

Required. A backupPolicy resource

.google.cloud.netapp.v1.BackupPolicy backup_policy = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BackupPolicy.Builder

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, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore 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, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore 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];

Returns
Type Description
BackupPolicyOrBuilder

getDefaultInstanceForType()

public CreateBackupPolicyRequest getDefaultInstanceForType()
Returns
Type Description
CreateBackupPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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];

Parameter
Name Description
value BackupPolicy
Returns
Type Description
CreateBackupPolicyRequest.Builder

mergeFrom(CreateBackupPolicyRequest other)

public CreateBackupPolicyRequest.Builder mergeFrom(CreateBackupPolicyRequest other)
Parameter
Name Description
other CreateBackupPolicyRequest
Returns
Type Description
CreateBackupPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateBackupPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateBackupPolicyRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateBackupPolicyRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateBackupPolicyRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateBackupPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateBackupPolicyRequest.Builder
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];

Parameter
Name Description
value BackupPolicy
Returns
Type Description
CreateBackupPolicyRequest.Builder

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];

Parameter
Name Description
builderForValue BackupPolicy.Builder
Returns
Type Description
CreateBackupPolicyRequest.Builder

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, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore 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.

Returns
Type Description
CreateBackupPolicyRequest.Builder

This builder for chaining.

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, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore 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.

Returns
Type Description
CreateBackupPolicyRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateBackupPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateBackupPolicyRequest.Builder
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.

Returns
Type Description
CreateBackupPolicyRequest.Builder

This builder for chaining.

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.

Returns
Type Description
CreateBackupPolicyRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateBackupPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateBackupPolicyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateBackupPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateBackupPolicyRequest.Builder
Overrides