Class ListNetworksResponse.Builder (0.19.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.Network>
Returns
TypeDescription
ListNetworksResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueNetwork
Returns
TypeDescription
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
NameDescription
builderForValueNetwork.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueNetwork
Returns
TypeDescription
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
NameDescription
indexint
builderForValueNetwork.Builder
Returns
TypeDescription
ListNetworksResponse.Builder

addNetworksBuilder()

public Network.Builder addNetworksBuilder()

The list of networks.

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

Returns
TypeDescription
Network.Builder

addNetworksBuilder(int index)

public Network.Builder addNetworksBuilder(int index)

The list of networks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Network.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListNetworksResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListNetworksResponse.Builder
Overrides

addUnreachable(String value)

public ListNetworksResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListNetworksResponse.Builder

This builder for chaining.

build()

public ListNetworksResponse build()
Returns
TypeDescription
ListNetworksResponse

buildPartial()

public ListNetworksResponse buildPartial()
Returns
TypeDescription
ListNetworksResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNetworks()

public ListNetworksResponse.Builder clearNetworks()

The list of networks.

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

Returns
TypeDescription
ListNetworksResponse.Builder

clearNextPageToken()

public ListNetworksResponse.Builder clearNextPageToken()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
TypeDescription
ListNetworksResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListNetworksResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListNetworksResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListNetworksResponse getDefaultInstanceForType()
Returns
TypeDescription
ListNetworksResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNetworks(int index)

public Network getNetworks(int index)

The list of networks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Network

getNetworksBuilder(int index)

public Network.Builder getNetworksBuilder(int index)

The list of networks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Network.Builder

getNetworksBuilderList()

public List<Network.Builder> getNetworksBuilderList()

The list of networks.

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

Returns
TypeDescription
List<Builder>

getNetworksCount()

public int getNetworksCount()

The list of networks.

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

Returns
TypeDescription
int

getNetworksList()

public List<Network> getNetworksList()

The list of networks.

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

Returns
TypeDescription
List<Network>

getNetworksOrBuilder(int index)

public NetworkOrBuilder getNetworksOrBuilder(int index)

The list of networks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkOrBuilder

getNetworksOrBuilderList()

public List<? extends NetworkOrBuilder> getNetworksOrBuilderList()

The list of networks.

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

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

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

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.

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.

repeated string unreachable = 3;

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

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

public ListNetworksResponse.Builder mergeFrom(ListNetworksResponse other)
Parameter
NameDescription
otherListNetworksResponse
Returns
TypeDescription
ListNetworksResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListNetworksResponse.Builder

This builder for chaining.