Class SecurityPolicyUserDefinedField.Builder (1.52.0)

public static final class SecurityPolicyUserDefinedField.Builder extends GeneratedMessageV3.Builder<SecurityPolicyUserDefinedField.Builder> implements SecurityPolicyUserDefinedFieldOrBuilder

Protobuf type google.cloud.compute.v1.SecurityPolicyUserDefinedField

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SecurityPolicyUserDefinedField.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecurityPolicyUserDefinedField.Builder
Overrides

build()

public SecurityPolicyUserDefinedField build()
Returns
Type Description
SecurityPolicyUserDefinedField

buildPartial()

public SecurityPolicyUserDefinedField buildPartial()
Returns
Type Description
SecurityPolicyUserDefinedField

clear()

public SecurityPolicyUserDefinedField.Builder clear()
Returns
Type Description
SecurityPolicyUserDefinedField.Builder
Overrides

clearBase()

public SecurityPolicyUserDefinedField.Builder 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
Type Description
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SecurityPolicyUserDefinedField.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SecurityPolicyUserDefinedField.Builder
Overrides

clearMask()

public SecurityPolicyUserDefinedField.Builder 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
Type Description
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

clearName()

public SecurityPolicyUserDefinedField.Builder clearName()

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

optional string name = 3373707;

Returns
Type Description
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

clearOffset()

public SecurityPolicyUserDefinedField.Builder clearOffset()

Offset of the first byte of the field (in network byte order) relative to 'base'.

optional int32 offset = 53961875;

Returns
Type Description
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SecurityPolicyUserDefinedField.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SecurityPolicyUserDefinedField.Builder
Overrides

clearSize()

public SecurityPolicyUserDefinedField.Builder clearSize()

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

optional int32 size = 3530753;

Returns
Type Description
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

clone()

public SecurityPolicyUserDefinedField.Builder clone()
Returns
Type Description
SecurityPolicyUserDefinedField.Builder
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
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()
Returns
Type Description
SecurityPolicyUserDefinedField

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
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()

public String 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()

public int 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.

getSize()

public int getSize()

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

optional int32 size = 3530753;

Returns
Type Description
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
Type Description
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
Type Description
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
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()

public boolean 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SecurityPolicyUserDefinedField other)

public SecurityPolicyUserDefinedField.Builder mergeFrom(SecurityPolicyUserDefinedField other)
Parameter
Name Description
other SecurityPolicyUserDefinedField
Returns
Type Description
SecurityPolicyUserDefinedField.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SecurityPolicyUserDefinedField.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecurityPolicyUserDefinedField.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SecurityPolicyUserDefinedField.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SecurityPolicyUserDefinedField.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPolicyUserDefinedField.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecurityPolicyUserDefinedField.Builder
Overrides

setBase(String value)

public SecurityPolicyUserDefinedField.Builder setBase(String 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;

Parameter
Name Description
value String

The base to set.

Returns
Type Description
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

setBaseBytes(ByteString value)

public SecurityPolicyUserDefinedField.Builder setBaseBytes(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;

Parameter
Name Description
value ByteString

The bytes for base to set.

Returns
Type Description
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SecurityPolicyUserDefinedField.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecurityPolicyUserDefinedField.Builder
Overrides

setMask(String value)

public SecurityPolicyUserDefinedField.Builder setMask(String 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;

Parameter
Name Description
value String

The mask to set.

Returns
Type Description
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

setMaskBytes(ByteString value)

public SecurityPolicyUserDefinedField.Builder setMaskBytes(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;

Parameter
Name Description
value ByteString

The bytes for mask to set.

Returns
Type Description
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

setName(String value)

public SecurityPolicyUserDefinedField.Builder setName(String value)

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

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SecurityPolicyUserDefinedField.Builder setNameBytes(ByteString value)

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

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

setOffset(int value)

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;

Parameter
Name Description
value int

The offset to set.

Returns
Type Description
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SecurityPolicyUserDefinedField.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SecurityPolicyUserDefinedField.Builder
Overrides

setSize(int value)

public SecurityPolicyUserDefinedField.Builder setSize(int value)

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

optional int32 size = 3530753;

Parameter
Name Description
value int

The size to set.

Returns
Type Description
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPolicyUserDefinedField.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecurityPolicyUserDefinedField.Builder
Overrides