Class SecurityPolicyUserDefinedField.Builder (1.45.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SecurityPolicyUserDefinedField.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SecurityPolicyUserDefinedField.Builder
Overrides

build()

public SecurityPolicyUserDefinedField build()
Returns
TypeDescription
SecurityPolicyUserDefinedField

buildPartial()

public SecurityPolicyUserDefinedField buildPartial()
Returns
TypeDescription
SecurityPolicyUserDefinedField

clear()

public SecurityPolicyUserDefinedField.Builder clear()
Returns
TypeDescription
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
TypeDescription
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SecurityPolicyUserDefinedField.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SecurityPolicyUserDefinedField.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SecurityPolicyUserDefinedField.Builder
Overrides

clearSize()

public SecurityPolicyUserDefinedField.Builder clearSize()

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

optional int32 size = 3530753;

Returns
TypeDescription
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

clone()

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

The bytes for base.

getDefaultInstanceForType()

public SecurityPolicyUserDefinedField getDefaultInstanceForType()
Returns
TypeDescription
SecurityPolicyUserDefinedField

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

optional string name = 3373707;

Returns
TypeDescription
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
TypeDescription
int

The offset.

getSize()

public int getSize()

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

optional int32 size = 3530753;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the size field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SecurityPolicyUserDefinedField other)

public SecurityPolicyUserDefinedField.Builder mergeFrom(SecurityPolicyUserDefinedField other)
Parameter
NameDescription
otherSecurityPolicyUserDefinedField
Returns
TypeDescription
SecurityPolicyUserDefinedField.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SecurityPolicyUserDefinedField.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyUserDefinedField.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SecurityPolicyUserDefinedField.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SecurityPolicyUserDefinedField.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPolicyUserDefinedField.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The base to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for base to set.

Returns
TypeDescription
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SecurityPolicyUserDefinedField.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The mask to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for mask to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueint

The offset to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The size to set.

Returns
TypeDescription
SecurityPolicyUserDefinedField.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPolicyUserDefinedField.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SecurityPolicyUserDefinedField.Builder
Overrides