Class Requests.Builder (2.91.0)

public static final class Requests.Builder extends GeneratedMessage.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

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

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.

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.

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 GeneratedMessage.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

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.

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.