Class ListNetworksResponse.Builder (0.55.0)

public static final class ListNetworksResponse.Builder extends GeneratedMessageV3.Builder<ListNetworksResponse.Builder> implements ListNetworksResponseOrBuilder

Response message containing the list of networks.

Protobuf type google.cloud.baremetalsolution.v2.ListNetworksResponse

Static Methods

getDescriptor()

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

Methods

addAllNetworks(Iterable<? extends Network> values)

public ListNetworksResponse.Builder addAllNetworks(Iterable<? extends Network> values)

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.baremetalsolution.v2.Network>
Returns
Type Description
ListNetworksResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addNetworks(Network value)

public ListNetworksResponse.Builder addNetworks(Network value)

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Parameter
Name Description
value Network
Returns
Type Description
ListNetworksResponse.Builder

addNetworks(Network.Builder builderForValue)

public ListNetworksResponse.Builder addNetworks(Network.Builder builderForValue)

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Parameter
Name Description
builderForValue Network.Builder
Returns
Type Description
ListNetworksResponse.Builder

addNetworks(int index, Network value)

public ListNetworksResponse.Builder addNetworks(int index, Network value)

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Parameters
Name Description
index int
value Network
Returns
Type Description
ListNetworksResponse.Builder

addNetworks(int index, Network.Builder builderForValue)

public ListNetworksResponse.Builder addNetworks(int index, Network.Builder builderForValue)

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Parameters
Name Description
index int
builderForValue Network.Builder
Returns
Type Description
ListNetworksResponse.Builder

addNetworksBuilder()

public Network.Builder addNetworksBuilder()

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Returns
Type Description
Network.Builder

addNetworksBuilder(int index)

public Network.Builder addNetworksBuilder(int index)

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Parameter
Name Description
index int
Returns
Type Description
Network.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListNetworksResponse build()
Returns
Type Description
ListNetworksResponse

buildPartial()

public ListNetworksResponse buildPartial()
Returns
Type Description
ListNetworksResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNetworks()

public ListNetworksResponse.Builder clearNetworks()

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Returns
Type Description
ListNetworksResponse.Builder

clearNextPageToken()

public ListNetworksResponse.Builder clearNextPageToken()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
Type Description
ListNetworksResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListNetworksResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListNetworksResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListNetworksResponse getDefaultInstanceForType()
Returns
Type Description
ListNetworksResponse

getDescriptorForType()

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

getNetworks(int index)

public Network getNetworks(int index)

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Parameter
Name Description
index int
Returns
Type Description
Network

getNetworksBuilder(int index)

public Network.Builder getNetworksBuilder(int index)

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Parameter
Name Description
index int
Returns
Type Description
Network.Builder

getNetworksBuilderList()

public List<Network.Builder> getNetworksBuilderList()

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Returns
Type Description
List<Builder>

getNetworksCount()

public int getNetworksCount()

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Returns
Type Description
int

getNetworksList()

public List<Network> getNetworksList()

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Returns
Type Description
List<Network>

getNetworksOrBuilder(int index)

public NetworkOrBuilder getNetworksOrBuilder(int index)

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Parameter
Name Description
index int
Returns
Type Description
NetworkOrBuilder

getNetworksOrBuilderList()

public List<? extends NetworkOrBuilder> getNetworksOrBuilderList()

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Returns
Type Description
List<? extends com.google.cloud.baremetalsolution.v2.NetworkOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results from the server.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNetworks(int index)

public ListNetworksResponse.Builder removeNetworks(int index)

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Parameter
Name Description
index int
Returns
Type Description
ListNetworksResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNetworks(int index, Network value)

public ListNetworksResponse.Builder setNetworks(int index, Network value)

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Parameters
Name Description
index int
value Network
Returns
Type Description
ListNetworksResponse.Builder

setNetworks(int index, Network.Builder builderForValue)

public ListNetworksResponse.Builder setNetworks(int index, Network.Builder builderForValue)

The list of networks.

repeated .google.cloud.baremetalsolution.v2.Network networks = 1;

Parameters
Name Description
index int
builderForValue Network.Builder
Returns
Type Description
ListNetworksResponse.Builder

setNextPageToken(String value)

public ListNetworksResponse.Builder setNextPageToken(String value)

A token identifying a page of results from the server.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListNetworksResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListNetworksResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results from the server.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListNetworksResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.