Class SecurityPolicyUserDefinedField.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyUserDefinedField.Builder>
com.google.cloud.compute.v1.SecurityPolicyUserDefinedField.Builder
All Implemented Interfaces:
SecurityPolicyUserDefinedFieldOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SecurityPolicyUserDefinedField

public static final class SecurityPolicyUserDefinedField.Builder extends com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyUserDefinedField.Builder> implements SecurityPolicyUserDefinedFieldOrBuilder
 
Protobuf type google.cloud.compute.v1.SecurityPolicyUserDefinedField
  • 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.Builder<SecurityPolicyUserDefinedField.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyUserDefinedField.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyUserDefinedField.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public SecurityPolicyUserDefinedField.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecurityPolicyUserDefinedField.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SecurityPolicyUserDefinedField.Builder>
    • mergeFrom

      public SecurityPolicyUserDefinedField.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecurityPolicyUserDefinedField.Builder>
      Throws:
      IOException
    • 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.
    • setBase

       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;
      Parameters:
      value - The base to set.
      Returns:
      This builder for chaining.
    • clearBase

       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:
      This builder for chaining.
    • setBaseBytes

      public SecurityPolicyUserDefinedField.Builder setBaseBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for base to set.
      Returns:
      This builder for chaining.
    • 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.
    • setMask

       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;
      Parameters:
      value - The mask to set.
      Returns:
      This builder for chaining.
    • clearMask

       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:
      This builder for chaining.
    • setMaskBytes

      public SecurityPolicyUserDefinedField.Builder setMaskBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for mask to set.
      Returns:
      This builder for chaining.
    • 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.
    • setName

       The name of this field. Must be unique within the policy.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       The name of this field. Must be unique within the policy.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public SecurityPolicyUserDefinedField.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of this field. Must be unique within the policy.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setOffset

      public SecurityPolicyUserDefinedField.Builder setOffset(int value)
       Offset of the first byte of the field (in network byte order) relative to
       'base'.
       
      optional int32 offset = 53961875;
      Parameters:
      value - The offset to set.
      Returns:
      This builder for chaining.
    • clearOffset

       Offset of the first byte of the field (in network byte order) relative to
       'base'.
       
      optional int32 offset = 53961875;
      Returns:
      This builder for chaining.
    • 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.
    • setSize

      public SecurityPolicyUserDefinedField.Builder setSize(int value)
       Size of the field in bytes. Valid values: 1-4.
       
      optional int32 size = 3530753;
      Parameters:
      value - The size to set.
      Returns:
      This builder for chaining.
    • clearSize

       Size of the field in bytes. Valid values: 1-4.
       
      optional int32 size = 3530753;
      Returns:
      This builder for chaining.