Class ZoneNetworkConfig.Builder (0.2.0)

public static final class ZoneNetworkConfig.Builder extends GeneratedMessageV3.Builder<ZoneNetworkConfig.Builder> implements ZoneNetworkConfigOrBuilder

Networking configuration for a zone.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ZoneNetworkConfig build()
Returns
Type Description
ZoneNetworkConfig

buildPartial()

public ZoneNetworkConfig buildPartial()
Returns
Type Description
ZoneNetworkConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKubernetesControlPlaneIpv4Range()

public ZoneNetworkConfig.Builder clearKubernetesControlPlaneIpv4Range()

Required. An IPv4 address block for kubernetes control plane. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per cluster in the Zone. Should be in kubernetes_ipv4_subnet, and disjoint with other address ranges.

string kubernetes_control_plane_ipv4_range = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Returns
Type Description
ZoneNetworkConfig.Builder

This builder for chaining.

clearKubernetesIpv4Subnet()

public ZoneNetworkConfig.Builder clearKubernetesIpv4Subnet()

Optional. An IPv4 subnet for the kubernetes network. If unspecified, the kubernetes subnet will be the same as the management subnet.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ZoneNetworkConfig.Builder

clearKubernetesNodeIpv4Range()

public ZoneNetworkConfig.Builder clearKubernetesNodeIpv4Range()

Required. An IPv4 address block for kubernetes nodes. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per machine in the Zone. Should be in kubernetes_ipv4_subnet, and disjoint with other address ranges.

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

Returns
Type Description
ZoneNetworkConfig.Builder

This builder for chaining.

clearMachineMgmtIpv4Range()

public ZoneNetworkConfig.Builder clearMachineMgmtIpv4Range()

Required. An IPv4 address block for machine management. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per machine in the Zone. Should be in management_ipv4_subnet, and disjoint with other address ranges.

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

Returns
Type Description
ZoneNetworkConfig.Builder

This builder for chaining.

clearManagementIpv4Subnet()

public ZoneNetworkConfig.Builder clearManagementIpv4Subnet()

Required. An IPv4 subnet for the management network.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ZoneNetworkConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ZoneNetworkConfig getDefaultInstanceForType()
Returns
Type Description
ZoneNetworkConfig

getDescriptorForType()

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

getKubernetesControlPlaneIpv4Range()

public String getKubernetesControlPlaneIpv4Range()

Required. An IPv4 address block for kubernetes control plane. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per cluster in the Zone. Should be in kubernetes_ipv4_subnet, and disjoint with other address ranges.

string kubernetes_control_plane_ipv4_range = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Returns
Type Description
String

The kubernetesControlPlaneIpv4Range.

getKubernetesControlPlaneIpv4RangeBytes()

public ByteString getKubernetesControlPlaneIpv4RangeBytes()

Required. An IPv4 address block for kubernetes control plane. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per cluster in the Zone. Should be in kubernetes_ipv4_subnet, and disjoint with other address ranges.

string kubernetes_control_plane_ipv4_range = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for kubernetesControlPlaneIpv4Range.

getKubernetesIpv4Subnet()

public Subnet getKubernetesIpv4Subnet()

Optional. An IPv4 subnet for the kubernetes network. If unspecified, the kubernetes subnet will be the same as the management subnet.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Subnet

The kubernetesIpv4Subnet.

getKubernetesIpv4SubnetBuilder()

public Subnet.Builder getKubernetesIpv4SubnetBuilder()

Optional. An IPv4 subnet for the kubernetes network. If unspecified, the kubernetes subnet will be the same as the management subnet.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Subnet.Builder

getKubernetesIpv4SubnetOrBuilder()

public SubnetOrBuilder getKubernetesIpv4SubnetOrBuilder()

Optional. An IPv4 subnet for the kubernetes network. If unspecified, the kubernetes subnet will be the same as the management subnet.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubnetOrBuilder

getKubernetesNodeIpv4Range()

public String getKubernetesNodeIpv4Range()

Required. An IPv4 address block for kubernetes nodes. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per machine in the Zone. Should be in kubernetes_ipv4_subnet, and disjoint with other address ranges.

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

Returns
Type Description
String

The kubernetesNodeIpv4Range.

getKubernetesNodeIpv4RangeBytes()

public ByteString getKubernetesNodeIpv4RangeBytes()

Required. An IPv4 address block for kubernetes nodes. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per machine in the Zone. Should be in kubernetes_ipv4_subnet, and disjoint with other address ranges.

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

Returns
Type Description
ByteString

The bytes for kubernetesNodeIpv4Range.

getMachineMgmtIpv4Range()

public String getMachineMgmtIpv4Range()

Required. An IPv4 address block for machine management. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per machine in the Zone. Should be in management_ipv4_subnet, and disjoint with other address ranges.

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

Returns
Type Description
String

The machineMgmtIpv4Range.

getMachineMgmtIpv4RangeBytes()

public ByteString getMachineMgmtIpv4RangeBytes()

Required. An IPv4 address block for machine management. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per machine in the Zone. Should be in management_ipv4_subnet, and disjoint with other address ranges.

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

Returns
Type Description
ByteString

The bytes for machineMgmtIpv4Range.

getManagementIpv4Subnet()

public Subnet getManagementIpv4Subnet()

Required. An IPv4 subnet for the management network.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Subnet

The managementIpv4Subnet.

getManagementIpv4SubnetBuilder()

public Subnet.Builder getManagementIpv4SubnetBuilder()

Required. An IPv4 subnet for the management network.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Subnet.Builder

getManagementIpv4SubnetOrBuilder()

public SubnetOrBuilder getManagementIpv4SubnetOrBuilder()

Required. An IPv4 subnet for the management network.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SubnetOrBuilder

hasKubernetesIpv4Subnet()

public boolean hasKubernetesIpv4Subnet()

Optional. An IPv4 subnet for the kubernetes network. If unspecified, the kubernetes subnet will be the same as the management subnet.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the kubernetesIpv4Subnet field is set.

hasManagementIpv4Subnet()

public boolean hasManagementIpv4Subnet()

Required. An IPv4 subnet for the management network.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the managementIpv4Subnet field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ZoneNetworkConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeKubernetesIpv4Subnet(Subnet value)

public ZoneNetworkConfig.Builder mergeKubernetesIpv4Subnet(Subnet value)

Optional. An IPv4 subnet for the kubernetes network. If unspecified, the kubernetes subnet will be the same as the management subnet.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Subnet
Returns
Type Description
ZoneNetworkConfig.Builder

mergeManagementIpv4Subnet(Subnet value)

public ZoneNetworkConfig.Builder mergeManagementIpv4Subnet(Subnet value)

Required. An IPv4 subnet for the management network.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Subnet
Returns
Type Description
ZoneNetworkConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKubernetesControlPlaneIpv4Range(String value)

public ZoneNetworkConfig.Builder setKubernetesControlPlaneIpv4Range(String value)

Required. An IPv4 address block for kubernetes control plane. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per cluster in the Zone. Should be in kubernetes_ipv4_subnet, and disjoint with other address ranges.

string kubernetes_control_plane_ipv4_range = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The kubernetesControlPlaneIpv4Range to set.

Returns
Type Description
ZoneNetworkConfig.Builder

This builder for chaining.

setKubernetesControlPlaneIpv4RangeBytes(ByteString value)

public ZoneNetworkConfig.Builder setKubernetesControlPlaneIpv4RangeBytes(ByteString value)

Required. An IPv4 address block for kubernetes control plane. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per cluster in the Zone. Should be in kubernetes_ipv4_subnet, and disjoint with other address ranges.

string kubernetes_control_plane_ipv4_range = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for kubernetesControlPlaneIpv4Range to set.

Returns
Type Description
ZoneNetworkConfig.Builder

This builder for chaining.

setKubernetesIpv4Subnet(Subnet value)

public ZoneNetworkConfig.Builder setKubernetesIpv4Subnet(Subnet value)

Optional. An IPv4 subnet for the kubernetes network. If unspecified, the kubernetes subnet will be the same as the management subnet.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Subnet
Returns
Type Description
ZoneNetworkConfig.Builder

setKubernetesIpv4Subnet(Subnet.Builder builderForValue)

public ZoneNetworkConfig.Builder setKubernetesIpv4Subnet(Subnet.Builder builderForValue)

Optional. An IPv4 subnet for the kubernetes network. If unspecified, the kubernetes subnet will be the same as the management subnet.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Subnet.Builder
Returns
Type Description
ZoneNetworkConfig.Builder

setKubernetesNodeIpv4Range(String value)

public ZoneNetworkConfig.Builder setKubernetesNodeIpv4Range(String value)

Required. An IPv4 address block for kubernetes nodes. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per machine in the Zone. Should be in kubernetes_ipv4_subnet, and disjoint with other address ranges.

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

Parameter
Name Description
value String

The kubernetesNodeIpv4Range to set.

Returns
Type Description
ZoneNetworkConfig.Builder

This builder for chaining.

setKubernetesNodeIpv4RangeBytes(ByteString value)

public ZoneNetworkConfig.Builder setKubernetesNodeIpv4RangeBytes(ByteString value)

Required. An IPv4 address block for kubernetes nodes. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per machine in the Zone. Should be in kubernetes_ipv4_subnet, and disjoint with other address ranges.

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

Parameter
Name Description
value ByteString

The bytes for kubernetesNodeIpv4Range to set.

Returns
Type Description
ZoneNetworkConfig.Builder

This builder for chaining.

setMachineMgmtIpv4Range(String value)

public ZoneNetworkConfig.Builder setMachineMgmtIpv4Range(String value)

Required. An IPv4 address block for machine management. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per machine in the Zone. Should be in management_ipv4_subnet, and disjoint with other address ranges.

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

Parameter
Name Description
value String

The machineMgmtIpv4Range to set.

Returns
Type Description
ZoneNetworkConfig.Builder

This builder for chaining.

setMachineMgmtIpv4RangeBytes(ByteString value)

public ZoneNetworkConfig.Builder setMachineMgmtIpv4RangeBytes(ByteString value)

Required. An IPv4 address block for machine management. Should be a private RFC1918 or public CIDR block large enough to allocate at least one address per machine in the Zone. Should be in management_ipv4_subnet, and disjoint with other address ranges.

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

Parameter
Name Description
value ByteString

The bytes for machineMgmtIpv4Range to set.

Returns
Type Description
ZoneNetworkConfig.Builder

This builder for chaining.

setManagementIpv4Subnet(Subnet value)

public ZoneNetworkConfig.Builder setManagementIpv4Subnet(Subnet value)

Required. An IPv4 subnet for the management network.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Subnet
Returns
Type Description
ZoneNetworkConfig.Builder

setManagementIpv4Subnet(Subnet.Builder builderForValue)

public ZoneNetworkConfig.Builder setManagementIpv4Subnet(Subnet.Builder builderForValue)

Required. An IPv4 subnet for the management network.

.google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Subnet.Builder
Returns
Type Description
ZoneNetworkConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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