Class Subnet.Builder (0.3.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
TypeDescription
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
NameDescription
valuesIterable<String>

The ipv4Cidr to add.

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

The ipv6Cidr to add.

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

The ipv4Cidr to add.

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

The bytes of the ipv4Cidr to add.

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

The ipv6Cidr to add.

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

The bytes of the ipv6Cidr to add.

Returns
TypeDescription
Subnet.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Subnet build()
Returns
TypeDescription
Subnet

buildPartial()

public Subnet buildPartial()
Returns
TypeDescription
Subnet

clear()

public Subnet.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Subnet.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Subnet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Subnet.Builder

This builder for chaining.

clearLabels()

public Subnet.Builder clearLabels()
Returns
TypeDescription
Subnet.Builder

clearName()

public Subnet.Builder clearName()

Required. The canonical resource name of the subnet.

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

Returns
TypeDescription
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
TypeDescription
Subnet.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Subnet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Subnet.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Subnet getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

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

The index of the element to return.

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

The index of the value to return.

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

A list containing the ipv6Cidr.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels associated with this resource.

map<string, string> labels = 4;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Required. The canonical resource name of the subnet.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The canonical resource name of the subnet.

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

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

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Subnet.Builder

mergeFrom(Subnet other)

public Subnet.Builder mergeFrom(Subnet other)
Parameter
NameDescription
otherSubnet
Returns
TypeDescription
Subnet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Subnet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
Subnet.Builder

removeLabels(String key)

public Subnet.Builder removeLabels(String key)

Labels associated with this resource.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The description to set.

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

The bytes for description to set.

Returns
TypeDescription
Subnet.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The index to set the value at.

valueString

The ipv4Cidr to set.

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

The index to set the value at.

valueString

The ipv6Cidr to set.

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

The name to set.

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

The bytes for name to set.

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

The network to set.

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

The bytes for network to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueResourceState

The state to set.

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

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

Returns
TypeDescription
Subnet.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Subnet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueint

The vlanId to set.

Returns
TypeDescription
Subnet.Builder

This builder for chaining.