Class WafExpressionSet.Builder (1.6.0-beta)

public static final class WafExpressionSet.Builder extends GeneratedMessageV3.Builder<WafExpressionSet.Builder> implements WafExpressionSetOrBuilder

Protobuf type google.cloud.compute.v1.WafExpressionSet

Methods

addAliases(String value)

public WafExpressionSet.Builder addAliases(String value)

A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can't be used for more than one entity set.

repeated string aliases = 159207166;

Parameter
NameDescription
valueString

The aliases to add.

Returns
TypeDescription
WafExpressionSet.Builder

This builder for chaining.

addAliasesBytes(ByteString value)

public WafExpressionSet.Builder addAliasesBytes(ByteString value)

A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can't be used for more than one entity set.

repeated string aliases = 159207166;

Parameter
NameDescription
valueByteString

The bytes of the aliases to add.

Returns
TypeDescription
WafExpressionSet.Builder

This builder for chaining.

addAllAliases(Iterable<String> values)

public WafExpressionSet.Builder addAllAliases(Iterable<String> values)

A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can't be used for more than one entity set.

repeated string aliases = 159207166;

Parameter
NameDescription
valuesIterable<String>

The aliases to add.

Returns
TypeDescription
WafExpressionSet.Builder

This builder for chaining.

addAllExpressions(Iterable<? extends WafExpressionSetExpression> values)

public WafExpressionSet.Builder addAllExpressions(Iterable<? extends WafExpressionSetExpression> values)

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.WafExpressionSetExpression>
Returns
TypeDescription
WafExpressionSet.Builder

addExpressions(WafExpressionSetExpression value)

public WafExpressionSet.Builder addExpressions(WafExpressionSetExpression value)

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Parameter
NameDescription
valueWafExpressionSetExpression
Returns
TypeDescription
WafExpressionSet.Builder

addExpressions(WafExpressionSetExpression.Builder builderForValue)

public WafExpressionSet.Builder addExpressions(WafExpressionSetExpression.Builder builderForValue)

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Parameter
NameDescription
builderForValueWafExpressionSetExpression.Builder
Returns
TypeDescription
WafExpressionSet.Builder

addExpressions(int index, WafExpressionSetExpression value)

public WafExpressionSet.Builder addExpressions(int index, WafExpressionSetExpression value)

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Parameters
NameDescription
indexint
valueWafExpressionSetExpression
Returns
TypeDescription
WafExpressionSet.Builder

addExpressions(int index, WafExpressionSetExpression.Builder builderForValue)

public WafExpressionSet.Builder addExpressions(int index, WafExpressionSetExpression.Builder builderForValue)

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Parameters
NameDescription
indexint
builderForValueWafExpressionSetExpression.Builder
Returns
TypeDescription
WafExpressionSet.Builder

addExpressionsBuilder()

public WafExpressionSetExpression.Builder addExpressionsBuilder()

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Returns
TypeDescription
WafExpressionSetExpression.Builder

addExpressionsBuilder(int index)

public WafExpressionSetExpression.Builder addExpressionsBuilder(int index)

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Parameter
NameDescription
indexint
Returns
TypeDescription
WafExpressionSetExpression.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WafExpressionSet build()
Returns
TypeDescription
WafExpressionSet

buildPartial()

public WafExpressionSet buildPartial()
Returns
TypeDescription
WafExpressionSet

clear()

public WafExpressionSet.Builder clear()
Returns
TypeDescription
WafExpressionSet.Builder
Overrides

clearAliases()

public WafExpressionSet.Builder clearAliases()

A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can't be used for more than one entity set.

repeated string aliases = 159207166;

Returns
TypeDescription
WafExpressionSet.Builder

This builder for chaining.

clearExpressions()

public WafExpressionSet.Builder clearExpressions()

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Returns
TypeDescription
WafExpressionSet.Builder

clearField(Descriptors.FieldDescriptor field)

public WafExpressionSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
WafExpressionSet.Builder
Overrides

clearId()

public WafExpressionSet.Builder clearId()

Google specified expression set ID. The format should be: - E.g. XSS-20170329 required

optional string id = 3355;

Returns
TypeDescription
WafExpressionSet.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public WafExpressionSet.Builder clone()
Returns
TypeDescription
WafExpressionSet.Builder
Overrides

getAliases(int index)

public String getAliases(int index)

A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can't be used for more than one entity set.

repeated string aliases = 159207166;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The aliases at the given index.

getAliasesBytes(int index)

public ByteString getAliasesBytes(int index)

