Class ListSubnetsResponse.Builder (0.8.0)

public static final class ListSubnetsResponse.Builder extends GeneratedMessageV3.Builder<ListSubnetsResponse.Builder> implements ListSubnetsResponseOrBuilder

Message for response to listing Subnets

Protobuf type google.cloud.edgenetwork.v1.ListSubnetsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllSubnets(Iterable<? extends Subnet> values)

public ListSubnetsResponse.Builder addAllSubnets(Iterable<? extends Subnet> values)

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.edgenetwork.v1.Subnet>
Returns
TypeDescription
ListSubnetsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSubnets(Subnet value)

public ListSubnetsResponse.Builder addSubnets(Subnet value)

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Parameter
NameDescription
valueSubnet
Returns
TypeDescription
ListSubnetsResponse.Builder

addSubnets(Subnet.Builder builderForValue)

public ListSubnetsResponse.Builder addSubnets(Subnet.Builder builderForValue)

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Parameter
NameDescription
builderForValueSubnet.Builder
Returns
TypeDescription
ListSubnetsResponse.Builder

addSubnets(int index, Subnet value)

public ListSubnetsResponse.Builder addSubnets(int index, Subnet value)

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Parameters
NameDescription
indexint
valueSubnet
Returns
TypeDescription
ListSubnetsResponse.Builder

addSubnets(int index, Subnet.Builder builderForValue)

public ListSubnetsResponse.Builder addSubnets(int index, Subnet.Builder builderForValue)

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Parameters
NameDescription
indexint
builderForValueSubnet.Builder
Returns
TypeDescription
ListSubnetsResponse.Builder

addSubnetsBuilder()

public Subnet.Builder addSubnetsBuilder()

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Returns
TypeDescription
Subnet.Builder

addSubnetsBuilder(int index)

public Subnet.Builder addSubnetsBuilder(int index)

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Subnet.Builder

addUnreachable(String value)

public ListSubnetsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListSubnetsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListSubnetsResponse build()
Returns
TypeDescription
ListSubnetsResponse

buildPartial()

public ListSubnetsResponse buildPartial()
Returns
TypeDescription
ListSubnetsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListSubnetsResponse.Builder clearNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
TypeDescription
ListSubnetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubnets()

public ListSubnetsResponse.Builder clearSubnets()

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Returns
TypeDescription
ListSubnetsResponse.Builder

clearUnreachable()

public ListSubnetsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListSubnetsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListSubnetsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListSubnetsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getSubnets(int index)

public Subnet getSubnets(int index)

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Subnet

getSubnetsBuilder(int index)

public Subnet.Builder getSubnetsBuilder(int index)

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Subnet.Builder

getSubnetsBuilderList()

public List<Subnet.Builder> getSubnetsBuilderList()

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Returns
TypeDescription
List<Builder>

getSubnetsCount()

public int getSubnetsCount()

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Returns
TypeDescription
int

getSubnetsList()

public List<Subnet> getSubnetsList()

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Returns
TypeDescription
List<Subnet>

getSubnetsOrBuilder(int index)

public SubnetOrBuilder getSubnetsOrBuilder(int index)

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
SubnetOrBuilder

getSubnetsOrBuilderList()

public List<? extends SubnetOrBuilder> getSubnetsOrBuilderList()

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Returns
TypeDescription
List<? extends com.google.cloud.edgenetwork.v1.SubnetOrBuilder>

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

public ListSubnetsResponse.Builder mergeFrom(ListSubnetsResponse other)
Parameter
NameDescription
otherListSubnetsResponse
Returns
TypeDescription
ListSubnetsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListSubnetsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListSubnetsResponse.Builder
Overrides

removeSubnets(int index)

public ListSubnetsResponse.Builder removeSubnets(int index)

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListSubnetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListSubnetsResponse.Builder setNextPageToken(String value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListSubnetsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListSubnetsResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListSubnetsResponse.Builder

This builder for chaining.

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

public ListSubnetsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListSubnetsResponse.Builder
Overrides

setSubnets(int index, Subnet value)

public ListSubnetsResponse.Builder setSubnets(int index, Subnet value)

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Parameters
NameDescription
indexint
valueSubnet
Returns
TypeDescription
ListSubnetsResponse.Builder

setSubnets(int index, Subnet.Builder builderForValue)

public ListSubnetsResponse.Builder setSubnets(int index, Subnet.Builder builderForValue)

The list of Subnet

repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1;

Parameters
NameDescription
indexint
builderForValueSubnet.Builder
Returns
TypeDescription
ListSubnetsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListSubnetsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListSubnetsResponse.Builder
Overrides

setUnreachable(int index, String value)

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

This builder for chaining.