Class ListDatacenterConnectorsResponse.Builder (1.14.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.vmmigration.v1.DatacenterConnector>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueDatacenterConnector
Returns
TypeDescription
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
NameDescription
builderForValueDatacenterConnector.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDatacenterConnector
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDatacenterConnector.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DatacenterConnector.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListDatacenterConnectorsResponse.Builder

This builder for chaining.

build()

public ListDatacenterConnectorsResponse build()
Returns
TypeDescription
ListDatacenterConnectorsResponse

buildPartial()

public ListDatacenterConnectorsResponse buildPartial()
Returns
TypeDescription
ListDatacenterConnectorsResponse

clear()

public ListDatacenterConnectorsResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
ListDatacenterConnectorsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListDatacenterConnectorsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ListDatacenterConnectorsResponse.Builder

This builder for chaining.

clone()

public ListDatacenterConnectorsResponse.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.vmmigration.v1.DatacenterConnectorOrBuilder>

getDefaultInstanceForType()

public ListDatacenterConnectorsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListDatacenterConnectorsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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)

Output only. Locations that could not be reached.

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

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

Output only. Locations that could not be reached.

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

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

public ListDatacenterConnectorsResponse.Builder mergeFrom(ListDatacenterConnectorsResponse other)
Parameter
NameDescription
otherListDatacenterConnectorsResponse
Returns
TypeDescription
ListDatacenterConnectorsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListDatacenterConnectorsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueDatacenterConnector
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDatacenterConnector.Builder
Returns
TypeDescription
ListDatacenterConnectorsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListDatacenterConnectorsResponse.Builder

This builder for chaining.