public final class SecurityPolicyUserDefinedField extends GeneratedMessageV3 implements SecurityPolicyUserDefinedFieldOrBuilder
Protobuf type google.cloud.compute.v1.SecurityPolicyUserDefinedField
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SecurityPolicyUserDefinedField.Builder newBuilder()
newBuilder(SecurityPolicyUserDefinedField prototype)
public static SecurityPolicyUserDefinedField.Builder newBuilder(SecurityPolicyUserDefinedField prototype)
public static SecurityPolicyUserDefinedField parseDelimitedFrom(InputStream input)
public static SecurityPolicyUserDefinedField parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SecurityPolicyUserDefinedField parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SecurityPolicyUserDefinedField parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SecurityPolicyUserDefinedField parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SecurityPolicyUserDefinedField parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SecurityPolicyUserDefinedField parseFrom(CodedInputStream input)
public static SecurityPolicyUserDefinedField parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SecurityPolicyUserDefinedField parseFrom(InputStream input)
public static SecurityPolicyUserDefinedField parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SecurityPolicyUserDefinedField parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SecurityPolicyUserDefinedField parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SecurityPolicyUserDefinedField> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
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()
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()
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()
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()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getSize()
Size of the field in bytes. Valid values: 1-4.
optional int32 size = 3530753;
Returns |
---|
Type | Description |
int | The size.
|
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()
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()
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()
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SecurityPolicyUserDefinedField.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SecurityPolicyUserDefinedField.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public SecurityPolicyUserDefinedField.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides