- 1.63.0 (latest)
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class SecurityPolicyUserDefinedField.Builder extends GeneratedMessageV3.Builder<SecurityPolicyUserDefinedField.Builder> implements SecurityPolicyUserDefinedFieldOrBuilder
Protobuf type google.cloud.compute.v1.SecurityPolicyUserDefinedField
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SecurityPolicyUserDefinedField.BuilderImplements
SecurityPolicyUserDefinedFieldOrBuilderStatic 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 |
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 |
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 |
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 |
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 |
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 |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public SecurityPolicyUserDefinedField.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
SecurityPolicyUserDefinedField.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SecurityPolicyUserDefinedField.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SecurityPolicyUserDefinedField.Builder |
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 |
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 |
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 |