Class SecurityPolicyRuleRateLimitOptionsThreshold.Builder (1.18.0)

public static final class SecurityPolicyRuleRateLimitOptionsThreshold.Builder extends GeneratedMessageV3.Builder<SecurityPolicyRuleRateLimitOptionsThreshold.Builder> implements SecurityPolicyRuleRateLimitOptionsThresholdOrBuilder

Protobuf type google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SecurityPolicyRuleRateLimitOptionsThreshold build()
Returns
TypeDescription
SecurityPolicyRuleRateLimitOptionsThreshold

buildPartial()

public SecurityPolicyRuleRateLimitOptionsThreshold buildPartial()
Returns
TypeDescription
SecurityPolicyRuleRateLimitOptionsThreshold

clear()

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

clearCount()

public SecurityPolicyRuleRateLimitOptionsThreshold.Builder clearCount()

Number of HTTP(S) requests for calculating the threshold.

optional int32 count = 94851343;

Returns
TypeDescription
SecurityPolicyRuleRateLimitOptionsThreshold.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIntervalSec()

public SecurityPolicyRuleRateLimitOptionsThreshold.Builder clearIntervalSec()

Interval over which the threshold is computed.

optional int32 interval_sec = 41084375;

Returns
TypeDescription
SecurityPolicyRuleRateLimitOptionsThreshold.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCount()

public int getCount()

Number of HTTP(S) requests for calculating the threshold.

optional int32 count = 94851343;

Returns
TypeDescription
int

The count.

getDefaultInstanceForType()

public SecurityPolicyRuleRateLimitOptionsThreshold getDefaultInstanceForType()
Returns
TypeDescription
SecurityPolicyRuleRateLimitOptionsThreshold

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIntervalSec()

public int getIntervalSec()

Interval over which the threshold is computed.

optional int32 interval_sec = 41084375;

Returns
TypeDescription
int

The intervalSec.

hasCount()

public boolean hasCount()

Number of HTTP(S) requests for calculating the threshold.

optional int32 count = 94851343;

Returns
TypeDescription
boolean

Whether the count field is set.

hasIntervalSec()

public boolean hasIntervalSec()

Interval over which the threshold is computed.

optional int32 interval_sec = 41084375;

Returns
TypeDescription
boolean

Whether the intervalSec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SecurityPolicyRuleRateLimitOptionsThreshold other)

public SecurityPolicyRuleRateLimitOptionsThreshold.Builder mergeFrom(SecurityPolicyRuleRateLimitOptionsThreshold other)
Parameter
NameDescription
otherSecurityPolicyRuleRateLimitOptionsThreshold
Returns
TypeDescription
SecurityPolicyRuleRateLimitOptionsThreshold.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCount(int value)

public SecurityPolicyRuleRateLimitOptionsThreshold.Builder setCount(int value)

Number of HTTP(S) requests for calculating the threshold.

optional int32 count = 94851343;

Parameter
NameDescription
valueint

The count to set.

Returns
TypeDescription
SecurityPolicyRuleRateLimitOptionsThreshold.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntervalSec(int value)

public SecurityPolicyRuleRateLimitOptionsThreshold.Builder setIntervalSec(int value)

Interval over which the threshold is computed.

optional int32 interval_sec = 41084375;

Parameter
NameDescription
valueint

The intervalSec to set.

Returns
TypeDescription
SecurityPolicyRuleRateLimitOptionsThreshold.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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