Class ListDatacenterConnectorsResponse.Builder (1.42.0)

public static final class ListDatacenterConnectorsResponse.Builder extends GeneratedMessageV3.Builder<ListDatacenterConnectorsResponse.Builder> implements ListDatacenterConnectorsResponseOrBuilder

Response message for 'ListDatacenterConnectors' request.

Protobuf type google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse

Static Methods

getDescriptor()

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

Methods

addAllDatacenterConnectors(Iterable<? extends DatacenterConnector> values)

public ListDatacenterConnectorsResponse.Builder addAllDatacenterConnectors(Iterable<? extends DatacenterConnector> values)

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.vmmigration.v1.DatacenterConnector>
Returns
Type Description
ListDatacenterConnectorsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListDatacenterConnectorsResponse.Builder

This builder for chaining.

addDatacenterConnectors(DatacenterConnector value)

public ListDatacenterConnectorsResponse.Builder addDatacenterConnectors(DatacenterConnector value)

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DatacenterConnector
Returns
Type Description
ListDatacenterConnectorsResponse.Builder

addDatacenterConnectors(DatacenterConnector.Builder builderForValue)

public ListDatacenterConnectorsResponse.Builder addDatacenterConnectors(DatacenterConnector.Builder builderForValue)

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue DatacenterConnector.Builder
Returns
Type Description
ListDatacenterConnectorsResponse.Builder

addDatacenterConnectors(int index, DatacenterConnector value)

public ListDatacenterConnectorsResponse.Builder addDatacenterConnectors(int index, DatacenterConnector value)

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value DatacenterConnector
Returns
Type Description
ListDatacenterConnectorsResponse.Builder

addDatacenterConnectors(int index, DatacenterConnector.Builder builderForValue)

public ListDatacenterConnectorsResponse.Builder addDatacenterConnectors(int index, DatacenterConnector.Builder builderForValue)

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue DatacenterConnector.Builder
Returns
Type Description
ListDatacenterConnectorsResponse.Builder

addDatacenterConnectorsBuilder()

public DatacenterConnector.Builder addDatacenterConnectorsBuilder()

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DatacenterConnector.Builder

addDatacenterConnectorsBuilder(int index)

public DatacenterConnector.Builder addDatacenterConnectorsBuilder(int index)

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DatacenterConnector.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListDatacenterConnectorsResponse.Builder addUnreachable(String value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListDatacenterConnectorsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListDatacenterConnectorsResponse.Builder addUnreachableBytes(ByteString value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListDatacenterConnectorsResponse.Builder

This builder for chaining.

build()

public ListDatacenterConnectorsResponse build()
Returns
Type Description
ListDatacenterConnectorsResponse

buildPartial()

public ListDatacenterConnectorsResponse buildPartial()
Returns
Type Description
ListDatacenterConnectorsResponse

clear()

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

clearDatacenterConnectors()

public ListDatacenterConnectorsResponse.Builder clearDatacenterConnectors()

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListDatacenterConnectorsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListDatacenterConnectorsResponse.Builder clearNextPageToken()

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListDatacenterConnectorsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListDatacenterConnectorsResponse.Builder clearUnreachable()

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ListDatacenterConnectorsResponse.Builder

This builder for chaining.

clone()

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

getDatacenterConnectors(int index)

public DatacenterConnector getDatacenterConnectors(int index)

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DatacenterConnector

getDatacenterConnectorsBuilder(int index)

public DatacenterConnector.Builder getDatacenterConnectorsBuilder(int index)

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DatacenterConnector.Builder

getDatacenterConnectorsBuilderList()

public List<DatacenterConnector.Builder> getDatacenterConnectorsBuilderList()

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getDatacenterConnectorsCount()

public int getDatacenterConnectorsCount()

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getDatacenterConnectorsList()

public List<DatacenterConnector> getDatacenterConnectorsList()

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<DatacenterConnector>

getDatacenterConnectorsOrBuilder(int index)

public DatacenterConnectorOrBuilder getDatacenterConnectorsOrBuilder(int index)

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DatacenterConnectorOrBuilder

getDatacenterConnectorsOrBuilderList()

public List<? extends DatacenterConnectorOrBuilder> getDatacenterConnectorsOrBuilderList()

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.vmmigration.v1.DatacenterConnectorOrBuilder>

getDefaultInstanceForType()

public ListDatacenterConnectorsResponse getDefaultInstanceForType()
Returns
Type Description
ListDatacenterConnectorsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDatacenterConnectors(int index)

public ListDatacenterConnectorsResponse.Builder removeDatacenterConnectors(int index)

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ListDatacenterConnectorsResponse.Builder

setDatacenterConnectors(int index, DatacenterConnector value)

public ListDatacenterConnectorsResponse.Builder setDatacenterConnectors(int index, DatacenterConnector value)

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value DatacenterConnector
Returns
Type Description
ListDatacenterConnectorsResponse.Builder

setDatacenterConnectors(int index, DatacenterConnector.Builder builderForValue)

public ListDatacenterConnectorsResponse.Builder setDatacenterConnectors(int index, DatacenterConnector.Builder builderForValue)

Output only. The list of sources response.

repeated .google.cloud.vmmigration.v1.DatacenterConnector datacenter_connectors = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue DatacenterConnector.Builder
Returns
Type Description
ListDatacenterConnectorsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListDatacenterConnectorsResponse.Builder setNextPageToken(String value)

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListDatacenterConnectorsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListDatacenterConnectorsResponse.Builder setNextPageTokenBytes(ByteString value)

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListDatacenterConnectorsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListDatacenterConnectorsResponse.Builder

This builder for chaining.