Class ListManagementServersResponse.Builder (0.4.0)

public static final class ListManagementServersResponse.Builder extends GeneratedMessageV3.Builder<ListManagementServersResponse.Builder> implements ListManagementServersResponseOrBuilder

Response message for listing management servers.

Protobuf type google.cloud.backupdr.v1.ListManagementServersResponse

Static Methods

getDescriptor()

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

Methods

addAllManagementServers(Iterable<? extends ManagementServer> values)

public ListManagementServersResponse.Builder addAllManagementServers(Iterable<? extends ManagementServer> values)

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.backupdr.v1.ManagementServer>
Returns
Type Description
ListManagementServersResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListManagementServersResponse.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
ListManagementServersResponse.Builder

This builder for chaining.

addManagementServers(ManagementServer value)

public ListManagementServersResponse.Builder addManagementServers(ManagementServer value)

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Parameter
Name Description
value ManagementServer
Returns
Type Description
ListManagementServersResponse.Builder

addManagementServers(ManagementServer.Builder builderForValue)

public ListManagementServersResponse.Builder addManagementServers(ManagementServer.Builder builderForValue)

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Parameter
Name Description
builderForValue ManagementServer.Builder
Returns
Type Description
ListManagementServersResponse.Builder

addManagementServers(int index, ManagementServer value)

public ListManagementServersResponse.Builder addManagementServers(int index, ManagementServer value)

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Parameters
Name Description
index int
value ManagementServer
Returns
Type Description
ListManagementServersResponse.Builder

addManagementServers(int index, ManagementServer.Builder builderForValue)

public ListManagementServersResponse.Builder addManagementServers(int index, ManagementServer.Builder builderForValue)

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Parameters
Name Description
index int
builderForValue ManagementServer.Builder
Returns
Type Description
ListManagementServersResponse.Builder

addManagementServersBuilder()

public ManagementServer.Builder addManagementServersBuilder()

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Returns
Type Description
ManagementServer.Builder

addManagementServersBuilder(int index)

public ManagementServer.Builder addManagementServersBuilder(int index)

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Parameter
Name Description
index int
Returns
Type Description
ManagementServer.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListManagementServersResponse.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
ListManagementServersResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListManagementServersResponse.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
ListManagementServersResponse.Builder

This builder for chaining.

build()

public ListManagementServersResponse build()
Returns
Type Description
ListManagementServersResponse

buildPartial()

public ListManagementServersResponse buildPartial()
Returns
Type Description
ListManagementServersResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearManagementServers()

public ListManagementServersResponse.Builder clearManagementServers()

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Returns
Type Description
ListManagementServersResponse.Builder

clearNextPageToken()

public ListManagementServersResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListManagementServersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListManagementServersResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListManagementServersResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListManagementServersResponse getDefaultInstanceForType()
Returns
Type Description
ListManagementServersResponse

getDescriptorForType()

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

getManagementServers(int index)

public ManagementServer getManagementServers(int index)

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Parameter
Name Description
index int
Returns
Type Description
ManagementServer

getManagementServersBuilder(int index)

public ManagementServer.Builder getManagementServersBuilder(int index)

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Parameter
Name Description
index int
Returns
Type Description
ManagementServer.Builder

getManagementServersBuilderList()

public List<ManagementServer.Builder> getManagementServersBuilderList()

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Returns
Type Description
List<Builder>

getManagementServersCount()

public int getManagementServersCount()

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Returns
Type Description
int

getManagementServersList()

public List<ManagementServer> getManagementServersList()

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Returns
Type Description
List<ManagementServer>

getManagementServersOrBuilder(int index)

public ManagementServerOrBuilder getManagementServersOrBuilder(int index)

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Parameter
Name Description
index int
Returns
Type Description
ManagementServerOrBuilder

getManagementServersOrBuilderList()

public List<? extends ManagementServerOrBuilder> getManagementServersOrBuilderList()

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Returns
Type Description
List<? extends com.google.cloud.backupdr.v1.ManagementServerOrBuilder>

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(ListManagementServersResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeManagementServers(int index)

public ListManagementServersResponse.Builder removeManagementServers(int index)

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Parameter
Name Description
index int
Returns
Type Description
ListManagementServersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setManagementServers(int index, ManagementServer value)

public ListManagementServersResponse.Builder setManagementServers(int index, ManagementServer value)

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Parameters
Name Description
index int
value ManagementServer
Returns
Type Description
ListManagementServersResponse.Builder

setManagementServers(int index, ManagementServer.Builder builderForValue)

public ListManagementServersResponse.Builder setManagementServers(int index, ManagementServer.Builder builderForValue)

The list of ManagementServer instances in the project for the specified location.

If the {location} value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return management servers in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

repeated .google.cloud.backupdr.v1.ManagementServer management_servers = 1;

Parameters
Name Description
index int
builderForValue ManagementServer.Builder
Returns
Type Description
ListManagementServersResponse.Builder

setNextPageToken(String value)

public ListManagementServersResponse.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
ListManagementServersResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListManagementServersResponse.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
ListManagementServersResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListManagementServersResponse.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
ListManagementServersResponse.Builder

This builder for chaining.