public static final class ErrorBudget.Builder extends GeneratedMessage.Builder<ErrorBudget.Builder> implements ErrorBudgetOrBuilderThe 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ErrorBudget.BuilderImplements
ErrorBudgetOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ErrorBudget build()| Returns | |
|---|---|
| Type | Description |
ErrorBudget |
|
buildPartial()
public ErrorBudget buildPartial()| Returns | |
|---|---|
| Type | Description |
ErrorBudget |
|
clear()
public ErrorBudget.Builder clear()| Returns | |
|---|---|
| Type | Description |
ErrorBudget.Builder |
|
clearAllowedCount()
public ErrorBudget.Builder clearAllowedCount()Optional. The maximum number of failed units allowed in a location without pausing the rollout.
optional int32 allowed_count = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ErrorBudget.Builder |
This builder for chaining. |
clearAllowedPercentage()
public ErrorBudget.Builder clearAllowedPercentage()Optional. The maximum percentage of units allowed to fail (0, 100] within a location without pausing the rollout.
optional int32 allowed_percentage = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ErrorBudget.Builder |
This builder for chaining. |
getAllowedCount()
public int getAllowedCount()Optional. The maximum number of failed units allowed in a location without pausing the rollout.
optional 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.
optional int32 allowed_percentage = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The allowedPercentage. |
getDefaultInstanceForType()
public ErrorBudget getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ErrorBudget |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
hasAllowedCount()
public boolean hasAllowedCount()Optional. The maximum number of failed units allowed in a location without pausing the rollout.
optional int32 allowed_count = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the allowedCount field is set. |
hasAllowedPercentage()
public boolean hasAllowedPercentage()Optional. The maximum percentage of units allowed to fail (0, 100] within a location without pausing the rollout.
optional int32 allowed_percentage = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the allowedPercentage field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ErrorBudget other)
public ErrorBudget.Builder mergeFrom(ErrorBudget other)| Parameter | |
|---|---|
| Name | Description |
other |
ErrorBudget |
| Returns | |
|---|---|
| Type | Description |
ErrorBudget.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ErrorBudget.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ErrorBudget.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ErrorBudget.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ErrorBudget.Builder |
|
setAllowedCount(int value)
public ErrorBudget.Builder setAllowedCount(int value)Optional. The maximum number of failed units allowed in a location without pausing the rollout.
optional int32 allowed_count = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe allowedCount to set. |
| Returns | |
|---|---|
| Type | Description |
ErrorBudget.Builder |
This builder for chaining. |
setAllowedPercentage(int value)
public ErrorBudget.Builder setAllowedPercentage(int value)Optional. The maximum percentage of units allowed to fail (0, 100] within a location without pausing the rollout.
optional int32 allowed_percentage = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe allowedPercentage to set. |
| Returns | |
|---|---|
| Type | Description |
ErrorBudget.Builder |
This builder for chaining. |