public static final class ManagedRuleset.Builder extends GeneratedMessage.Builder<ManagedRuleset.Builder> implements ManagedRulesetOrBuilderRepresents 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ManagedRuleset.BuilderImplements
ManagedRulesetOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllRuleIds(Iterable<String> values)
public ManagedRuleset.Builder addAllRuleIds(Iterable<String> values)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 |
values |
Iterable<String>The ruleIds to add. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
addRuleIds(String value)
public ManagedRuleset.Builder addRuleIds(String value)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 |
value |
StringThe ruleIds to add. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
addRuleIdsBytes(ByteString value)
public ManagedRuleset.Builder addRuleIdsBytes(ByteString value)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 |
value |
ByteStringThe bytes of the ruleIds to add. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
build()
public ManagedRuleset build()| Returns | |
|---|---|
| Type | Description |
ManagedRuleset |
|
buildPartial()
public ManagedRuleset buildPartial()| Returns | |
|---|---|
| Type | Description |
ManagedRuleset |
|
clear()
public ManagedRuleset.Builder clear()| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
|
clearChangeLog()
public ManagedRuleset.Builder clearChangeLog()Output only. [Output Only] The change log for this managed ruleset.
optional string change_log = 15896117;
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
clearCreationTimestamp()
public ManagedRuleset.Builder clearCreationTimestamp()Output only. [Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
clearDescription()
public ManagedRuleset.Builder clearDescription()[Output Only] An optional description of this resource.
optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
clearId()
public ManagedRuleset.Builder clearId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
clearName()
public ManagedRuleset.Builder clearName() 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 |
ManagedRuleset.Builder |
This builder for chaining. |
clearRuleIds()
public ManagedRuleset.Builder clearRuleIds()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 |
ManagedRuleset.Builder |
This builder for chaining. |
clearRulesetId()
public ManagedRuleset.Builder clearRulesetId()Output only. [Output Only] The managed ruleset identifier that can be configured in Security Policy rules.
optional string ruleset_id = 131214356;
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
clearSelfLink()
public ManagedRuleset.Builder clearSelfLink()Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
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. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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 |
intThe 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 |
intThe 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. |
getSelfLink()
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. |
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. |
hasSelfLink()
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ManagedRuleset other)
public ManagedRuleset.Builder mergeFrom(ManagedRuleset other)| Parameter | |
|---|---|
| Name | Description |
other |
ManagedRuleset |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ManagedRuleset.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ManagedRuleset.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
|
setChangeLog(String value)
public ManagedRuleset.Builder setChangeLog(String value)Output only. [Output Only] The change log for this managed ruleset.
optional string change_log = 15896117;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe changeLog to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
setChangeLogBytes(ByteString value)
public ManagedRuleset.Builder setChangeLogBytes(ByteString value)Output only. [Output Only] The change log for this managed ruleset.
optional string change_log = 15896117;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for changeLog to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
setCreationTimestamp(String value)
public ManagedRuleset.Builder setCreationTimestamp(String value)Output only. [Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe creationTimestamp to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
setCreationTimestampBytes(ByteString value)
public ManagedRuleset.Builder setCreationTimestampBytes(ByteString value)Output only. [Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for creationTimestamp to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
setDescription(String value)
public ManagedRuleset.Builder setDescription(String value)[Output Only] An optional description of this resource.
optional string description = 422937596;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public ManagedRuleset.Builder setDescriptionBytes(ByteString value)[Output Only] An optional description of this resource.
optional string description = 422937596;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
setId(long value)
public ManagedRuleset.Builder setId(long value)Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe id to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
setName(String value)
public ManagedRuleset.Builder setName(String value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public ManagedRuleset.Builder setNameBytes(ByteString value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
setRuleIds(int index, String value)
public ManagedRuleset.Builder setRuleIds(int index, String value)Output only. [Output Only] The list of managed rule IDs that are included in this managed ruleset.
repeated string rule_ids = 226918133;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe ruleIds to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
setRulesetId(String value)
public ManagedRuleset.Builder setRulesetId(String value)Output only. [Output Only] The managed ruleset identifier that can be configured in Security Policy rules.
optional string ruleset_id = 131214356;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe rulesetId to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
setRulesetIdBytes(ByteString value)
public ManagedRuleset.Builder setRulesetIdBytes(ByteString value)Output only. [Output Only] The managed ruleset identifier that can be configured in Security Policy rules.
optional string ruleset_id = 131214356;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for rulesetId to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
setSelfLink(String value)
public ManagedRuleset.Builder setSelfLink(String value)Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe selfLink to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |
setSelfLinkBytes(ByteString value)
public ManagedRuleset.Builder setSelfLinkBytes(ByteString value)Output only. [Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for selfLink to set. |
| Returns | |
|---|---|
| Type | Description |
ManagedRuleset.Builder |
This builder for chaining. |