Class ListDestinationsResponse.Builder (1.73.0)

public static final class ListDestinationsResponse.Builder extends GeneratedMessageV3.Builder<ListDestinationsResponse.Builder> implements ListDestinationsResponseOrBuilder

Response message to list Destination resources.

Protobuf type google.cloud.networkconnectivity.v1.ListDestinationsResponse

Static Methods

getDescriptor()

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

Methods

addAllDestinations(Iterable<? extends Destination> values)

public ListDestinationsResponse.Builder addAllDestinations(Iterable<? extends Destination> values)

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkconnectivity.v1.Destination>
Returns
Type Description
ListDestinationsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addDestinations(Destination value)

public ListDestinationsResponse.Builder addDestinations(Destination value)

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Parameter
Name Description
value Destination
Returns
Type Description
ListDestinationsResponse.Builder

addDestinations(Destination.Builder builderForValue)

public ListDestinationsResponse.Builder addDestinations(Destination.Builder builderForValue)

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Parameter
Name Description
builderForValue Destination.Builder
Returns
Type Description
ListDestinationsResponse.Builder

addDestinations(int index, Destination value)

public ListDestinationsResponse.Builder addDestinations(int index, Destination value)

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Parameters
Name Description
index int
value Destination
Returns
Type Description
ListDestinationsResponse.Builder

addDestinations(int index, Destination.Builder builderForValue)

public ListDestinationsResponse.Builder addDestinations(int index, Destination.Builder builderForValue)

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Parameters
Name Description
index int
builderForValue Destination.Builder
Returns
Type Description
ListDestinationsResponse.Builder

addDestinationsBuilder()

public Destination.Builder addDestinationsBuilder()

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Returns
Type Description
Destination.Builder

addDestinationsBuilder(int index)

public Destination.Builder addDestinationsBuilder(int index)

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Parameter
Name Description
index int
Returns
Type Description
Destination.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListDestinationsResponse build()
Returns
Type Description
ListDestinationsResponse

buildPartial()

public ListDestinationsResponse buildPartial()
Returns
Type Description
ListDestinationsResponse

clear()

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

clearDestinations()

public ListDestinationsResponse.Builder clearDestinations()

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Returns
Type Description
ListDestinationsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListDestinationsResponse.Builder clearNextPageToken()

The next page token.

string next_page_token = 2;

Returns
Type Description
ListDestinationsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListDestinationsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListDestinationsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListDestinationsResponse getDefaultInstanceForType()
Returns
Type Description
ListDestinationsResponse

getDescriptorForType()

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

getDestinations(int index)

public Destination getDestinations(int index)

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Parameter
Name Description
index int
Returns
Type Description
Destination

getDestinationsBuilder(int index)

public Destination.Builder getDestinationsBuilder(int index)

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Parameter
Name Description
index int
Returns
Type Description
Destination.Builder

getDestinationsBuilderList()

public List<Destination.Builder> getDestinationsBuilderList()

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Returns
Type Description
List<Builder>

getDestinationsCount()

public int getDestinationsCount()

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Returns
Type Description
int

getDestinationsList()

public List<Destination> getDestinationsList()

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Returns
Type Description
List<Destination>

getDestinationsOrBuilder(int index)

public DestinationOrBuilder getDestinationsOrBuilder(int index)

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Parameter
Name Description
index int
Returns
Type Description
DestinationOrBuilder

getDestinationsOrBuilderList()

public List<? extends DestinationOrBuilder> getDestinationsOrBuilderList()

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Returns
Type Description
List<? extends com.google.cloud.networkconnectivity.v1.DestinationOrBuilder>

getNextPageToken()

public String getNextPageToken()

The next page token.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The next page token.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDestinations(int index)

public ListDestinationsResponse.Builder removeDestinations(int index)

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Parameter
Name Description
index int
Returns
Type Description
ListDestinationsResponse.Builder

setDestinations(int index, Destination value)

public ListDestinationsResponse.Builder setDestinations(int index, Destination value)

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Parameters
Name Description
index int
value Destination
Returns
Type Description
ListDestinationsResponse.Builder

setDestinations(int index, Destination.Builder builderForValue)

public ListDestinationsResponse.Builder setDestinations(int index, Destination.Builder builderForValue)

The list of Destination resources to be listed.

repeated .google.cloud.networkconnectivity.v1.Destination destinations = 1;

Parameters
Name Description
index int
builderForValue Destination.Builder
Returns
Type Description
ListDestinationsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListDestinationsResponse.Builder setNextPageToken(String value)

The next page token.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListDestinationsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListDestinationsResponse.Builder setNextPageTokenBytes(ByteString value)

The next page token.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListDestinationsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.