Class ListBackupPoliciesResponse.Builder (0.32.0)

public static final class ListBackupPoliciesResponse.Builder extends GeneratedMessageV3.Builder<ListBackupPoliciesResponse.Builder> implements ListBackupPoliciesResponseOrBuilder

ListBackupPoliciesResponse contains all the backup policies requested.

Protobuf type google.cloud.netapp.v1.ListBackupPoliciesResponse

Static Methods

getDescriptor()

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

Methods

addAllBackupPolicies(Iterable<? extends BackupPolicy> values)

public ListBackupPoliciesResponse.Builder addAllBackupPolicies(Iterable<? extends BackupPolicy> values)

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.netapp.v1.BackupPolicy>
Returns
Type Description
ListBackupPoliciesResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListBackupPoliciesResponse.Builder addAllUnreachable(Iterable<String> values)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListBackupPoliciesResponse.Builder

This builder for chaining.

addBackupPolicies(BackupPolicy value)

public ListBackupPoliciesResponse.Builder addBackupPolicies(BackupPolicy value)

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Parameter
Name Description
value BackupPolicy
Returns
Type Description
ListBackupPoliciesResponse.Builder

addBackupPolicies(BackupPolicy.Builder builderForValue)

public ListBackupPoliciesResponse.Builder addBackupPolicies(BackupPolicy.Builder builderForValue)

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

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

addBackupPolicies(int index, BackupPolicy value)

public ListBackupPoliciesResponse.Builder addBackupPolicies(int index, BackupPolicy value)

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Parameters
Name Description
index int
value BackupPolicy
Returns
Type Description
ListBackupPoliciesResponse.Builder

addBackupPolicies(int index, BackupPolicy.Builder builderForValue)

public ListBackupPoliciesResponse.Builder addBackupPolicies(int index, BackupPolicy.Builder builderForValue)

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Parameters
Name Description
index int
builderForValue BackupPolicy.Builder
Returns
Type Description
ListBackupPoliciesResponse.Builder

addBackupPoliciesBuilder()

public BackupPolicy.Builder addBackupPoliciesBuilder()

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Returns
Type Description
BackupPolicy.Builder

addBackupPoliciesBuilder(int index)

public BackupPolicy.Builder addBackupPoliciesBuilder(int index)

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
BackupPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListBackupPoliciesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListBackupPoliciesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListBackupPoliciesResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListBackupPoliciesResponse.Builder

This builder for chaining.

build()

public ListBackupPoliciesResponse build()
Returns
Type Description
ListBackupPoliciesResponse

buildPartial()

public ListBackupPoliciesResponse buildPartial()
Returns
Type Description
ListBackupPoliciesResponse

clear()

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

clearBackupPolicies()

public ListBackupPoliciesResponse.Builder clearBackupPolicies()

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Returns
Type Description
ListBackupPoliciesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListBackupPoliciesResponse.Builder clearNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ListBackupPoliciesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListBackupPoliciesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListBackupPoliciesResponse.Builder
Overrides

clearUnreachable()

public ListBackupPoliciesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListBackupPoliciesResponse.Builder

This builder for chaining.

clone()

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

getBackupPolicies(int index)

public BackupPolicy getBackupPolicies(int index)

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
BackupPolicy

getBackupPoliciesBuilder(int index)

public BackupPolicy.Builder getBackupPoliciesBuilder(int index)

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
BackupPolicy.Builder

getBackupPoliciesBuilderList()

public List<BackupPolicy.Builder> getBackupPoliciesBuilderList()

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Returns
Type Description
List<Builder>

getBackupPoliciesCount()

public int getBackupPoliciesCount()

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Returns
Type Description
int

getBackupPoliciesList()

public List<BackupPolicy> getBackupPoliciesList()

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Returns
Type Description
List<BackupPolicy>

getBackupPoliciesOrBuilder(int index)

public BackupPolicyOrBuilder getBackupPoliciesOrBuilder(int index)

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
BackupPolicyOrBuilder

getBackupPoliciesOrBuilderList()

public List<? extends BackupPolicyOrBuilder> getBackupPoliciesOrBuilderList()

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Returns
Type Description
List<? extends com.google.cloud.netapp.v1.BackupPolicyOrBuilder>

getDefaultInstanceForType()

public ListBackupPoliciesResponse getDefaultInstanceForType()
Returns
Type Description
ListBackupPoliciesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListBackupPoliciesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListBackupPoliciesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListBackupPoliciesResponse.Builder
Overrides

removeBackupPolicies(int index)

public ListBackupPoliciesResponse.Builder removeBackupPolicies(int index)

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
ListBackupPoliciesResponse.Builder

setBackupPolicies(int index, BackupPolicy value)

public ListBackupPoliciesResponse.Builder setBackupPolicies(int index, BackupPolicy value)

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Parameters
Name Description
index int
value BackupPolicy
Returns
Type Description
ListBackupPoliciesResponse.Builder

setBackupPolicies(int index, BackupPolicy.Builder builderForValue)

public ListBackupPoliciesResponse.Builder setBackupPolicies(int index, BackupPolicy.Builder builderForValue)

The list of backup policies.

repeated .google.cloud.netapp.v1.BackupPolicy backup_policies = 1;

Parameters
Name Description
index int
builderForValue BackupPolicy.Builder
Returns
Type Description
ListBackupPoliciesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListBackupPoliciesResponse.Builder setNextPageToken(String value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListBackupPoliciesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListBackupPoliciesResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListBackupPoliciesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListBackupPoliciesResponse.Builder setUnreachable(int index, String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListBackupPoliciesResponse.Builder

This builder for chaining.