Class ManagedRuleset (1.109.0)

public final class ManagedRuleset extends GeneratedMessage implements ManagedRulesetOrBuilder

Represents a ManagedRuleset resource.

Managed internally by Cloud Armor CLH for Managed Rules features. Customers can only view these resources to modify their Security Policies. For more information, see https://cloud.google.com/armor/docs/.

Protobuf type google.cloud.compute.v1.ManagedRuleset

Static Fields

CHANGE_LOG_FIELD_NUMBER

public static final int CHANGE_LOG_FIELD_NUMBER
Field Value
Type Description
int

CREATION_TIMESTAMP_FIELD_NUMBER

public static final int CREATION_TIMESTAMP_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

RULESET_ID_FIELD_NUMBER

public static final int RULESET_ID_FIELD_NUMBER
Field Value
Type Description
int

RULE_IDS_FIELD_NUMBER

public static final int RULE_IDS_FIELD_NUMBER
Field Value
Type Description
int
public static final int SELF_LINK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ManagedRuleset getDefaultInstance()
Returns
Type Description
ManagedRuleset

getDescriptor()

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

newBuilder()

public static ManagedRuleset.Builder newBuilder()
Returns
Type Description
ManagedRuleset.Builder

newBuilder(ManagedRuleset prototype)

public static ManagedRuleset.Builder newBuilder(ManagedRuleset prototype)
Parameter
Name Description
prototype ManagedRuleset
Returns
Type Description
ManagedRuleset.Builder

parseDelimitedFrom(InputStream input)

public static ManagedRuleset parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ManagedRuleset
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ManagedRuleset parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManagedRuleset
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ManagedRuleset parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ManagedRuleset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ManagedRuleset parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManagedRuleset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ManagedRuleset parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ManagedRuleset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ManagedRuleset parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManagedRuleset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ManagedRuleset parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ManagedRuleset
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ManagedRuleset parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManagedRuleset
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ManagedRuleset parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ManagedRuleset
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ManagedRuleset parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManagedRuleset
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ManagedRuleset parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ManagedRuleset
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ManagedRuleset parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ManagedRuleset
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ManagedRuleset> parser()
Returns
Type Description
Parser<ManagedRuleset>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getChangeLog()

public String getChangeLog()

Output only. [Output Only] The change log for this managed ruleset.

optional string change_log = 15896117;

Returns
Type Description
String

The changeLog.

getChangeLogBytes()

public ByteString getChangeLogBytes()

Output only. [Output Only] The change log for this managed ruleset.

optional string change_log = 15896117;

Returns
Type Description
ByteString

The bytes for changeLog.

getCreationTimestamp()

public String getCreationTimestamp()

Output only. [Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

Output only. [Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public ManagedRuleset getDefaultInstanceForType()
Returns
Type Description
ManagedRuleset

getDescription()

public String getDescription()

[Output Only] An optional description of this resource.

optional string description = 422937596;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

[Output Only] An optional description of this resource.

optional string description = 422937596;

Returns
Type Description
ByteString

The bytes for description.

getId()

public long getId()

Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
Type Description
long

The id.

getName()

public String getName()

Name of the resource. Generated internally when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the resource. Generated internally when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<ManagedRuleset> getParserForType()
Returns
Type Description
Parser<ManagedRuleset>
Overrides

getRuleIds(int index)

public String getRuleIds(int index)

Output only. [Output Only] The list of managed rule IDs that are included in this managed ruleset.

repeated string rule_ids = 226918133;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ruleIds at the given index.

getRuleIdsBytes(int index)

public ByteString getRuleIdsBytes(int index)

Output only. [Output Only] The list of managed rule IDs that are included in this managed ruleset.

repeated string rule_ids = 226918133;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ruleIds at the given index.

getRuleIdsCount()

public int getRuleIdsCount()

Output only. [Output Only] The list of managed rule IDs that are included in this managed ruleset.

repeated string rule_ids = 226918133;

Returns
Type Description
int

The count of ruleIds.

getRuleIdsList()

public ProtocolStringList getRuleIdsList()

Output only. [Output Only] The list of managed rule IDs that are included in this managed ruleset.

repeated string rule_ids = 226918133;

Returns
Type Description
ProtocolStringList

A list containing the ruleIds.

getRulesetId()

public String getRulesetId()

Output only. [Output Only] The managed ruleset identifier that can be configured in Security Policy rules.

optional string ruleset_id = 131214356;

Returns
Type Description
String

The rulesetId.

getRulesetIdBytes()

public ByteString getRulesetIdBytes()

Output only. [Output Only] The managed ruleset identifier that can be configured in Security Policy rules.

optional string ruleset_id = 131214356;

Returns
Type Description
ByteString

The bytes for rulesetId.

public String getSelfLink()

Output only. [Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

Output only. [Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
ByteString

The bytes for selfLink.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasChangeLog()

public boolean hasChangeLog()

Output only. [Output Only] The change log for this managed ruleset.

optional string change_log = 15896117;

Returns
Type Description
boolean

Whether the changeLog field is set.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

Output only. [Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
boolean

Whether the creationTimestamp field is set.

hasDescription()

public boolean hasDescription()

[Output Only] An optional description of this resource.

optional string description = 422937596;

Returns
Type Description
boolean

Whether the description field is set.

hasId()

public boolean hasId()

Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.

optional uint64 id = 3355;

Returns
Type Description
boolean

Whether the id field is set.

hasName()

public boolean hasName()

Name of the resource. Generated internally when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasRulesetId()

public boolean hasRulesetId()

Output only. [Output Only] The managed ruleset identifier that can be configured in Security Policy rules.

optional string ruleset_id = 131214356;

Returns
Type Description
boolean

Whether the rulesetId field is set.

public boolean hasSelfLink()

Output only. [Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
boolean

Whether the selfLink field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ManagedRuleset.Builder newBuilderForType()
Returns
Type Description
ManagedRuleset.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ManagedRuleset.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ManagedRuleset.Builder
Overrides

toBuilder()

public ManagedRuleset.Builder toBuilder()
Returns
Type Description
ManagedRuleset.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException