Class ListSubnetsResponse.Builder (0.14.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.edgenetwork.v1.Subnet>
Returns
Type Description
ListSubnetsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListSubnetsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value Subnet
Returns
Type Description
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
Name Description
builderForValue Subnet.Builder
Returns
Type Description
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
Name Description
index int
value Subnet
Returns
Type Description
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
Name Description
index int
builderForValue Subnet.Builder
Returns
Type Description
ListSubnetsResponse.Builder

addSubnetsBuilder()

public Subnet.Builder addSubnetsBuilder()

The list of Subnet

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

Returns
Type Description
Subnet.Builder

addSubnetsBuilder(int index)

public Subnet.Builder addSubnetsBuilder(int index)

The list of Subnet

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

Parameter
Name Description
index int
Returns
Type Description
Subnet.Builder

addUnreachable(String value)

public ListSubnetsResponse.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
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
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListSubnetsResponse.Builder

This builder for chaining.

build()

public ListSubnetsResponse build()
Returns
Type Description
ListSubnetsResponse

buildPartial()

public ListSubnetsResponse buildPartial()
Returns
Type Description
ListSubnetsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListSubnetsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
ListSubnetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubnets()

public ListSubnetsResponse.Builder clearSubnets()

The list of Subnet

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

Returns
Type Description
ListSubnetsResponse.Builder

clearUnreachable()

public ListSubnetsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListSubnetsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListSubnetsResponse getDefaultInstanceForType()
Returns
Type Description
ListSubnetsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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

string next_page_token = 2;

Returns
Type Description
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
Name Description
index int
Returns
Type Description
Subnet

getSubnetsBuilder(int index)

public Subnet.Builder getSubnetsBuilder(int index)

The list of Subnet

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

Parameter
Name Description
index int
Returns
Type Description
Subnet.Builder

getSubnetsBuilderList()

public List<Subnet.Builder> getSubnetsBuilderList()

The list of Subnet

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

Returns
Type Description
List<Builder>

getSubnetsCount()

public int getSubnetsCount()

The list of Subnet

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

Returns
Type Description
int

getSubnetsList()

public List<Subnet> getSubnetsList()

The list of Subnet

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

Returns
Type Description
List<Subnet>

getSubnetsOrBuilder(int index)

public SubnetOrBuilder getSubnetsOrBuilder(int index)

The list of Subnet

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

Parameter
Name Description
index int
Returns
Type Description
SubnetOrBuilder

getSubnetsOrBuilderList()

public List<? extends SubnetOrBuilder> getSubnetsOrBuilderList()

The list of Subnet

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListSubnetsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
ListSubnetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListSubnetsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int
value Subnet
Returns
Type Description
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
Name Description
index int
builderForValue Subnet.Builder
Returns
Type Description
ListSubnetsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListSubnetsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListSubnetsResponse.Builder

This builder for chaining.