public static final class AuthzPolicy.AuthzRule.IpBlock.Builder extends GeneratedMessage.Builder<AuthzPolicy.AuthzRule.IpBlock.Builder> implements AuthzPolicy.AuthzRule.IpBlockOrBuilderRepresents a range of IP Addresses.
Protobuf type google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.IpBlock
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AuthzPolicy.AuthzRule.IpBlock.BuilderImplements
AuthzPolicy.AuthzRule.IpBlockOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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 |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for prefix to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.IpBlock.Builder |
This builder for chaining. |