Class GrpcService.EnvoyGrpc

    • Field Detail

      • CLUSTER_NAME_FIELD_NUMBER

        public static final int CLUSTER_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RETRY_POLICY_FIELD_NUMBER

        public static final int RETRY_POLICY_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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:
        getClusterName in interface GrpcService.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:
        getClusterNameBytes in interface GrpcService.EnvoyGrpcOrBuilder
        Returns:
        The bytes for clusterName.
      • 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:
        getAuthority in interface GrpcService.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:
        getAuthorityBytes in interface GrpcService.EnvoyGrpcOrBuilder
        Returns:
        The bytes for authority.
      • 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:
        hasRetryPolicy in interface GrpcService.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:
        getRetryPolicy in interface GrpcService.EnvoyGrpcOrBuilder
        Returns:
        The retryPolicy.
      • 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:
        getRetryPolicyOrBuilder in interface GrpcService.EnvoyGrpcOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static GrpcService.EnvoyGrpc parseFrom​(ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GrpcService.EnvoyGrpc parseFrom​(ByteBuffer data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GrpcService.EnvoyGrpc parseFrom​(com.google.protobuf.ByteString data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GrpcService.EnvoyGrpc parseFrom​(com.google.protobuf.ByteString data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GrpcService.EnvoyGrpc parseFrom​(byte[] data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static GrpcService.EnvoyGrpc parseFrom​(byte[] data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public GrpcService.EnvoyGrpc.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public GrpcService.EnvoyGrpc.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected GrpcService.EnvoyGrpc.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<GrpcService.EnvoyGrpc> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public GrpcService.EnvoyGrpc getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder