public static final class GrpcRoute.RetryPolicy.Builder extends GeneratedMessageV3.Builder<GrpcRoute.RetryPolicy.Builder> implements GrpcRoute.RetryPolicyOrBuilder
The specifications for retries.
Protobuf type google.cloud.networkservices.v1.GrpcRoute.RetryPolicy
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
addAllRetryConditions(Iterable<String> values)
public GrpcRoute.RetryPolicy.Builder addAllRetryConditions(Iterable<String> values)
- connect-failure: Router will retry on failures connecting to Backend
Services, for example due to connection timeouts.
- refused-stream: Router will retry if the backend service resets the
stream
with a REFUSED_STREAM error code. This reset type indicates that it is
safe to retry.
- cancelled: Router will retry if the gRPC status code in the response
header
is set to cancelled
- deadline-exceeded: Router will retry if the gRPC status code in the
response
header is set to deadline-exceeded
- resource-exhausted: Router will retry if the gRPC status code in the
response header is set to resource-exhausted
- unavailable: Router will retry if the gRPC status code in the response
header is set to unavailable
repeated string retry_conditions = 1;
Parameter |
Name |
Description |
values |
Iterable<String>
The retryConditions to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GrpcRoute.RetryPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addRetryConditions(String value)
public GrpcRoute.RetryPolicy.Builder addRetryConditions(String value)
- connect-failure: Router will retry on failures connecting to Backend
Services, for example due to connection timeouts.
- refused-stream: Router will retry if the backend service resets the
stream
with a REFUSED_STREAM error code. This reset type indicates that it is
safe to retry.
- cancelled: Router will retry if the gRPC status code in the response
header
is set to cancelled
- deadline-exceeded: Router will retry if the gRPC status code in the
response
header is set to deadline-exceeded
- resource-exhausted: Router will retry if the gRPC status code in the
response header is set to resource-exhausted
- unavailable: Router will retry if the gRPC status code in the response
header is set to unavailable
repeated string retry_conditions = 1;
Parameter |
Name |
Description |
value |
String
The retryConditions to add.
|
addRetryConditionsBytes(ByteString value)
public GrpcRoute.RetryPolicy.Builder addRetryConditionsBytes(ByteString value)
- connect-failure: Router will retry on failures connecting to Backend
Services, for example due to connection timeouts.
- refused-stream: Router will retry if the backend service resets the
stream
with a REFUSED_STREAM error code. This reset type indicates that it is
safe to retry.
- cancelled: Router will retry if the gRPC status code in the response
header
is set to cancelled
- deadline-exceeded: Router will retry if the gRPC status code in the
response
header is set to deadline-exceeded
- resource-exhausted: Router will retry if the gRPC status code in the
response header is set to resource-exhausted
- unavailable: Router will retry if the gRPC status code in the response
header is set to unavailable
repeated string retry_conditions = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes of the retryConditions to add.
|
build()
public GrpcRoute.RetryPolicy build()
buildPartial()
public GrpcRoute.RetryPolicy buildPartial()
clear()
public GrpcRoute.RetryPolicy.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GrpcRoute.RetryPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearNumRetries()
public GrpcRoute.RetryPolicy.Builder clearNumRetries()
Specifies the allowed number of retries. This number must be > 0. If not
specified, default to 1.
uint32 num_retries = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public GrpcRoute.RetryPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRetryConditions()
public GrpcRoute.RetryPolicy.Builder clearRetryConditions()
- connect-failure: Router will retry on failures connecting to Backend
Services, for example due to connection timeouts.
- refused-stream: Router will retry if the backend service resets the
stream
with a REFUSED_STREAM error code. This reset type indicates that it is
safe to retry.
- cancelled: Router will retry if the gRPC status code in the response
header
is set to cancelled
- deadline-exceeded: Router will retry if the gRPC status code in the
response
header is set to deadline-exceeded
- resource-exhausted: Router will retry if the gRPC status code in the
response header is set to resource-exhausted
- unavailable: Router will retry if the gRPC status code in the response
header is set to unavailable
repeated string retry_conditions = 1;
clone()
public GrpcRoute.RetryPolicy.Builder clone()
Overrides
getDefaultInstanceForType()
public GrpcRoute.RetryPolicy getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getNumRetries()
public int getNumRetries()
Specifies the allowed number of retries. This number must be > 0. If not
specified, default to 1.
uint32 num_retries = 2;
Returns |
Type |
Description |
int |
The numRetries.
|
getRetryConditions(int index)
public String getRetryConditions(int index)
- connect-failure: Router will retry on failures connecting to Backend
Services, for example due to connection timeouts.
- refused-stream: Router will retry if the backend service resets the
stream
with a REFUSED_STREAM error code. This reset type indicates that it is
safe to retry.
- cancelled: Router will retry if the gRPC status code in the response
header
is set to cancelled
- deadline-exceeded: Router will retry if the gRPC status code in the
response
header is set to deadline-exceeded
- resource-exhausted: Router will retry if the gRPC status code in the
response header is set to resource-exhausted
- unavailable: Router will retry if the gRPC status code in the response
header is set to unavailable
repeated string retry_conditions = 1;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The retryConditions at the given index.
|
getRetryConditionsBytes(int index)
public ByteString getRetryConditionsBytes(int index)
- connect-failure: Router will retry on failures connecting to Backend
Services, for example due to connection timeouts.
- refused-stream: Router will retry if the backend service resets the
stream
with a REFUSED_STREAM error code. This reset type indicates that it is
safe to retry.
- cancelled: Router will retry if the gRPC status code in the response
header
is set to cancelled
- deadline-exceeded: Router will retry if the gRPC status code in the
response
header is set to deadline-exceeded
- resource-exhausted: Router will retry if the gRPC status code in the
response header is set to resource-exhausted
- unavailable: Router will retry if the gRPC status code in the response
header is set to unavailable
repeated string retry_conditions = 1;
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the retryConditions at the given index.
|
getRetryConditionsCount()
public int getRetryConditionsCount()
- connect-failure: Router will retry on failures connecting to Backend
Services, for example due to connection timeouts.
- refused-stream: Router will retry if the backend service resets the
stream
with a REFUSED_STREAM error code. This reset type indicates that it is
safe to retry.
- cancelled: Router will retry if the gRPC status code in the response
header
is set to cancelled
- deadline-exceeded: Router will retry if the gRPC status code in the
response
header is set to deadline-exceeded
- resource-exhausted: Router will retry if the gRPC status code in the
response header is set to resource-exhausted
- unavailable: Router will retry if the gRPC status code in the response
header is set to unavailable
repeated string retry_conditions = 1;
Returns |
Type |
Description |
int |
The count of retryConditions.
|
getRetryConditionsList()
public ProtocolStringList getRetryConditionsList()
- connect-failure: Router will retry on failures connecting to Backend
Services, for example due to connection timeouts.
- refused-stream: Router will retry if the backend service resets the
stream
with a REFUSED_STREAM error code. This reset type indicates that it is
safe to retry.
- cancelled: Router will retry if the gRPC status code in the response
header
is set to cancelled
- deadline-exceeded: Router will retry if the gRPC status code in the
response
header is set to deadline-exceeded
- resource-exhausted: Router will retry if the gRPC status code in the
response header is set to resource-exhausted
- unavailable: Router will retry if the gRPC status code in the response
header is set to unavailable
repeated string retry_conditions = 1;
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(GrpcRoute.RetryPolicy other)
public GrpcRoute.RetryPolicy.Builder mergeFrom(GrpcRoute.RetryPolicy other)
public GrpcRoute.RetryPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GrpcRoute.RetryPolicy.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GrpcRoute.RetryPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GrpcRoute.RetryPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setNumRetries(int value)
public GrpcRoute.RetryPolicy.Builder setNumRetries(int value)
Specifies the allowed number of retries. This number must be > 0. If not
specified, default to 1.
uint32 num_retries = 2;
Parameter |
Name |
Description |
value |
int
The numRetries to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GrpcRoute.RetryPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRetryConditions(int index, String value)
public GrpcRoute.RetryPolicy.Builder setRetryConditions(int index, String value)
- connect-failure: Router will retry on failures connecting to Backend
Services, for example due to connection timeouts.
- refused-stream: Router will retry if the backend service resets the
stream
with a REFUSED_STREAM error code. This reset type indicates that it is
safe to retry.
- cancelled: Router will retry if the gRPC status code in the response
header
is set to cancelled
- deadline-exceeded: Router will retry if the gRPC status code in the
response
header is set to deadline-exceeded
- resource-exhausted: Router will retry if the gRPC status code in the
response header is set to resource-exhausted
- unavailable: Router will retry if the gRPC status code in the response
header is set to unavailable
repeated string retry_conditions = 1;
Parameters |
Name |
Description |
index |
int
The index to set the value at.
|
value |
String
The retryConditions to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final GrpcRoute.RetryPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides