Class ErrorBudget (0.2.0)

public final class ErrorBudget extends GeneratedMessageV3 implements ErrorBudgetOrBuilder

The configuration for error budget. If the number of failed units exceeds max(allowed_count, allowed_ratio * total_units), the rollout will be paused.

Protobuf type google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget

Static Fields

ALLOWED_COUNT_FIELD_NUMBER

public static final int ALLOWED_COUNT_FIELD_NUMBER
Field Value
Type Description
int

ALLOWED_PERCENTAGE_FIELD_NUMBER

public static final int ALLOWED_PERCENTAGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ErrorBudget getDefaultInstance()
Returns
Type Description
ErrorBudget

getDescriptor()

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

newBuilder()

public static ErrorBudget.Builder newBuilder()
Returns
Type Description
ErrorBudget.Builder

newBuilder(ErrorBudget prototype)

public static ErrorBudget.Builder newBuilder(ErrorBudget prototype)
Parameter
Name Description
prototype ErrorBudget
Returns
Type Description
ErrorBudget.Builder

parseDelimitedFrom(InputStream input)

public static ErrorBudget parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ErrorBudget
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ErrorBudget parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorBudget
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ErrorBudget parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ErrorBudget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ErrorBudget parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorBudget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ErrorBudget parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ErrorBudget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ErrorBudget parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorBudget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ErrorBudget parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ErrorBudget
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ErrorBudget parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorBudget
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ErrorBudget parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ErrorBudget
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ErrorBudget parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorBudget
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ErrorBudget parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ErrorBudget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ErrorBudget parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorBudget
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ErrorBudget> parser()
Returns
Type Description
Parser<ErrorBudget>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAllowedCount()

public int getAllowedCount()

Optional. The maximum number of failed units allowed in a ___location without pausing the rollout.

int32 allowed_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The allowedCount.

getAllowedPercentage()

public int getAllowedPercentage()

Optional. The maximum percentage of units allowed to fail (0, 100] within a ___location without pausing the rollout.

int32 allowed_percentage = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The allowedPercentage.

getDefaultInstanceForType()

public ErrorBudget getDefaultInstanceForType()
Returns
Type Description
ErrorBudget

getParserForType()

public Parser<ErrorBudget> getParserForType()
Returns
Type Description
Parser<ErrorBudget>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ErrorBudget.Builder newBuilderForType()
Returns
Type Description
ErrorBudget.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ErrorBudget.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ErrorBudget.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ErrorBudget.Builder toBuilder()
Returns
Type Description
ErrorBudget.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException