Class SecurityPolicyUserDefinedField (1.45.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
TypeDescription
int

MASK_FIELD_NUMBER

public static final int MASK_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

OFFSET_FIELD_NUMBER

public static final int OFFSET_FIELD_NUMBER
Field Value
TypeDescription
int

SIZE_FIELD_NUMBER

public static final int SIZE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SecurityPolicyUserDefinedField getDefaultInstance()
Returns
TypeDescription
SecurityPolicyUserDefinedField

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SecurityPolicyUserDefinedField.Builder newBuilder()
Returns
TypeDescription
SecurityPolicyUserDefinedField.Builder

newBuilder(SecurityPolicyUserDefinedField prototype)

public static SecurityPolicyUserDefinedField.Builder newBuilder(SecurityPolicyUserDefinedField prototype)
Parameter
NameDescription
prototypeSecurityPolicyUserDefinedField
Returns
TypeDescription
SecurityPolicyUserDefinedField.Builder

parseDelimitedFrom(InputStream input)

public static SecurityPolicyUserDefinedField parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SecurityPolicyUserDefinedField
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyUserDefinedField parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyUserDefinedField
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SecurityPolicyUserDefinedField parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SecurityPolicyUserDefinedField
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyUserDefinedField parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyUserDefinedField
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SecurityPolicyUserDefinedField parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SecurityPolicyUserDefinedField
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyUserDefinedField parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyUserDefinedField
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SecurityPolicyUserDefinedField parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SecurityPolicyUserDefinedField
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyUserDefinedField parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyUserDefinedField
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SecurityPolicyUserDefinedField parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SecurityPolicyUserDefinedField
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyUserDefinedField parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyUserDefinedField
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SecurityPolicyUserDefinedField parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SecurityPolicyUserDefinedField
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SecurityPolicyUserDefinedField parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyUserDefinedField
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SecurityPolicyUserDefinedField> parser()
Returns
TypeDescription
Parser<SecurityPolicyUserDefinedField>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for base.

getDefaultInstanceForType()

public SecurityPolicyUserDefinedField getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

optional string name = 3373707;

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

The offset.

getParserForType()

public Parser<SecurityPolicyUserDefinedField> getParserForType()
Returns
TypeDescription
Parser<SecurityPolicyUserDefinedField>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSize()

public int getSize()

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

optional int32 size = 3530753;

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

Whether the size field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SecurityPolicyUserDefinedField.Builder newBuilderForType()
Returns
TypeDescription
SecurityPolicyUserDefinedField.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SecurityPolicyUserDefinedField.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SecurityPolicyUserDefinedField.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SecurityPolicyUserDefinedField.Builder toBuilder()
Returns
TypeDescription
SecurityPolicyUserDefinedField.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException