Class Subnet.Builder (0.14.0)

public static final class Subnet.Builder extends GeneratedMessageV3.Builder<Subnet.Builder> implements SubnetOrBuilder

Message describing Subnet object

Protobuf type google.cloud.edgenetwork.v1.Subnet

Implements

SubnetOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllIpv4Cidr(Iterable<String> values)

public Subnet.Builder addAllIpv4Cidr(Iterable<String> values)

The ranges of ipv4 addresses that are owned by this subnetwork.

repeated string ipv4_cidr = 7;

Parameter
Name Description
values Iterable<String>

The ipv4Cidr to add.

Returns
Type Description
Subnet.Builder

This builder for chaining.

addAllIpv6Cidr(Iterable<String> values)

public Subnet.Builder addAllIpv6Cidr(Iterable<String> values)

The ranges of ipv6 addresses that are owned by this subnetwork.

repeated string ipv6_cidr = 8;

Parameter
Name Description
values Iterable<String>

The ipv6Cidr to add.

Returns
Type Description
Subnet.Builder

This builder for chaining.

addIpv4Cidr(String value)

public Subnet.Builder addIpv4Cidr(String value)

The ranges of ipv4 addresses that are owned by this subnetwork.

repeated string ipv4_cidr = 7;

Parameter
Name Description
value String

The ipv4Cidr to add.

Returns
Type Description
Subnet.Builder

This builder for chaining.

addIpv4CidrBytes(ByteString value)

public Subnet.Builder addIpv4CidrBytes(ByteString value)

The ranges of ipv4 addresses that are owned by this subnetwork.

repeated string ipv4_cidr = 7;

Parameter
Name Description
value ByteString

The bytes of the ipv4Cidr to add.

Returns
Type Description
Subnet.Builder

This builder for chaining.

addIpv6Cidr(String value)

public Subnet.Builder addIpv6Cidr(String value)

The ranges of ipv6 addresses that are owned by this subnetwork.

repeated string ipv6_cidr = 8;

Parameter
Name Description
value String

The ipv6Cidr to add.

Returns
Type Description
Subnet.Builder

This builder for chaining.

addIpv6CidrBytes(ByteString value)

public Subnet.Builder addIpv6CidrBytes(ByteString value)

The ranges of ipv6 addresses that are owned by this subnetwork.

repeated string ipv6_cidr = 8;

Parameter
Name Description
value ByteString

The bytes of the ipv6Cidr to add.

Returns
Type Description
Subnet.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Subnet build()
Returns
Type Description
Subnet

buildPartial()

public Subnet buildPartial()
Returns
Type Description
Subnet

clear()

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

clearCreateTime()

public Subnet.Builder clearCreateTime()

Output only. The time when the subnet was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Subnet.Builder

clearDescription()

public Subnet.Builder clearDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Subnet.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIpv4Cidr()

public Subnet.Builder clearIpv4Cidr()

The ranges of ipv4 addresses that are owned by this subnetwork.

repeated string ipv4_cidr = 7;

Returns
Type Description
Subnet.Builder

This builder for chaining.

clearIpv6Cidr()

public Subnet.Builder clearIpv6Cidr()

The ranges of ipv6 addresses that are owned by this subnetwork.

repeated string ipv6_cidr = 8;

Returns
Type Description
Subnet.Builder

This builder for chaining.

clearLabels()

public Subnet.Builder clearLabels()
Returns
Type Description
Subnet.Builder

clearName()

public Subnet.Builder clearName()

Required. The canonical resource name of the subnet.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Subnet.Builder

This builder for chaining.

clearNetwork()

public Subnet.Builder clearNetwork()

Required. The network that this subnetwork belongs to.

string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
Subnet.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public Subnet.Builder clearState()

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Subnet.Builder

This builder for chaining.

clearUpdateTime()

public Subnet.Builder clearUpdateTime()

Output only. The time when the subnet was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Subnet.Builder

clearVlanId()

public Subnet.Builder clearVlanId()

Optional. VLAN id provided by user. If not specified we assign one automatically.

int32 vlan_id = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Subnet.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the subnet was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the subnet was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the subnet was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Subnet getDefaultInstanceForType()
Returns
Type Description
Subnet

getDescription()

public String getDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getIpv4Cidr(int index)

public String getIpv4Cidr(int index)

The ranges of ipv4 addresses that are owned by this subnetwork.

repeated string ipv4_cidr = 7;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ipv4Cidr at the given index.

getIpv4CidrBytes(int index)

public ByteString getIpv4CidrBytes(int index)

The ranges of ipv4 addresses that are owned by this subnetwork.

repeated string ipv4_cidr = 7;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ipv4Cidr at the given index.

getIpv4CidrCount()

public int getIpv4CidrCount()

The ranges of ipv4 addresses that are owned by this subnetwork.

repeated string ipv4_cidr = 7;

Returns
Type Description
int

The count of ipv4Cidr.

getIpv4CidrList()

public ProtocolStringList getIpv4CidrList()

The ranges of ipv4 addresses that are owned by this subnetwork.

repeated string ipv4_cidr = 7;

Returns
Type Description
ProtocolStringList

A list containing the ipv4Cidr.

getIpv6Cidr(int index)

public String getIpv6Cidr(int index)

The ranges of ipv6 addresses that are owned by this subnetwork.

repeated string ipv6_cidr = 8;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ipv6Cidr at the given index.

getIpv6CidrBytes(int index)

public ByteString getIpv6CidrBytes(int index)

The ranges of ipv6 addresses that are owned by this subnetwork.

repeated string ipv6_cidr = 8;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ipv6Cidr at the given index.

getIpv6CidrCount()

public int getIpv6CidrCount()

The ranges of ipv6 addresses that are owned by this subnetwork.

repeated string ipv6_cidr = 8;

Returns
Type Description
int

The count of ipv6Cidr.

getIpv6CidrList()

public ProtocolStringList getIpv6CidrList()

The ranges of ipv6 addresses that are owned by this subnetwork.

repeated string ipv6_cidr = 8;

Returns
Type Description
ProtocolStringList

A list containing the ipv6Cidr.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Required. The canonical resource name of the subnet.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The canonical resource name of the subnet.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

Required. The network that this subnetwork belongs to.

string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Required. The network that this subnetwork belongs to.

string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for network.

getState()

public ResourceState getState()

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ResourceState

The state.

getStateValue()

public int getStateValue()

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the subnet was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when the subnet was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the subnet was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getVlanId()

public int getVlanId()

Optional. VLAN id provided by user. If not specified we assign one automatically.

int32 vlan_id = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The vlanId.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the subnet was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the subnet was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Subnet.Builder mergeCreateTime(Timestamp value)

Output only. The time when the subnet was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Subnet.Builder

mergeFrom(Subnet other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Subnet.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the subnet was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Subnet.Builder

putAllLabels(Map<String,String> values)

public Subnet.Builder putAllLabels(Map<String,String> values)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Subnet.Builder

putLabels(String key, String value)

public Subnet.Builder putLabels(String key, String value)

Labels associated with this resource.

map<string, string> labels = 4;

Parameters
Name Description
key String
value String
Returns
Type Description
Subnet.Builder

removeLabels(String key)

public Subnet.Builder removeLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
Name Description
key String
Returns
Type Description
Subnet.Builder

setCreateTime(Timestamp value)

public Subnet.Builder setCreateTime(Timestamp value)

Output only. The time when the subnet was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Subnet.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Subnet.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the subnet was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Subnet.Builder

setDescription(String value)

public Subnet.Builder setDescription(String value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Subnet.Builder setDescriptionBytes(ByteString value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpv4Cidr(int index, String value)

public Subnet.Builder setIpv4Cidr(int index, String value)

The ranges of ipv4 addresses that are owned by this subnetwork.

repeated string ipv4_cidr = 7;

Parameters
Name Description
index int

The index to set the value at.

value String

The ipv4Cidr to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setIpv6Cidr(int index, String value)

public Subnet.Builder setIpv6Cidr(int index, String value)

The ranges of ipv6 addresses that are owned by this subnetwork.

repeated string ipv6_cidr = 8;

Parameters
Name Description
index int

The index to set the value at.

value String

The ipv6Cidr to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setName(String value)

public Subnet.Builder setName(String value)

Required. The canonical resource name of the subnet.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Subnet.Builder setNameBytes(ByteString value)

Required. The canonical resource name of the subnet.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setNetwork(String value)

public Subnet.Builder setNetwork(String value)

Required. The network that this subnetwork belongs to.

string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The network to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public Subnet.Builder setNetworkBytes(ByteString value)

Required. The network that this subnetwork belongs to.

string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

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

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

setState(ResourceState value)

public Subnet.Builder setState(ResourceState value)

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ResourceState

The state to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setStateValue(int value)

public Subnet.Builder setStateValue(int value)

Output only. Current stage of the resource to the device by config push.

.google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Subnet.Builder setUpdateTime(Timestamp value)

Output only. The time when the subnet was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Subnet.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Subnet.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the subnet was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Subnet.Builder

setVlanId(int value)

public Subnet.Builder setVlanId(int value)

Optional. VLAN id provided by user. If not specified we assign one automatically.

int32 vlan_id = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The vlanId to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.