Class SecurityPolicyUserDefinedField (1.57.0)

public final class SecurityPolicyUserDefinedField extends GeneratedMessageV3 implements SecurityPolicyUserDefinedFieldOrBuilder

Protobuf type google.cloud.compute.v1.SecurityPolicyUserDefinedField

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SecurityPolicyUserDefinedField

Static Fields

BASE_FIELD_NUMBER

public static final int BASE_FIELD_NUMBER
Field Value
Type Description
int

MASK_FIELD_NUMBER

public static final int MASK_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

OFFSET_FIELD_NUMBER

public static final int OFFSET_FIELD_NUMBER
Field Value
Type Description
int

SIZE_FIELD_NUMBER

public static final int SIZE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SecurityPolicyUserDefinedField getDefaultInstance()
Returns
Type Description
SecurityPolicyUserDefinedField

getDescriptor()

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

newBuilder()

public static SecurityPolicyUserDefinedField.Builder newBuilder()
Returns
Type Description
SecurityPolicyUserDefinedField.Builder

newBuilder(SecurityPolicyUserDefinedField prototype)

public static SecurityPolicyUserDefinedField.Builder newBuilder(SecurityPolicyUserDefinedField prototype)
Parameter
Name Description
prototype SecurityPolicyUserDefinedField
Returns
Type Description
SecurityPolicyUserDefinedField.Builder

parseDelimitedFrom(InputStream input)

public static SecurityPolicyUserDefinedField parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SecurityPolicyUserDefinedField
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyUserDefinedField parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityPolicyUserDefinedField
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SecurityPolicyUserDefinedField parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SecurityPolicyUserDefinedField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyUserDefinedField parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityPolicyUserDefinedField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SecurityPolicyUserDefinedField parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SecurityPolicyUserDefinedField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyUserDefinedField parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityPolicyUserDefinedField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SecurityPolicyUserDefinedField parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SecurityPolicyUserDefinedField
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyUserDefinedField parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityPolicyUserDefinedField
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SecurityPolicyUserDefinedField parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SecurityPolicyUserDefinedField
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyUserDefinedField parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityPolicyUserDefinedField
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SecurityPolicyUserDefinedField parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SecurityPolicyUserDefinedField
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyUserDefinedField parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityPolicyUserDefinedField
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SecurityPolicyUserDefinedField> parser()
Returns
Type Description
Parser<SecurityPolicyUserDefinedField>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBase()

public String getBase()

The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required Check the Base enum for the list of possible values.

optional string base = 3016401;

Returns
Type Description
String

The base.

getBaseBytes()

public ByteString getBaseBytes()

The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required Check the Base enum for the list of possible values.

optional string base = 3016401;

Returns
Type Description
ByteString

The bytes for base.

getDefaultInstanceForType()

public SecurityPolicyUserDefinedField getDefaultInstanceForType()
Returns
Type Description
SecurityPolicyUserDefinedField

getMask()

public String getMask()

If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask.

optional string mask = 3344108;

Returns
Type Description
String

The mask.

getMaskBytes()

public ByteString getMaskBytes()

If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask.

optional string mask = 3344108;

Returns
Type Description
ByteString

The bytes for mask.

getName()

public String getName()

The name of this field. Must be unique within the policy.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of this field. Must be unique within the policy.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getOffset()

public int getOffset()

Offset of the first byte of the field (in network byte order) relative to 'base'.

optional int32 offset = 53961875;

Returns
Type Description
int

The offset.

getParserForType()

public Parser<SecurityPolicyUserDefinedField> getParserForType()
Returns
Type Description
Parser<SecurityPolicyUserDefinedField>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSize()

public int getSize()

Size of the field in bytes. Valid values: 1-4.

optional int32 size = 3530753;

Returns
Type Description
int

The size.

hasBase()

public boolean hasBase()

The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required Check the Base enum for the list of possible values.

optional string base = 3016401;

Returns
Type Description
boolean

Whether the base field is set.

hasMask()

public boolean hasMask()

If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask.

optional string mask = 3344108;

Returns
Type Description
boolean

Whether the mask field is set.

hasName()

public boolean hasName()

The name of this field. Must be unique within the policy.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasOffset()

public boolean hasOffset()

Offset of the first byte of the field (in network byte order) relative to 'base'.

optional int32 offset = 53961875;

Returns
Type Description
boolean

Whether the offset field is set.

hasSize()

public boolean hasSize()

Size of the field in bytes. Valid values: 1-4.

optional int32 size = 3530753;

Returns
Type Description
boolean

Whether the size field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SecurityPolicyUserDefinedField.Builder newBuilderForType()
Returns
Type Description
SecurityPolicyUserDefinedField.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SecurityPolicyUserDefinedField.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SecurityPolicyUserDefinedField.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SecurityPolicyUserDefinedField.Builder toBuilder()
Returns
Type Description
SecurityPolicyUserDefinedField.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException