public static final class Subnet.Builder extends GeneratedMessage.Builder<Subnet.Builder> implements SubnetOrBuilderRepresents a subnet.
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Subnet
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Subnet.BuilderImplements
SubnetOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Subnet.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Subnet.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for defaultGatewayIpAddress to set. |
| Returns | |
|---|---|
| Type | Description |
Subnet.Builder |
This builder for chaining. |