Class ListConnectivityTestsResponse.Builder (1.50.0)

public static final class ListConnectivityTestsResponse.Builder extends GeneratedMessageV3.Builder<ListConnectivityTestsResponse.Builder> implements ListConnectivityTestsResponseOrBuilder

Response for the ListConnectivityTests method.

Protobuf type google.cloud.networkmanagement.v1.ListConnectivityTestsResponse

Static Methods

getDescriptor()

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

Methods

addAllResources(Iterable<? extends ConnectivityTest> values)

public ListConnectivityTestsResponse.Builder addAllResources(Iterable<? extends ConnectivityTest> values)

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkmanagement.v1.ConnectivityTest>
Returns
Type Description
ListConnectivityTestsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached (when querying all locations with -).

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListConnectivityTestsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResources(ConnectivityTest value)

public ListConnectivityTestsResponse.Builder addResources(ConnectivityTest value)

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Parameter
Name Description
value ConnectivityTest
Returns
Type Description
ListConnectivityTestsResponse.Builder

addResources(ConnectivityTest.Builder builderForValue)

public ListConnectivityTestsResponse.Builder addResources(ConnectivityTest.Builder builderForValue)

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Parameter
Name Description
builderForValue ConnectivityTest.Builder
Returns
Type Description
ListConnectivityTestsResponse.Builder

addResources(int index, ConnectivityTest value)

public ListConnectivityTestsResponse.Builder addResources(int index, ConnectivityTest value)

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Parameters
Name Description
index int
value ConnectivityTest
Returns
Type Description
ListConnectivityTestsResponse.Builder

addResources(int index, ConnectivityTest.Builder builderForValue)

public ListConnectivityTestsResponse.Builder addResources(int index, ConnectivityTest.Builder builderForValue)

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Parameters
Name Description
index int
builderForValue ConnectivityTest.Builder
Returns
Type Description
ListConnectivityTestsResponse.Builder

addResourcesBuilder()

public ConnectivityTest.Builder addResourcesBuilder()

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Returns
Type Description
ConnectivityTest.Builder

addResourcesBuilder(int index)

public ConnectivityTest.Builder addResourcesBuilder(int index)

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Parameter
Name Description
index int
Returns
Type Description
ConnectivityTest.Builder

addUnreachable(String value)

public ListConnectivityTestsResponse.Builder addUnreachable(String value)

Locations that could not be reached (when querying all locations with -).

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListConnectivityTestsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListConnectivityTestsResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached (when querying all locations with -).

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListConnectivityTestsResponse.Builder

This builder for chaining.

build()

public ListConnectivityTestsResponse build()
Returns
Type Description
ListConnectivityTestsResponse

buildPartial()

public ListConnectivityTestsResponse buildPartial()
Returns
Type Description
ListConnectivityTestsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListConnectivityTestsResponse.Builder clearNextPageToken()

Page token to fetch the next set of Connectivity Tests.

string next_page_token = 2;

Returns
Type Description
ListConnectivityTestsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResources()

public ListConnectivityTestsResponse.Builder clearResources()

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Returns
Type Description
ListConnectivityTestsResponse.Builder

clearUnreachable()

public ListConnectivityTestsResponse.Builder clearUnreachable()

Locations that could not be reached (when querying all locations with -).

repeated string unreachable = 3;

Returns
Type Description
ListConnectivityTestsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListConnectivityTestsResponse getDefaultInstanceForType()
Returns
Type Description
ListConnectivityTestsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Page token to fetch the next set of Connectivity Tests.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Page token to fetch the next set of Connectivity Tests.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getResources(int index)

public ConnectivityTest getResources(int index)

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Parameter
Name Description
index int
Returns
Type Description
ConnectivityTest

getResourcesBuilder(int index)

public ConnectivityTest.Builder getResourcesBuilder(int index)

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Parameter
Name Description
index int
Returns
Type Description
ConnectivityTest.Builder

getResourcesBuilderList()

public List<ConnectivityTest.Builder> getResourcesBuilderList()

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Returns
Type Description
List<Builder>

getResourcesCount()

public int getResourcesCount()

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Returns
Type Description
int

getResourcesList()

public List<ConnectivityTest> getResourcesList()

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Returns
Type Description
List<ConnectivityTest>

getResourcesOrBuilder(int index)

public ConnectivityTestOrBuilder getResourcesOrBuilder(int index)

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Parameter
Name Description
index int
Returns
Type Description
ConnectivityTestOrBuilder

getResourcesOrBuilderList()

public List<? extends ConnectivityTestOrBuilder> getResourcesOrBuilderList()

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Returns
Type Description
List<? extends com.google.cloud.networkmanagement.v1.ConnectivityTestOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached (when querying all locations with -).

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 (when querying all locations with -).

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 (when querying all locations with -).

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached (when querying all locations with -).

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeResources(int index)

public ListConnectivityTestsResponse.Builder removeResources(int index)

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Parameter
Name Description
index int
Returns
Type Description
ListConnectivityTestsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListConnectivityTestsResponse.Builder setNextPageToken(String value)

Page token to fetch the next set of Connectivity Tests.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListConnectivityTestsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListConnectivityTestsResponse.Builder setNextPageTokenBytes(ByteString value)

Page token to fetch the next set of Connectivity Tests.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListConnectivityTestsResponse.Builder

This builder for chaining.

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

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

setResources(int index, ConnectivityTest value)

public ListConnectivityTestsResponse.Builder setResources(int index, ConnectivityTest value)

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Parameters
Name Description
index int
value ConnectivityTest
Returns
Type Description
ListConnectivityTestsResponse.Builder

setResources(int index, ConnectivityTest.Builder builderForValue)

public ListConnectivityTestsResponse.Builder setResources(int index, ConnectivityTest.Builder builderForValue)

List of Connectivity Tests.

repeated .google.cloud.networkmanagement.v1.ConnectivityTest resources = 1;

Parameters
Name Description
index int
builderForValue ConnectivityTest.Builder
Returns
Type Description
ListConnectivityTestsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

Locations that could not be reached (when querying all locations with -).

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
ListConnectivityTestsResponse.Builder

This builder for chaining.