Class ExternalAccessRule.IpRange.Builder (0.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExternalAccessRule.IpRange build()
Returns
TypeDescription
ExternalAccessRule.IpRange

buildPartial()

public ExternalAccessRule.IpRange buildPartial()
Returns
TypeDescription
ExternalAccessRule.IpRange

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearIpRange()

public ExternalAccessRule.IpRange.Builder clearIpRange()
Returns
TypeDescription
ExternalAccessRule.IpRange.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ExternalAccessRule.IpRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExternalAccessRule.IpRange.Builder
Overrides

clone()

public ExternalAccessRule.IpRange.Builder clone()
Returns
TypeDescription
ExternalAccessRule.IpRange.Builder
Overrides

getDefaultInstanceForType()

public ExternalAccessRule.IpRange getDefaultInstanceForType()
Returns
TypeDescription
ExternalAccessRule.IpRange

getDescriptorForType()

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

The bytes for externalAddress.

getIpAddress()

public String getIpAddress()

A single IP address. For example: 10.0.0.5.

string ip_address = 1;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

A single IP address. For example: 10.0.0.5.

string ip_address = 1;

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

The bytes for ipAddressRange.

getIpRangeCase()

public ExternalAccessRule.IpRange.IpRangeCase getIpRangeCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the ipAddressRange field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExternalAccessRule.IpRange other)

public ExternalAccessRule.IpRange.Builder mergeFrom(ExternalAccessRule.IpRange other)
Parameter
NameDescription
otherExternalAccessRule.IpRange
Returns
TypeDescription
ExternalAccessRule.IpRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExternalAccessRule.IpRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The externalAddress to set.

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

The bytes for externalAddress to set.

Returns
TypeDescription
ExternalAccessRule.IpRange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The ipAddress to set.

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

The bytes for ipAddress to set.

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

The ipAddressRange to set.

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

The bytes for ipAddressRange to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExternalAccessRule.IpRange.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExternalAccessRule.IpRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExternalAccessRule.IpRange.Builder
Overrides