Class CreateBackupPolicyRequest.Builder (0.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateBackupPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateBackupPolicyRequest.Builder
Overrides

build()

public CreateBackupPolicyRequest build()
Returns
TypeDescription
CreateBackupPolicyRequest

buildPartial()

public CreateBackupPolicyRequest buildPartial()
Returns
TypeDescription
CreateBackupPolicyRequest

clear()

public CreateBackupPolicyRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

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

Returns
TypeDescription
CreateBackupPolicyRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateBackupPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateBackupPolicyRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateBackupPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateBackupPolicyRequest.Builder

This builder for chaining.

clone()

public CreateBackupPolicyRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
BackupPolicy.Builder

getBackupPolicyId()

public String getBackupPolicyId()

Required. The ID to use for the backup policy. The ID must be unique within the specified location. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

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

Returns
TypeDescription
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. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

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

Returns
TypeDescription
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
TypeDescription
BackupPolicyOrBuilder

getDefaultInstanceForType()

public CreateBackupPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateBackupPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the backupPolicy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueBackupPolicy
Returns
TypeDescription
CreateBackupPolicyRequest.Builder

mergeFrom(CreateBackupPolicyRequest other)

public CreateBackupPolicyRequest.Builder mergeFrom(CreateBackupPolicyRequest other)
Parameter
NameDescription
otherCreateBackupPolicyRequest
Returns
TypeDescription
CreateBackupPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateBackupPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBackupPolicyRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateBackupPolicyRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateBackupPolicyRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateBackupPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueBackupPolicy
Returns
TypeDescription
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
NameDescription
builderForValueBackupPolicy.Builder
Returns
TypeDescription
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. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

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

Parameter
NameDescription
valueString

The backupPolicyId to set.

Returns
TypeDescription
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. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.

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

Parameter
NameDescription
valueByteString

The bytes for backupPolicyId to set.

Returns
TypeDescription
CreateBackupPolicyRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateBackupPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateBackupPolicyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateBackupPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateBackupPolicyRequest.Builder
Overrides