Class SecurityPolicyUserDefinedField

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.SecurityPolicyUserDefinedField
All Implemented Interfaces:
SecurityPolicyUserDefinedFieldOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class SecurityPolicyUserDefinedField extends com.google.protobuf.GeneratedMessage implements SecurityPolicyUserDefinedFieldOrBuilder
 
Protobuf type google.cloud.compute.v1.SecurityPolicyUserDefinedField
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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;
      Specified by:
      hasBase in interface SecurityPolicyUserDefinedFieldOrBuilder
      Returns:
      Whether the base field is set.
    • 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;
      Specified by:
      getBase in interface SecurityPolicyUserDefinedFieldOrBuilder
      Returns:
      The base.
    • getBaseBytes

      public com.google.protobuf.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;
      Specified by:
      getBaseBytes in interface SecurityPolicyUserDefinedFieldOrBuilder
      Returns:
      The bytes for base.
    • 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;
      Specified by:
      hasMask in interface SecurityPolicyUserDefinedFieldOrBuilder
      Returns:
      Whether the mask field is set.
    • 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;
      Specified by:
      getMask in interface SecurityPolicyUserDefinedFieldOrBuilder
      Returns:
      The mask.
    • getMaskBytes

      public com.google.protobuf.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;
      Specified by:
      getMaskBytes in interface SecurityPolicyUserDefinedFieldOrBuilder
      Returns:
      The bytes for mask.
    • hasName

      public boolean hasName()
       The name of this field. Must be unique within the policy.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface SecurityPolicyUserDefinedFieldOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name of this field. Must be unique within the policy.
       
      optional string name = 3373707;
      Specified by:
      getName in interface SecurityPolicyUserDefinedFieldOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of this field. Must be unique within the policy.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface SecurityPolicyUserDefinedFieldOrBuilder
      Returns:
      The bytes for name.
    • hasOffset

      public boolean hasOffset()
       Offset of the first byte of the field (in network byte order) relative to
       'base'.
       
      optional int32 offset = 53961875;
      Specified by:
      hasOffset in interface SecurityPolicyUserDefinedFieldOrBuilder
      Returns:
      Whether the offset field is set.
    • getOffset

      public int getOffset()
       Offset of the first byte of the field (in network byte order) relative to
       'base'.
       
      optional int32 offset = 53961875;
      Specified by:
      getOffset in interface SecurityPolicyUserDefinedFieldOrBuilder
      Returns:
      The offset.
    • hasSize

      public boolean hasSize()
       Size of the field in bytes. Valid values: 1-4.
       
      optional int32 size = 3530753;
      Specified by:
      hasSize in interface SecurityPolicyUserDefinedFieldOrBuilder
      Returns:
      Whether the size field is set.
    • getSize

      public int getSize()
       Size of the field in bytes. Valid values: 1-4.
       
      optional int32 size = 3530753;
      Specified by:
      getSize in interface SecurityPolicyUserDefinedFieldOrBuilder
      Returns:
      The size.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SecurityPolicyUserDefinedField parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyUserDefinedField parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyUserDefinedField parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyUserDefinedField parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyUserDefinedField parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyUserDefinedField parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyUserDefinedField parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SecurityPolicyUserDefinedField parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SecurityPolicyUserDefinedField parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SecurityPolicyUserDefinedField parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SecurityPolicyUserDefinedField parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SecurityPolicyUserDefinedField parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public SecurityPolicyUserDefinedField.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SecurityPolicyUserDefinedField.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SecurityPolicyUserDefinedField.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SecurityPolicyUserDefinedField getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SecurityPolicyUserDefinedField> parser()
    • getParserForType

      public com.google.protobuf.Parser<SecurityPolicyUserDefinedField> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public SecurityPolicyUserDefinedField getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder