Class ListBackupPoliciesResponse.Builder (0.16.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.netapp.v1.BackupPolicy>
Returns
TypeDescription
ListBackupPoliciesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueBackupPolicy
Returns
TypeDescription
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
NameDescription
builderForValueBackupPolicy.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBackupPolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBackupPolicy.Builder
Returns
TypeDescription
ListBackupPoliciesResponse.Builder

addBackupPoliciesBuilder()

public BackupPolicy.Builder addBackupPoliciesBuilder()

The list of backup policies.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BackupPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListBackupPoliciesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListBackupPoliciesResponse.Builder

This builder for chaining.

build()

public ListBackupPoliciesResponse build()
Returns
TypeDescription
ListBackupPoliciesResponse

buildPartial()

public ListBackupPoliciesResponse buildPartial()
Returns
TypeDescription
ListBackupPoliciesResponse

clear()

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

clearBackupPolicies()

public ListBackupPoliciesResponse.Builder clearBackupPolicies()

The list of backup policies.

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

Returns
TypeDescription
ListBackupPoliciesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListBackupPoliciesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListBackupPoliciesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListBackupPoliciesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListBackupPoliciesResponse.Builder

This builder for chaining.

clone()

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

getBackupPoliciesBuilderList()

public List<BackupPolicy.Builder> getBackupPoliciesBuilderList()

The list of backup policies.

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

Returns
TypeDescription
List<Builder>

getBackupPoliciesCount()

public int getBackupPoliciesCount()

The list of backup policies.

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

Returns
TypeDescription
int

getBackupPoliciesList()

public List<BackupPolicy> getBackupPoliciesList()

The list of backup policies.

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

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

getBackupPoliciesOrBuilderList()

public List<? extends BackupPolicyOrBuilder> getBackupPoliciesOrBuilderList()

The list of backup policies.

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

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

getDefaultInstanceForType()

public ListBackupPoliciesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListBackupPoliciesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

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

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

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

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListBackupPoliciesResponse other)

public ListBackupPoliciesResponse.Builder mergeFrom(ListBackupPoliciesResponse other)
Parameter
NameDescription
otherListBackupPoliciesResponse
Returns
TypeDescription
ListBackupPoliciesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListBackupPoliciesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueBackupPolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBackupPolicy.Builder
Returns
TypeDescription
ListBackupPoliciesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ListBackupPoliciesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListBackupPoliciesResponse.Builder

This builder for chaining.