A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can't be used for more than one entity set.

repeated string aliases = 159207166;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the aliases at the given index.

getAliasesCount()

public int getAliasesCount()

A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can't be used for more than one entity set.

repeated string aliases = 159207166;

Returns
TypeDescription
int

The count of aliases.

getAliasesList()

public ProtocolStringList getAliasesList()

A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can't be used for more than one entity set.

repeated string aliases = 159207166;

Returns
TypeDescription
ProtocolStringList

A list containing the aliases.

getDefaultInstanceForType()

public WafExpressionSet getDefaultInstanceForType()
Returns
TypeDescription
WafExpressionSet

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpressions(int index)

public WafExpressionSetExpression getExpressions(int index)

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Parameter
NameDescription
indexint
Returns
TypeDescription
WafExpressionSetExpression

getExpressionsBuilder(int index)

public WafExpressionSetExpression.Builder getExpressionsBuilder(int index)

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Parameter
NameDescription
indexint
Returns
TypeDescription
WafExpressionSetExpression.Builder

getExpressionsBuilderList()

public List<WafExpressionSetExpression.Builder> getExpressionsBuilderList()

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Returns
TypeDescription
List<Builder>

getExpressionsCount()

public int getExpressionsCount()

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Returns
TypeDescription
int

getExpressionsList()

public List<WafExpressionSetExpression> getExpressionsList()

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Returns
TypeDescription
List<WafExpressionSetExpression>

getExpressionsOrBuilder(int index)

public WafExpressionSetExpressionOrBuilder getExpressionsOrBuilder(int index)

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Parameter
NameDescription
indexint
Returns
TypeDescription
WafExpressionSetExpressionOrBuilder

getExpressionsOrBuilderList()

public List<? extends WafExpressionSetExpressionOrBuilder> getExpressionsOrBuilderList()

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.WafExpressionSetExpressionOrBuilder>

getId()

public String getId()

Google specified expression set ID. The format should be: - E.g. XSS-20170329 required

optional string id = 3355;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Google specified expression set ID. The format should be: - E.g. XSS-20170329 required

optional string id = 3355;

Returns
TypeDescription
ByteString

The bytes for id.

hasId()

public boolean hasId()

Google specified expression set ID. The format should be: - E.g. XSS-20170329 required

optional string id = 3355;

Returns
TypeDescription
boolean

Whether the id field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WafExpressionSet other)

public WafExpressionSet.Builder mergeFrom(WafExpressionSet other)
Parameter
NameDescription
otherWafExpressionSet
Returns
TypeDescription
WafExpressionSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WafExpressionSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WafExpressionSet.Builder
Overrides

removeExpressions(int index)

public WafExpressionSet.Builder removeExpressions(int index)

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Parameter
NameDescription
indexint
Returns
TypeDescription
WafExpressionSet.Builder

setAliases(int index, String value)

public WafExpressionSet.Builder setAliases(int index, String value)

A list of alternate IDs. The format should be: - E.g. XSS-stable Generic suffix like "stable" is particularly useful if a policy likes to avail newer set of expressions without having to change the policy. A given alias name can't be used for more than one entity set.

repeated string aliases = 159207166;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The aliases to set.

Returns
TypeDescription
WafExpressionSet.Builder

This builder for chaining.

setExpressions(int index, WafExpressionSetExpression value)

public WafExpressionSet.Builder setExpressions(int index, WafExpressionSetExpression value)

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Parameters
NameDescription
indexint
valueWafExpressionSetExpression
Returns
TypeDescription
WafExpressionSet.Builder

setExpressions(int index, WafExpressionSetExpression.Builder builderForValue)

public WafExpressionSet.Builder setExpressions(int index, WafExpressionSetExpression.Builder builderForValue)

List of available expressions.

repeated .google.cloud.compute.v1.WafExpressionSetExpression expressions = 175554779;

Parameters
NameDescription
indexint
builderForValueWafExpressionSetExpression.Builder
Returns
TypeDescription
WafExpressionSet.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public WafExpressionSet.Builder setId(String value)

Google specified expression set ID. The format should be: - E.g. XSS-20170329 required

optional string id = 3355;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
WafExpressionSet.Builder

This builder for chaining.

setIdBytes(ByteString value)

public WafExpressionSet.Builder setIdBytes(ByteString value)

Google specified expression set ID. The format should be: - E.g. XSS-20170329 required

optional string id = 3355;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
WafExpressionSet.Builder

This builder for chaining.

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

public WafExpressionSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WafExpressionSet.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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