Class Subnet.Builder (0.9.0)

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

Represents a subnet.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Subnet

Implements

SubnetOrBuilder

Static Methods

getDescriptor()

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

Methods

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

clearAddressRange()

public Subnet.Builder clearAddressRange()

Required. Address range for this subnet in CIDR notation.

string address_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Returns
Type Description
Subnet.Builder

This builder for chaining.

clearDefaultGatewayIpAddress()

public Subnet.Builder clearDefaultGatewayIpAddress()

Required. Default gateway for this subnet.

string default_gateway_ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAddressRange()

public String getAddressRange()

Required. Address range for this subnet in CIDR notation.

string address_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Returns
Type Description
String

The addressRange.

getAddressRangeBytes()

public ByteString getAddressRangeBytes()

Required. Address range for this subnet in CIDR notation.

string address_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for addressRange.

getDefaultGatewayIpAddress()

public String getDefaultGatewayIpAddress()

Required. Default gateway for this subnet.

string default_gateway_ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Returns
Type Description
String

The defaultGatewayIpAddress.

getDefaultGatewayIpAddressBytes()

public ByteString getDefaultGatewayIpAddressBytes()

Required. Default gateway for this subnet.

string default_gateway_ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for defaultGatewayIpAddress.

getDefaultInstanceForType()

public Subnet getDefaultInstanceForType()
Returns
Type Description
Subnet

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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

setAddressRange(String value)

public Subnet.Builder setAddressRange(String value)

Required. Address range for this subnet in CIDR notation.

string address_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The addressRange to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setAddressRangeBytes(ByteString value)

public Subnet.Builder setAddressRangeBytes(ByteString value)

Required. Address range for this subnet in CIDR notation.

string address_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for addressRange to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setDefaultGatewayIpAddress(String value)

public Subnet.Builder setDefaultGatewayIpAddress(String value)

Required. Default gateway for this subnet.

string default_gateway_ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The defaultGatewayIpAddress to set.

Returns
Type Description
Subnet.Builder

This builder for chaining.

setDefaultGatewayIpAddressBytes(ByteString value)

public Subnet.Builder setDefaultGatewayIpAddressBytes(ByteString value)

Required. Default gateway for this subnet.

string default_gateway_ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for defaultGatewayIpAddress 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

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

setUnknownFields(UnknownFieldSet unknownFields)

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