Class GrpcService.EnvoyGrpc.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.EnvoyGrpc.Builder>
-
- io.envoyproxy.envoy.config.core.v3.GrpcService.EnvoyGrpc.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GrpcService.EnvoyGrpcOrBuilder,Cloneable
- Enclosing class:
- GrpcService.EnvoyGrpc
public static final class GrpcService.EnvoyGrpc.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.EnvoyGrpc.Builder> implements GrpcService.EnvoyGrpcOrBuilder
Protobuf typeenvoy.config.core.v3.GrpcService.EnvoyGrpc
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GrpcService.EnvoyGrpc.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GrpcService.EnvoyGrpcbuild()GrpcService.EnvoyGrpcbuildPartial()GrpcService.EnvoyGrpc.Builderclear()GrpcService.EnvoyGrpc.BuilderclearAuthority()The ``:authority`` header in the grpc request.GrpcService.EnvoyGrpc.BuilderclearClusterName()The name of the upstream gRPC cluster.GrpcService.EnvoyGrpc.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GrpcService.EnvoyGrpc.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GrpcService.EnvoyGrpc.BuilderclearRetryPolicy()Indicates the retry policy for re-establishing the gRPC stream This field is optional.GrpcService.EnvoyGrpc.Builderclone()StringgetAuthority()The ``:authority`` header in the grpc request.com.google.protobuf.ByteStringgetAuthorityBytes()The ``:authority`` header in the grpc request.StringgetClusterName()The name of the upstream gRPC cluster.com.google.protobuf.ByteStringgetClusterNameBytes()The name of the upstream gRPC cluster.GrpcService.EnvoyGrpcgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()RetryPolicygetRetryPolicy()Indicates the retry policy for re-establishing the gRPC stream This field is optional.RetryPolicy.BuildergetRetryPolicyBuilder()Indicates the retry policy for re-establishing the gRPC stream This field is optional.RetryPolicyOrBuildergetRetryPolicyOrBuilder()Indicates the retry policy for re-establishing the gRPC stream This field is optional.booleanhasRetryPolicy()Indicates the retry policy for re-establishing the gRPC stream This field is optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GrpcService.EnvoyGrpc.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GrpcService.EnvoyGrpc.BuildermergeFrom(com.google.protobuf.Message other)GrpcService.EnvoyGrpc.BuildermergeFrom(GrpcService.EnvoyGrpc other)GrpcService.EnvoyGrpc.BuildermergeRetryPolicy(RetryPolicy value)Indicates the retry policy for re-establishing the gRPC stream This field is optional.GrpcService.EnvoyGrpc.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GrpcService.EnvoyGrpc.BuildersetAuthority(String value)The ``:authority`` header in the grpc request.GrpcService.EnvoyGrpc.BuildersetAuthorityBytes(com.google.protobuf.ByteString value)The ``:authority`` header in the grpc request.GrpcService.EnvoyGrpc.BuildersetClusterName(String value)The name of the upstream gRPC cluster.GrpcService.EnvoyGrpc.BuildersetClusterNameBytes(com.google.protobuf.ByteString value)The name of the upstream gRPC cluster.GrpcService.EnvoyGrpc.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)GrpcService.EnvoyGrpc.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)GrpcService.EnvoyGrpc.BuildersetRetryPolicy(RetryPolicy value)Indicates the retry policy for re-establishing the gRPC stream This field is optional.GrpcService.EnvoyGrpc.BuildersetRetryPolicy(RetryPolicy.Builder builderForValue)Indicates the retry policy for re-establishing the gRPC stream This field is optional.GrpcService.EnvoyGrpc.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.EnvoyGrpc.Builder>
-
clear
public GrpcService.EnvoyGrpc.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.EnvoyGrpc.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.EnvoyGrpc.Builder>
-
getDefaultInstanceForType
public GrpcService.EnvoyGrpc getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GrpcService.EnvoyGrpc build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GrpcService.EnvoyGrpc buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GrpcService.EnvoyGrpc.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.EnvoyGrpc.Builder>
-
setField
public GrpcService.EnvoyGrpc.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.EnvoyGrpc.Builder>
-
clearField
public GrpcService.EnvoyGrpc.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.EnvoyGrpc.Builder>
-
clearOneof
public GrpcService.EnvoyGrpc.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.EnvoyGrpc.Builder>
-
setRepeatedField
public GrpcService.EnvoyGrpc.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.EnvoyGrpc.Builder>
-
addRepeatedField
public GrpcService.EnvoyGrpc.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.EnvoyGrpc.Builder>
-
mergeFrom
public GrpcService.EnvoyGrpc.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GrpcService.EnvoyGrpc.Builder>
-
mergeFrom
public GrpcService.EnvoyGrpc.Builder mergeFrom(GrpcService.EnvoyGrpc other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.EnvoyGrpc.Builder>
-
mergeFrom
public GrpcService.EnvoyGrpc.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GrpcService.EnvoyGrpc.Builder>- Throws:
IOException
-
getClusterName
public String getClusterName()
The name of the upstream gRPC cluster. SSL credentials will be supplied in the :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` :ref:`transport_socket <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket>`.
string cluster_name = 1 [(.validate.rules) = { ... }- Specified by:
getClusterNamein interfaceGrpcService.EnvoyGrpcOrBuilder- Returns:
- The clusterName.
-
getClusterNameBytes
public com.google.protobuf.ByteString getClusterNameBytes()
The name of the upstream gRPC cluster. SSL credentials will be supplied in the :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` :ref:`transport_socket <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket>`.
string cluster_name = 1 [(.validate.rules) = { ... }- Specified by:
getClusterNameBytesin interfaceGrpcService.EnvoyGrpcOrBuilder- Returns:
- The bytes for clusterName.
-
setClusterName
public GrpcService.EnvoyGrpc.Builder setClusterName(String value)
The name of the upstream gRPC cluster. SSL credentials will be supplied in the :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` :ref:`transport_socket <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket>`.
string cluster_name = 1 [(.validate.rules) = { ... }- Parameters:
value- The clusterName to set.- Returns:
- This builder for chaining.
-
clearClusterName
public GrpcService.EnvoyGrpc.Builder clearClusterName()
The name of the upstream gRPC cluster. SSL credentials will be supplied in the :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` :ref:`transport_socket <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket>`.
string cluster_name = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setClusterNameBytes
public GrpcService.EnvoyGrpc.Builder setClusterNameBytes(com.google.protobuf.ByteString value)
The name of the upstream gRPC cluster. SSL credentials will be supplied in the :ref:`Cluster <envoy_v3_api_msg_config.cluster.v3.Cluster>` :ref:`transport_socket <envoy_v3_api_field_config.cluster.v3.Cluster.transport_socket>`.
string cluster_name = 1 [(.validate.rules) = { ... }- Parameters:
value- The bytes for clusterName to set.- Returns:
- This builder for chaining.
-
getAuthority
public String getAuthority()
The ``:authority`` header in the grpc request. If this field is not set, the authority header value will be ``cluster_name``. Note that this authority does not override the SNI. The SNI is provided by the transport socket of the cluster.
string authority = 2 [(.validate.rules) = { ... }- Specified by:
getAuthorityin interfaceGrpcService.EnvoyGrpcOrBuilder- Returns:
- The authority.
-
getAuthorityBytes
public com.google.protobuf.ByteString getAuthorityBytes()
The ``:authority`` header in the grpc request. If this field is not set, the authority header value will be ``cluster_name``. Note that this authority does not override the SNI. The SNI is provided by the transport socket of the cluster.
string authority = 2 [(.validate.rules) = { ... }- Specified by:
getAuthorityBytesin interfaceGrpcService.EnvoyGrpcOrBuilder- Returns:
- The bytes for authority.
-
setAuthority
public GrpcService.EnvoyGrpc.Builder setAuthority(String value)
The ``:authority`` header in the grpc request. If this field is not set, the authority header value will be ``cluster_name``. Note that this authority does not override the SNI. The SNI is provided by the transport socket of the cluster.
string authority = 2 [(.validate.rules) = { ... }- Parameters:
value- The authority to set.- Returns:
- This builder for chaining.
-
clearAuthority
public GrpcService.EnvoyGrpc.Builder clearAuthority()
The ``:authority`` header in the grpc request. If this field is not set, the authority header value will be ``cluster_name``. Note that this authority does not override the SNI. The SNI is provided by the transport socket of the cluster.
string authority = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
setAuthorityBytes
public GrpcService.EnvoyGrpc.Builder setAuthorityBytes(com.google.protobuf.ByteString value)
The ``:authority`` header in the grpc request. If this field is not set, the authority header value will be ``cluster_name``. Note that this authority does not override the SNI. The SNI is provided by the transport socket of the cluster.
string authority = 2 [(.validate.rules) = { ... }- Parameters:
value- The bytes for authority to set.- Returns:
- This builder for chaining.
-
hasRetryPolicy
public boolean hasRetryPolicy()
Indicates the retry policy for re-establishing the gRPC stream This field is optional. If max interval is not provided, it will be set to ten times the provided base interval. Currently only supported for xDS gRPC streams. If not set, xDS gRPC streams default base interval:500ms, maximum interval:30s will be applied.
.envoy.config.core.v3.RetryPolicy retry_policy = 3;- Specified by:
hasRetryPolicyin interfaceGrpcService.EnvoyGrpcOrBuilder- Returns:
- Whether the retryPolicy field is set.
-
getRetryPolicy
public RetryPolicy getRetryPolicy()
Indicates the retry policy for re-establishing the gRPC stream This field is optional. If max interval is not provided, it will be set to ten times the provided base interval. Currently only supported for xDS gRPC streams. If not set, xDS gRPC streams default base interval:500ms, maximum interval:30s will be applied.
.envoy.config.core.v3.RetryPolicy retry_policy = 3;- Specified by:
getRetryPolicyin interfaceGrpcService.EnvoyGrpcOrBuilder- Returns:
- The retryPolicy.
-
setRetryPolicy
public GrpcService.EnvoyGrpc.Builder setRetryPolicy(RetryPolicy value)
Indicates the retry policy for re-establishing the gRPC stream This field is optional. If max interval is not provided, it will be set to ten times the provided base interval. Currently only supported for xDS gRPC streams. If not set, xDS gRPC streams default base interval:500ms, maximum interval:30s will be applied.
.envoy.config.core.v3.RetryPolicy retry_policy = 3;
-
setRetryPolicy
public GrpcService.EnvoyGrpc.Builder setRetryPolicy(RetryPolicy.Builder builderForValue)
Indicates the retry policy for re-establishing the gRPC stream This field is optional. If max interval is not provided, it will be set to ten times the provided base interval. Currently only supported for xDS gRPC streams. If not set, xDS gRPC streams default base interval:500ms, maximum interval:30s will be applied.
.envoy.config.core.v3.RetryPolicy retry_policy = 3;
-
mergeRetryPolicy
public GrpcService.EnvoyGrpc.Builder mergeRetryPolicy(RetryPolicy value)
Indicates the retry policy for re-establishing the gRPC stream This field is optional. If max interval is not provided, it will be set to ten times the provided base interval. Currently only supported for xDS gRPC streams. If not set, xDS gRPC streams default base interval:500ms, maximum interval:30s will be applied.
.envoy.config.core.v3.RetryPolicy retry_policy = 3;
-
clearRetryPolicy
public GrpcService.EnvoyGrpc.Builder clearRetryPolicy()
Indicates the retry policy for re-establishing the gRPC stream This field is optional. If max interval is not provided, it will be set to ten times the provided base interval. Currently only supported for xDS gRPC streams. If not set, xDS gRPC streams default base interval:500ms, maximum interval:30s will be applied.
.envoy.config.core.v3.RetryPolicy retry_policy = 3;
-
getRetryPolicyBuilder
public RetryPolicy.Builder getRetryPolicyBuilder()
Indicates the retry policy for re-establishing the gRPC stream This field is optional. If max interval is not provided, it will be set to ten times the provided base interval. Currently only supported for xDS gRPC streams. If not set, xDS gRPC streams default base interval:500ms, maximum interval:30s will be applied.
.envoy.config.core.v3.RetryPolicy retry_policy = 3;
-
getRetryPolicyOrBuilder
public RetryPolicyOrBuilder getRetryPolicyOrBuilder()
Indicates the retry policy for re-establishing the gRPC stream This field is optional. If max interval is not provided, it will be set to ten times the provided base interval. Currently only supported for xDS gRPC streams. If not set, xDS gRPC streams default base interval:500ms, maximum interval:30s will be applied.
.envoy.config.core.v3.RetryPolicy retry_policy = 3;- Specified by:
getRetryPolicyOrBuilderin interfaceGrpcService.EnvoyGrpcOrBuilder
-
setUnknownFields
public final GrpcService.EnvoyGrpc.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.EnvoyGrpc.Builder>
-
mergeUnknownFields
public final GrpcService.EnvoyGrpc.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcService.EnvoyGrpc.Builder>
-
-