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.v1.Requests
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Requests.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Requests buildPartial()
clear()
public Requests.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Requests.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLongTermAllowed()
public Requests.Builder clearLongTermAllowed()
Allowed RPS (requests per second) over the long term.
int32 long_term_allowed = 3;
clearLongTermDenied()
public Requests.Builder clearLongTermDenied()
Denied RPS (requests per second) over the long term.
int32 long_term_denied = 4;
clearOneof(Descriptors.OneofDescriptor oneof)
public Requests.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clearShortTermAllowed()
public Requests.Builder clearShortTermAllowed()
Allowed RPS (requests per second) in the short term.
int32 short_term_allowed = 2;
clone()
public Requests.Builder clone()
Overrides
getDefaultInstanceForType()
public Requests getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Requests other)
public Requests.Builder mergeFrom(Requests other)
Parameter |
Name |
Description |
other |
Requests
|
public Requests.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Requests.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Requests.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Requests.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Requests.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Requests.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides