Class AuthzPolicy.AuthzRule.IpBlock.Builder (0.94.0)

public static final class AuthzPolicy.AuthzRule.IpBlock.Builder extends GeneratedMessage.Builder<AuthzPolicy.AuthzRule.IpBlock.Builder> implements AuthzPolicy.AuthzRule.IpBlockOrBuilder

Represents a range of IP Addresses.

Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock

Static Methods

getDescriptor()

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

Methods

build()

public AuthzPolicy.AuthzRule.IpBlock build()
Returns
Type Description
AuthzPolicy.AuthzRule.IpBlock

buildPartial()

public AuthzPolicy.AuthzRule.IpBlock buildPartial()
Returns
Type Description
AuthzPolicy.AuthzRule.IpBlock

clear()

public AuthzPolicy.AuthzRule.IpBlock.Builder clear()
Returns
Type Description
AuthzPolicy.AuthzRule.IpBlock.Builder
Overrides

clearLength()

public AuthzPolicy.AuthzRule.IpBlock.Builder clearLength()

Required. The length of the address range.

int32 length = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthzPolicy.AuthzRule.IpBlock.Builder

This builder for chaining.

clearPrefix()

public AuthzPolicy.AuthzRule.IpBlock.Builder clearPrefix()

Required. The address prefix.

string prefix = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AuthzPolicy.AuthzRule.IpBlock.Builder

This builder for chaining.

getDefaultInstanceForType()

public AuthzPolicy.AuthzRule.IpBlock getDefaultInstanceForType()
Returns
Type Description
AuthzPolicy.AuthzRule.IpBlock

getDescriptorForType()

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

getLength()

public int getLength()

Required. The length of the address range.

int32 length = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The length.

getPrefix()

public String getPrefix()

Required. The address prefix.

string prefix = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The prefix.

getPrefixBytes()

public ByteString getPrefixBytes()

Required. The address prefix.

string prefix = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for prefix.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AuthzPolicy.AuthzRule.IpBlock other)

public AuthzPolicy.AuthzRule.IpBlock.Builder mergeFrom(AuthzPolicy.AuthzRule.IpBlock other)
Parameter
Name Description
other AuthzPolicy.AuthzRule.IpBlock
Returns
Type Description
AuthzPolicy.AuthzRule.IpBlock.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AuthzPolicy.AuthzRule.IpBlock.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AuthzPolicy.AuthzRule.IpBlock.Builder
Overrides

setLength(int value)

public AuthzPolicy.AuthzRule.IpBlock.Builder setLength(int value)

Required. The length of the address range.

int32 length = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The length to set.

Returns
Type Description
AuthzPolicy.AuthzRule.IpBlock.Builder

This builder for chaining.

setPrefix(String value)

public AuthzPolicy.AuthzRule.IpBlock.Builder setPrefix(String value)

Required. The address prefix.

string prefix = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The prefix to set.

Returns
Type Description
AuthzPolicy.AuthzRule.IpBlock.Builder

This builder for chaining.

setPrefixBytes(ByteString value)

public AuthzPolicy.AuthzRule.IpBlock.Builder setPrefixBytes(ByteString value)

Required. The address prefix.

string prefix = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for prefix to set.

Returns
Type Description
AuthzPolicy.AuthzRule.IpBlock.Builder

This builder for chaining.