Class ListSubnetsResponse.Builder (0.10.0)

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

Response message for VmwareEngine.ListSubnets

Protobuf type google.cloud.vmwareengine.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)

A list of subnets.

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

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

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)

A list of subnets.

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

Parameter
NameDescription
valueSubnet
Returns
TypeDescription
ListSubnetsResponse.Builder

addSubnets(Subnet.Builder builderForValue)

public ListSubnetsResponse.Builder addSubnets(Subnet.Builder builderForValue)

A list of subnets.

repeated .google.cloud.vmwareengine.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)

A list of subnets.

repeated .google.cloud.vmwareengine.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)

A list of subnets.

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

Parameters
NameDescription
indexint
builderForValueSubnet.Builder
Returns
TypeDescription
ListSubnetsResponse.Builder

addSubnetsBuilder()

public Subnet.Builder addSubnetsBuilder()

A list of subnets.

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

Returns
TypeDescription
Subnet.Builder

addSubnetsBuilder(int index)

public Subnet.Builder addSubnetsBuilder(int index)

A list of subnets.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Subnet.Builder

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, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

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

A list of subnets.

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

Returns
TypeDescription
ListSubnetsResponse.Builder

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, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getSubnets(int index)

public Subnet getSubnets(int index)

A list of subnets.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Subnet

getSubnetsBuilder(int index)

public Subnet.Builder getSubnetsBuilder(int index)

A list of subnets.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Subnet.Builder

getSubnetsBuilderList()

public List<Subnet.Builder> getSubnetsBuilderList()

A list of subnets.

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

Returns
TypeDescription
List<Builder>

getSubnetsCount()

public int getSubnetsCount()

A list of subnets.

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

Returns
TypeDescription
int

getSubnetsList()

public List<Subnet> getSubnetsList()

A list of subnets.

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

Returns
TypeDescription
List<Subnet>

getSubnetsOrBuilder(int index)

public SubnetOrBuilder getSubnetsOrBuilder(int index)

A list of subnets.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SubnetOrBuilder

getSubnetsOrBuilderList()

public List<? extends SubnetOrBuilder> getSubnetsOrBuilderList()

A list of subnets.

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

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

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)

A list of subnets.

repeated .google.cloud.vmwareengine.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, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

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, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

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)

A list of subnets.

repeated .google.cloud.vmwareengine.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)

A list of subnets.

repeated .google.cloud.vmwareengine.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