Class ExternalAccessRule.IpRange.Builder (0.49.0)

public static final class ExternalAccessRule.IpRange.Builder extends GeneratedMessageV3.Builder<ExternalAccessRule.IpRange.Builder> implements ExternalAccessRule.IpRangeOrBuilder

An IP range provided in any one of the supported formats.

Protobuf type google.cloud.vmwareengine.v1.ExternalAccessRule.IpRange

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExternalAccessRule.IpRange build()
Returns
Type Description
ExternalAccessRule.IpRange

buildPartial()

public ExternalAccessRule.IpRange buildPartial()
Returns
Type Description
ExternalAccessRule.IpRange

clear()

public ExternalAccessRule.IpRange.Builder clear()
Returns
Type Description
ExternalAccessRule.IpRange.Builder
Overrides

clearExternalAddress()

public ExternalAccessRule.IpRange.Builder clearExternalAddress()

The name of an ExternalAddress resource. The external address must have been reserved in the scope of this external access rule's parent network policy. Provide the external address name in the form of projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address.

string external_address = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ExternalAccessRule.IpRange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIpAddress()

public ExternalAccessRule.IpRange.Builder clearIpAddress()

A single IP address. For example: 10.0.0.5.

string ip_address = 1;

Returns
Type Description
ExternalAccessRule.IpRange.Builder

This builder for chaining.

clearIpAddressRange()

public ExternalAccessRule.IpRange.Builder clearIpAddressRange()

An IP address range in the CIDR format. For example: 10.0.0.0/24.

string ip_address_range = 2;

Returns
Type Description
ExternalAccessRule.IpRange.Builder

This builder for chaining.

clearIpRange()

public ExternalAccessRule.IpRange.Builder clearIpRange()
Returns
Type Description
ExternalAccessRule.IpRange.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ExternalAccessRule.IpRange.Builder clone()
Returns
Type Description
ExternalAccessRule.IpRange.Builder
Overrides

getDefaultInstanceForType()

public ExternalAccessRule.IpRange getDefaultInstanceForType()
Returns
Type Description
ExternalAccessRule.IpRange

getDescriptorForType()

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

getExternalAddress()

public String getExternalAddress()

The name of an ExternalAddress resource. The external address must have been reserved in the scope of this external access rule's parent network policy. Provide the external address name in the form of projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address.

string external_address = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The externalAddress.

getExternalAddressBytes()

public ByteString getExternalAddressBytes()

The name of an ExternalAddress resource. The external address must have been reserved in the scope of this external access rule's parent network policy. Provide the external address name in the form of projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address.

string external_address = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for externalAddress.

getIpAddress()

public String getIpAddress()

A single IP address. For example: 10.0.0.5.

string ip_address = 1;

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

A single IP address. For example: 10.0.0.5.

string ip_address = 1;

Returns
Type Description
ByteString

The bytes for ipAddress.

getIpAddressRange()

public String getIpAddressRange()

An IP address range in the CIDR format. For example: 10.0.0.0/24.

string ip_address_range = 2;

Returns
Type Description
String

The ipAddressRange.

getIpAddressRangeBytes()

public ByteString getIpAddressRangeBytes()

An IP address range in the CIDR format. For example: 10.0.0.0/24.

string ip_address_range = 2;

Returns
Type Description
ByteString

The bytes for ipAddressRange.

getIpRangeCase()

public ExternalAccessRule.IpRange.IpRangeCase getIpRangeCase()
Returns
Type Description
ExternalAccessRule.IpRange.IpRangeCase

hasExternalAddress()

public boolean hasExternalAddress()

The name of an ExternalAddress resource. The external address must have been reserved in the scope of this external access rule's parent network policy. Provide the external address name in the form of projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address.

string external_address = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the externalAddress field is set.

hasIpAddress()

public boolean hasIpAddress()

A single IP address. For example: 10.0.0.5.

string ip_address = 1;

Returns
Type Description
boolean

Whether the ipAddress field is set.

hasIpAddressRange()

public boolean hasIpAddressRange()

An IP address range in the CIDR format. For example: 10.0.0.0/24.

string ip_address_range = 2;

Returns
Type Description
boolean

Whether the ipAddressRange field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExternalAccessRule.IpRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExternalAddress(String value)

public ExternalAccessRule.IpRange.Builder setExternalAddress(String value)

The name of an ExternalAddress resource. The external address must have been reserved in the scope of this external access rule's parent network policy. Provide the external address name in the form of projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address.

string external_address = 3 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The externalAddress to set.

Returns
Type Description
ExternalAccessRule.IpRange.Builder

This builder for chaining.

setExternalAddressBytes(ByteString value)

public ExternalAccessRule.IpRange.Builder setExternalAddressBytes(ByteString value)

The name of an ExternalAddress resource. The external address must have been reserved in the scope of this external access rule's parent network policy. Provide the external address name in the form of projects/{project}/locations/{location}/privateClouds/{private_cloud}/externalAddresses/{external_address}. For example: projects/my-project/locations/us-central1-a/privateClouds/my-cloud/externalAddresses/my-address.

string external_address = 3 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for externalAddress to set.

Returns
Type Description
ExternalAccessRule.IpRange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpAddress(String value)

public ExternalAccessRule.IpRange.Builder setIpAddress(String value)

A single IP address. For example: 10.0.0.5.

string ip_address = 1;

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
ExternalAccessRule.IpRange.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public ExternalAccessRule.IpRange.Builder setIpAddressBytes(ByteString value)

A single IP address. For example: 10.0.0.5.

string ip_address = 1;

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
ExternalAccessRule.IpRange.Builder

This builder for chaining.

setIpAddressRange(String value)

public ExternalAccessRule.IpRange.Builder setIpAddressRange(String value)

An IP address range in the CIDR format. For example: 10.0.0.0/24.

string ip_address_range = 2;

Parameter
Name Description
value String

The ipAddressRange to set.

Returns
Type Description
ExternalAccessRule.IpRange.Builder

This builder for chaining.

setIpAddressRangeBytes(ByteString value)

public ExternalAccessRule.IpRange.Builder setIpAddressRangeBytes(ByteString value)

An IP address range in the CIDR format. For example: 10.0.0.0/24.

string ip_address_range = 2;

Parameter
Name Description
value ByteString

The bytes for ipAddressRange to set.

Returns
Type Description
ExternalAccessRule.IpRange.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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