Package com.google.cloud.compute.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The base relative to which 'offset' is measured.If specified, apply this mask (bitwise AND) to the field to ignore bits before matching.The name of this field.Offset of the first byte of the field (in network byte order) relative to 'base'.Size of the field in bytes.getBase()The base relative to which 'offset' is measured.com.google.protobuf.ByteStringThe base relative to which 'offset' is measured.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMask()If specified, apply this mask (bitwise AND) to the field to ignore bits before matching.com.google.protobuf.ByteStringIf specified, apply this mask (bitwise AND) to the field to ignore bits before matching.getName()The name of this field.com.google.protobuf.ByteStringThe name of this field.intOffset of the first byte of the field (in network byte order) relative to 'base'.intgetSize()Size of the field in bytes.booleanhasBase()The base relative to which 'offset' is measured.booleanhasMask()If specified, apply this mask (bitwise AND) to the field to ignore bits before matching.booleanhasName()The name of this field.booleanOffset of the first byte of the field (in network byte order) relative to 'base'.booleanhasSize()Size of the field in bytes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The base relative to which 'offset' is measured.setBaseBytes(com.google.protobuf.ByteString value) The base relative to which 'offset' is measured.If specified, apply this mask (bitwise AND) to the field to ignore bits before matching.setMaskBytes(com.google.protobuf.ByteString value) If specified, apply this mask (bitwise AND) to the field to ignore bits before matching.The name of this field.setNameBytes(com.google.protobuf.ByteString value) The name of this field.setOffset(int value) Offset of the first byte of the field (in network byte order) relative to 'base'.setSize(int value) Size of the field in bytes.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SecurityPolicyUserDefinedField.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SecurityPolicyUserDefinedField.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SecurityPolicyUserDefinedField.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SecurityPolicyUserDefinedField.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasBasein interfaceSecurityPolicyUserDefinedFieldOrBuilder- Returns:
- Whether the base field is set.
-
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:
getBasein interfaceSecurityPolicyUserDefinedFieldOrBuilder- 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:
getBaseBytesin interfaceSecurityPolicyUserDefinedFieldOrBuilder- 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
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:
hasMaskin interfaceSecurityPolicyUserDefinedFieldOrBuilder- Returns:
- Whether the mask field is set.
-
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:
getMaskin interfaceSecurityPolicyUserDefinedFieldOrBuilder- 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:
getMaskBytesin interfaceSecurityPolicyUserDefinedFieldOrBuilder- 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
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:
hasNamein interfaceSecurityPolicyUserDefinedFieldOrBuilder- Returns:
- Whether the name field is set.
-
getName
The name of this field. Must be unique within the policy.
optional string name = 3373707;- Specified by:
getNamein interfaceSecurityPolicyUserDefinedFieldOrBuilder- 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:
getNameBytesin interfaceSecurityPolicyUserDefinedFieldOrBuilder- 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
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:
hasOffsetin interfaceSecurityPolicyUserDefinedFieldOrBuilder- 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:
getOffsetin interfaceSecurityPolicyUserDefinedFieldOrBuilder- Returns:
- The offset.
-
setOffset
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:
hasSizein interfaceSecurityPolicyUserDefinedFieldOrBuilder- 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:
getSizein interfaceSecurityPolicyUserDefinedFieldOrBuilder- Returns:
- The size.
-
setSize
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.
-