Class ListConnectivityTestsResponse.Builder (1.6.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.networkmanagement.v1.ConnectivityTest>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListConnectivityTestsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResourcesBuilder()

public ConnectivityTest.Builder addResourcesBuilder()

List of Connectivity Tests.

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

Returns
TypeDescription
ConnectivityTest.Builder

addResourcesBuilder(int index)

public ConnectivityTest.Builder addResourcesBuilder(int index)

List of Connectivity Tests.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListConnectivityTestsResponse.Builder

This builder for chaining.

build()

public ListConnectivityTestsResponse build()
Returns
TypeDescription
ListConnectivityTestsResponse

buildPartial()

public ListConnectivityTestsResponse buildPartial()
Returns
TypeDescription
ListConnectivityTestsResponse

clear()

public ListConnectivityTestsResponse.Builder clear()
Returns
TypeDescription
ListConnectivityTestsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListConnectivityTestsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListConnectivityTestsResponse.Builder
Overrides

clearNextPageToken()

public ListConnectivityTestsResponse.Builder clearNextPageToken()

Page token to fetch the next set of Connectivity Tests.

string next_page_token = 2;

Returns
TypeDescription
ListConnectivityTestsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListConnectivityTestsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListConnectivityTestsResponse.Builder
Overrides

clearResources()

public ListConnectivityTestsResponse.Builder clearResources()

List of Connectivity Tests.

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

Returns
TypeDescription
ListConnectivityTestsResponse.Builder

clearUnreachable()

public ListConnectivityTestsResponse.Builder clearUnreachable()

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

repeated string unreachable = 3;

Returns
TypeDescription
ListConnectivityTestsResponse.Builder

This builder for chaining.

clone()

public ListConnectivityTestsResponse.Builder clone()
Returns
TypeDescription
ListConnectivityTestsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListConnectivityTestsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListConnectivityTestsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Page token to fetch the next set of Connectivity Tests.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Page token to fetch the next set of Connectivity Tests.

string next_page_token = 2;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ConnectivityTest

getResourcesBuilder(int index)

public ConnectivityTest.Builder getResourcesBuilder(int index)

List of Connectivity Tests.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ConnectivityTest.Builder

getResourcesBuilderList()

public List<ConnectivityTest.Builder> getResourcesBuilderList()

List of Connectivity Tests.

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

Returns
TypeDescription
List<Builder>

getResourcesCount()

public int getResourcesCount()

List of Connectivity Tests.

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

Returns
TypeDescription
int

getResourcesList()

public List<ConnectivityTest> getResourcesList()

List of Connectivity Tests.

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

Returns
TypeDescription
List<ConnectivityTest>

getResourcesOrBuilder(int index)

public ConnectivityTestOrBuilder getResourcesOrBuilder(int index)

List of Connectivity Tests.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ConnectivityTestOrBuilder

getResourcesOrBuilderList()

public List<? extends ConnectivityTestOrBuilder> getResourcesOrBuilderList()

List of Connectivity Tests.

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

Returns
TypeDescription
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
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)

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

repeated string unreachable = 3;

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

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

repeated string unreachable = 3;

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

public ListConnectivityTestsResponse.Builder mergeFrom(ListConnectivityTestsResponse other)
Parameter
NameDescription
otherListConnectivityTestsResponse
Returns
TypeDescription
ListConnectivityTestsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueConnectivityTest
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConnectivityTest.Builder
Returns
TypeDescription
ListConnectivityTestsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListConnectivityTestsResponse.Builder

This builder for chaining.