Class GetBackupPolicyRequest.Builder (0.19.0)

public static final class GetBackupPolicyRequest.Builder extends GeneratedMessageV3.Builder<GetBackupPolicyRequest.Builder> implements GetBackupPolicyRequestOrBuilder

GetBackupPolicyRequest gets the state of a backupPolicy.

Protobuf type google.cloud.netapp.v1.GetBackupPolicyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetBackupPolicyRequest build()
Returns
TypeDescription
GetBackupPolicyRequest

buildPartial()

public GetBackupPolicyRequest buildPartial()
Returns
TypeDescription
GetBackupPolicyRequest

clear()

public GetBackupPolicyRequest.Builder clear()
Returns
TypeDescription
GetBackupPolicyRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetBackupPolicyRequest.Builder clearName()

Required. The backupPolicy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GetBackupPolicyRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GetBackupPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
GetBackupPolicyRequest.Builder
Overrides

clone()

public GetBackupPolicyRequest.Builder clone()
Returns
TypeDescription
GetBackupPolicyRequest.Builder
Overrides

getDefaultInstanceForType()

public GetBackupPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
GetBackupPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The backupPolicy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The backupPolicy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetBackupPolicyRequest other)

public GetBackupPolicyRequest.Builder mergeFrom(GetBackupPolicyRequest other)
Parameter
NameDescription
otherGetBackupPolicyRequest
Returns
TypeDescription
GetBackupPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetBackupPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetBackupPolicyRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetBackupPolicyRequest.Builder setName(String value)

Required. The backupPolicy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetBackupPolicyRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetBackupPolicyRequest.Builder setNameBytes(ByteString value)

Required. The backupPolicy resource name, in the format projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetBackupPolicyRequest.Builder

This builder for chaining.

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

public GetBackupPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetBackupPolicyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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