Class Requests.Builder (2.61.0)

public static final class Requests.Builder extends GeneratedMessageV3.Builder<Requests.Builder> implements RequestsOrBuilder

Information about the requests relevant to the finding.

Protobuf type google.cloud.securitycenter.v2.Requests

Implements

RequestsOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Requests.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Requests.Builder
Overrides

build()

public Requests build()
Returns
Type Description
Requests

buildPartial()

public Requests buildPartial()
Returns
Type Description
Requests

clear()

public Requests.Builder clear()
Returns
Type Description
Requests.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Requests.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Requests.Builder
Overrides

clearLongTermAllowed()

public Requests.Builder clearLongTermAllowed()

Allowed RPS (requests per second) over the long term.

int32 long_term_allowed = 3;

Returns
Type Description
Requests.Builder

This builder for chaining.

clearLongTermDenied()

public Requests.Builder clearLongTermDenied()

Denied RPS (requests per second) over the long term.

int32 long_term_denied = 4;

Returns
Type Description
Requests.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Requests.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Requests.Builder
Overrides

clearRatio()

public Requests.Builder clearRatio()

For 'Increasing deny ratio', the ratio is the denied traffic divided by the allowed traffic. For 'Allowed traffic spike', the ratio is the allowed traffic in the short term divided by allowed traffic in the long term.

double ratio = 1;

Returns
Type Description
Requests.Builder

This builder for chaining.

clearShortTermAllowed()

public Requests.Builder clearShortTermAllowed()

Allowed RPS (requests per second) in the short term.

int32 short_term_allowed = 2;

Returns
Type Description
Requests.Builder

This builder for chaining.

clone()

public Requests.Builder clone()
Returns
Type Description
Requests.Builder
Overrides

getDefaultInstanceForType()

public Requests getDefaultInstanceForType()
Returns
Type Description
Requests

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLongTermAllowed()

public int getLongTermAllowed()

Allowed RPS (requests per second) over the long term.

int32 long_term_allowed = 3;

Returns
Type Description
int

The longTermAllowed.

getLongTermDenied()

public int getLongTermDenied()

Denied RPS (requests per second) over the long term.

int32 long_term_denied = 4;

Returns
Type Description
int

The longTermDenied.

getRatio()

public double getRatio()

For 'Increasing deny ratio', the ratio is the denied traffic divided by the allowed traffic. For 'Allowed traffic spike', the ratio is the allowed traffic in the short term divided by allowed traffic in the long term.

double ratio = 1;

Returns
Type Description
double

The ratio.

getShortTermAllowed()

public int getShortTermAllowed()

Allowed RPS (requests per second) in the short term.

int32 short_term_allowed = 2;

Returns
Type Description
int

The shortTermAllowed.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Requests other)

public Requests.Builder mergeFrom(Requests other)
Parameter
Name Description
other Requests
Returns
Type Description
Requests.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Requests.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Requests.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Requests.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Requests.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Requests.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Requests.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Requests.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Requests.Builder
Overrides

setLongTermAllowed(int value)

public Requests.Builder setLongTermAllowed(int value)

Allowed RPS (requests per second) over the long term.

int32 long_term_allowed = 3;

Parameter
Name Description
value int

The longTermAllowed to set.

Returns
Type Description
Requests.Builder

This builder for chaining.

setLongTermDenied(int value)

public Requests.Builder setLongTermDenied(int value)

Denied RPS (requests per second) over the long term.

int32 long_term_denied = 4;

Parameter
Name Description
value int

The longTermDenied to set.

Returns
Type Description
Requests.Builder

This builder for chaining.

setRatio(double value)

public Requests.Builder setRatio(double value)

For 'Increasing deny ratio', the ratio is the denied traffic divided by the allowed traffic. For 'Allowed traffic spike', the ratio is the allowed traffic in the short term divided by allowed traffic in the long term.

double ratio = 1;

Parameter
Name Description
value double

The ratio to set.

Returns
Type Description
Requests.Builder

This builder for chaining.

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

public Requests.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Requests.Builder
Overrides

setShortTermAllowed(int value)

public Requests.Builder setShortTermAllowed(int value)

Allowed RPS (requests per second) in the short term.

int32 short_term_allowed = 2;

Parameter
Name Description
value int

The shortTermAllowed to set.

Returns
Type Description
Requests.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Requests.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Requests.Builder
Overrides