Class GrpcService.GoogleGrpc.Builder

    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GrpcService.GoogleGrpc.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public GrpcService.GoogleGrpc.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<GrpcService.GoogleGrpc.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GrpcService.GoogleGrpc.Builder>
      • getDefaultInstanceForType

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

        public GrpcService.GoogleGrpc build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public GrpcService.GoogleGrpc buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GrpcService.GoogleGrpc.Builder>
      • mergeFrom

        public GrpcService.GoogleGrpc.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GrpcService.GoogleGrpc.Builder>
        Throws:
        java.io.IOException
      • getTargetUri

        public java.lang.String getTargetUri()
         The target URI when using the `Google C++ gRPC client
         <https://github.com/grpc/grpc>`_. SSL credentials will be supplied in
         :ref:`channel_credentials <envoy_v3_api_field_config.core.v3.GrpcService.GoogleGrpc.channel_credentials>`.
         
        string target_uri = 1 [(.validate.rules) = { ... }
        Specified by:
        getTargetUri in interface GrpcService.GoogleGrpcOrBuilder
        Returns:
        The targetUri.
      • getTargetUriBytes

        public com.google.protobuf.ByteString getTargetUriBytes()
         The target URI when using the `Google C++ gRPC client
         <https://github.com/grpc/grpc>`_. SSL credentials will be supplied in
         :ref:`channel_credentials <envoy_v3_api_field_config.core.v3.GrpcService.GoogleGrpc.channel_credentials>`.
         
        string target_uri = 1 [(.validate.rules) = { ... }
        Specified by:
        getTargetUriBytes in interface GrpcService.GoogleGrpcOrBuilder
        Returns:
        The bytes for targetUri.
      • setTargetUri

        public GrpcService.GoogleGrpc.Builder setTargetUri​(java.lang.String value)
         The target URI when using the `Google C++ gRPC client
         <https://github.com/grpc/grpc>`_. SSL credentials will be supplied in
         :ref:`channel_credentials <envoy_v3_api_field_config.core.v3.GrpcService.GoogleGrpc.channel_credentials>`.
         
        string target_uri = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The targetUri to set.
        Returns:
        This builder for chaining.
      • clearTargetUri

        public GrpcService.GoogleGrpc.Builder clearTargetUri()
         The target URI when using the `Google C++ gRPC client
         <https://github.com/grpc/grpc>`_. SSL credentials will be supplied in
         :ref:`channel_credentials <envoy_v3_api_field_config.core.v3.GrpcService.GoogleGrpc.channel_credentials>`.
         
        string target_uri = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setTargetUriBytes

        public GrpcService.GoogleGrpc.Builder setTargetUriBytes​(com.google.protobuf.ByteString value)
         The target URI when using the `Google C++ gRPC client
         <https://github.com/grpc/grpc>`_. SSL credentials will be supplied in
         :ref:`channel_credentials <envoy_v3_api_field_config.core.v3.GrpcService.GoogleGrpc.channel_credentials>`.
         
        string target_uri = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for targetUri to set.
        Returns:
        This builder for chaining.
      • hasChannelCredentials

        public boolean hasChannelCredentials()
        .envoy.config.core.v3.GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2;
        Specified by:
        hasChannelCredentials in interface GrpcService.GoogleGrpcOrBuilder
        Returns:
        Whether the channelCredentials field is set.
      • clearChannelCredentials

        public GrpcService.GoogleGrpc.Builder clearChannelCredentials()
        .envoy.config.core.v3.GrpcService.GoogleGrpc.ChannelCredentials channel_credentials = 2;
      • ensureCallCredentialsIsMutable

        private void ensureCallCredentialsIsMutable()
      • getCallCredentialsCount

        public int getCallCredentialsCount()
         A set of call credentials that can be composed with `channel credentials
         <https://grpc.io/docs/guides/auth.html#credential-types>`_.
         
        repeated .envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials call_credentials = 3;
        Specified by:
        getCallCredentialsCount in interface GrpcService.GoogleGrpcOrBuilder
      • setCallCredentials

        public GrpcService.GoogleGrpc.Builder setCallCredentials​(int index,
                                                                 GrpcService.GoogleGrpc.CallCredentials value)
         A set of call credentials that can be composed with `channel credentials
         <https://grpc.io/docs/guides/auth.html#credential-types>`_.
         
        repeated .envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials call_credentials = 3;
      • setCallCredentials

        public GrpcService.GoogleGrpc.Builder setCallCredentials​(int index,
                                                                 GrpcService.GoogleGrpc.CallCredentials.Builder builderForValue)
         A set of call credentials that can be composed with `channel credentials
         <https://grpc.io/docs/guides/auth.html#credential-types>`_.
         
        repeated .envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials call_credentials = 3;
      • addCallCredentials

        public GrpcService.GoogleGrpc.Builder addCallCredentials​(GrpcService.GoogleGrpc.CallCredentials value)
         A set of call credentials that can be composed with `channel credentials
         <https://grpc.io/docs/guides/auth.html#credential-types>`_.
         
        repeated .envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials call_credentials = 3;
      • addCallCredentials

        public GrpcService.GoogleGrpc.Builder addCallCredentials​(int index,
                                                                 GrpcService.GoogleGrpc.CallCredentials value)
         A set of call credentials that can be composed with `channel credentials
         <https://grpc.io/docs/guides/auth.html#credential-types>`_.
         
        repeated .envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials call_credentials = 3;
      • addCallCredentials

        public GrpcService.GoogleGrpc.Builder addCallCredentials​(int index,
                                                                 GrpcService.GoogleGrpc.CallCredentials.Builder builderForValue)
         A set of call credentials that can be composed with `channel credentials
         <https://grpc.io/docs/guides/auth.html#credential-types>`_.
         
        repeated .envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials call_credentials = 3;
      • addAllCallCredentials

        public GrpcService.GoogleGrpc.Builder addAllCallCredentials​(java.lang.Iterable<? extends GrpcService.GoogleGrpc.CallCredentials> values)
         A set of call credentials that can be composed with `channel credentials
         <https://grpc.io/docs/guides/auth.html#credential-types>`_.
         
        repeated .envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials call_credentials = 3;
      • clearCallCredentials

        public GrpcService.GoogleGrpc.Builder clearCallCredentials()
         A set of call credentials that can be composed with `channel credentials
         <https://grpc.io/docs/guides/auth.html#credential-types>`_.
         
        repeated .envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials call_credentials = 3;
      • removeCallCredentials

        public GrpcService.GoogleGrpc.Builder removeCallCredentials​(int index)
         A set of call credentials that can be composed with `channel credentials
         <https://grpc.io/docs/guides/auth.html#credential-types>`_.
         
        repeated .envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials call_credentials = 3;
      • getCallCredentialsBuilder

        public GrpcService.GoogleGrpc.CallCredentials.Builder getCallCredentialsBuilder​(int index)
         A set of call credentials that can be composed with `channel credentials
         <https://grpc.io/docs/guides/auth.html#credential-types>`_.
         
        repeated .envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials call_credentials = 3;
      • addCallCredentialsBuilder

        public GrpcService.GoogleGrpc.CallCredentials.Builder addCallCredentialsBuilder()
         A set of call credentials that can be composed with `channel credentials
         <https://grpc.io/docs/guides/auth.html#credential-types>`_.
         
        repeated .envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials call_credentials = 3;
      • addCallCredentialsBuilder

        public GrpcService.GoogleGrpc.CallCredentials.Builder addCallCredentialsBuilder​(int index)
         A set of call credentials that can be composed with `channel credentials
         <https://grpc.io/docs/guides/auth.html#credential-types>`_.
         
        repeated .envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials call_credentials = 3;
      • getCallCredentialsBuilderList

        public java.util.List<GrpcService.GoogleGrpc.CallCredentials.Builder> getCallCredentialsBuilderList()
         A set of call credentials that can be composed with `channel credentials
         <https://grpc.io/docs/guides/auth.html#credential-types>`_.
         
        repeated .envoy.config.core.v3.GrpcService.GoogleGrpc.CallCredentials call_credentials = 3;
      • getStatPrefix

        public java.lang.String getStatPrefix()
         The human readable prefix to use when emitting statistics for the gRPC
         service.
        
         .. csv-table::
         :header: Name, Type, Description
         :widths: 1, 1, 2
        
         streams_total, Counter, Total number of streams opened
         streams_closed_<gRPC status code>, Counter, Total streams closed with <gRPC status code>
         
        string stat_prefix = 4 [(.validate.rules) = { ... }
        Specified by:
        getStatPrefix in interface GrpcService.GoogleGrpcOrBuilder
        Returns:
        The statPrefix.
      • getStatPrefixBytes

        public com.google.protobuf.ByteString getStatPrefixBytes()
         The human readable prefix to use when emitting statistics for the gRPC
         service.
        
         .. csv-table::
         :header: Name, Type, Description
         :widths: 1, 1, 2
        
         streams_total, Counter, Total number of streams opened
         streams_closed_<gRPC status code>, Counter, Total streams closed with <gRPC status code>
         
        string stat_prefix = 4 [(.validate.rules) = { ... }
        Specified by:
        getStatPrefixBytes in interface GrpcService.GoogleGrpcOrBuilder
        Returns:
        The bytes for statPrefix.
      • setStatPrefix

        public GrpcService.GoogleGrpc.Builder setStatPrefix​(java.lang.String value)
         The human readable prefix to use when emitting statistics for the gRPC
         service.
        
         .. csv-table::
         :header: Name, Type, Description
         :widths: 1, 1, 2
        
         streams_total, Counter, Total number of streams opened
         streams_closed_<gRPC status code>, Counter, Total streams closed with <gRPC status code>
         
        string stat_prefix = 4 [(.validate.rules) = { ... }
        Parameters:
        value - The statPrefix to set.
        Returns:
        This builder for chaining.
      • clearStatPrefix

        public GrpcService.GoogleGrpc.Builder clearStatPrefix()
         The human readable prefix to use when emitting statistics for the gRPC
         service.
        
         .. csv-table::
         :header: Name, Type, Description
         :widths: 1, 1, 2
        
         streams_total, Counter, Total number of streams opened
         streams_closed_<gRPC status code>, Counter, Total streams closed with <gRPC status code>
         
        string stat_prefix = 4 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setStatPrefixBytes

        public GrpcService.GoogleGrpc.Builder setStatPrefixBytes​(com.google.protobuf.ByteString value)
         The human readable prefix to use when emitting statistics for the gRPC
         service.
        
         .. csv-table::
         :header: Name, Type, Description
         :widths: 1, 1, 2
        
         streams_total, Counter, Total number of streams opened
         streams_closed_<gRPC status code>, Counter, Total streams closed with <gRPC status code>
         
        string stat_prefix = 4 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for statPrefix to set.
        Returns:
        This builder for chaining.
      • getCredentialsFactoryName

        public java.lang.String getCredentialsFactoryName()
         The name of the Google gRPC credentials factory to use. This must have been registered with
         Envoy. If this is empty, a default credentials factory will be used that sets up channel
         credentials based on other configuration parameters.
         
        string credentials_factory_name = 5;
        Specified by:
        getCredentialsFactoryName in interface GrpcService.GoogleGrpcOrBuilder
        Returns:
        The credentialsFactoryName.
      • getCredentialsFactoryNameBytes

        public com.google.protobuf.ByteString getCredentialsFactoryNameBytes()
         The name of the Google gRPC credentials factory to use. This must have been registered with
         Envoy. If this is empty, a default credentials factory will be used that sets up channel
         credentials based on other configuration parameters.
         
        string credentials_factory_name = 5;
        Specified by:
        getCredentialsFactoryNameBytes in interface GrpcService.GoogleGrpcOrBuilder
        Returns:
        The bytes for credentialsFactoryName.
      • setCredentialsFactoryName

        public GrpcService.GoogleGrpc.Builder setCredentialsFactoryName​(java.lang.String value)
         The name of the Google gRPC credentials factory to use. This must have been registered with
         Envoy. If this is empty, a default credentials factory will be used that sets up channel
         credentials based on other configuration parameters.
         
        string credentials_factory_name = 5;
        Parameters:
        value - The credentialsFactoryName to set.
        Returns:
        This builder for chaining.
      • clearCredentialsFactoryName

        public GrpcService.GoogleGrpc.Builder clearCredentialsFactoryName()
         The name of the Google gRPC credentials factory to use. This must have been registered with
         Envoy. If this is empty, a default credentials factory will be used that sets up channel
         credentials based on other configuration parameters.
         
        string credentials_factory_name = 5;
        Returns:
        This builder for chaining.
      • setCredentialsFactoryNameBytes

        public GrpcService.GoogleGrpc.Builder setCredentialsFactoryNameBytes​(com.google.protobuf.ByteString value)
         The name of the Google gRPC credentials factory to use. This must have been registered with
         Envoy. If this is empty, a default credentials factory will be used that sets up channel
         credentials based on other configuration parameters.
         
        string credentials_factory_name = 5;
        Parameters:
        value - The bytes for credentialsFactoryName to set.
        Returns:
        This builder for chaining.
      • hasConfig

        public boolean hasConfig()
         Additional configuration for site-specific customizations of the Google
         gRPC library.
         
        .google.protobuf.Struct config = 6;
        Specified by:
        hasConfig in interface GrpcService.GoogleGrpcOrBuilder
        Returns:
        Whether the config field is set.
      • getConfig

        public com.google.protobuf.Struct getConfig()
         Additional configuration for site-specific customizations of the Google
         gRPC library.
         
        .google.protobuf.Struct config = 6;
        Specified by:
        getConfig in interface GrpcService.GoogleGrpcOrBuilder
        Returns:
        The config.
      • setConfig

        public GrpcService.GoogleGrpc.Builder setConfig​(com.google.protobuf.Struct value)
         Additional configuration for site-specific customizations of the Google
         gRPC library.
         
        .google.protobuf.Struct config = 6;
      • setConfig

        public GrpcService.GoogleGrpc.Builder setConfig​(com.google.protobuf.Struct.Builder builderForValue)
         Additional configuration for site-specific customizations of the Google
         gRPC library.
         
        .google.protobuf.Struct config = 6;
      • mergeConfig

        public GrpcService.GoogleGrpc.Builder mergeConfig​(com.google.protobuf.Struct value)
         Additional configuration for site-specific customizations of the Google
         gRPC library.
         
        .google.protobuf.Struct config = 6;
      • clearConfig

        public GrpcService.GoogleGrpc.Builder clearConfig()
         Additional configuration for site-specific customizations of the Google
         gRPC library.
         
        .google.protobuf.Struct config = 6;
      • getConfigBuilder

        public com.google.protobuf.Struct.Builder getConfigBuilder()
         Additional configuration for site-specific customizations of the Google
         gRPC library.
         
        .google.protobuf.Struct config = 6;
      • getConfigOrBuilder

        public com.google.protobuf.StructOrBuilder getConfigOrBuilder()
         Additional configuration for site-specific customizations of the Google
         gRPC library.
         
        .google.protobuf.Struct config = 6;
        Specified by:
        getConfigOrBuilder in interface GrpcService.GoogleGrpcOrBuilder
      • getConfigFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Struct,​com.google.protobuf.Struct.Builder,​com.google.protobuf.StructOrBuilder> getConfigFieldBuilder()
         Additional configuration for site-specific customizations of the Google
         gRPC library.
         
        .google.protobuf.Struct config = 6;
      • hasPerStreamBufferLimitBytes

        public boolean hasPerStreamBufferLimitBytes()
         How many bytes each stream can buffer internally.
         If not set an implementation defined default is applied (1MiB).
         
        .google.protobuf.UInt32Value per_stream_buffer_limit_bytes = 7;
        Specified by:
        hasPerStreamBufferLimitBytes in interface GrpcService.GoogleGrpcOrBuilder
        Returns:
        Whether the perStreamBufferLimitBytes field is set.
      • getPerStreamBufferLimitBytes

        public com.google.protobuf.UInt32Value getPerStreamBufferLimitBytes()
         How many bytes each stream can buffer internally.
         If not set an implementation defined default is applied (1MiB).
         
        .google.protobuf.UInt32Value per_stream_buffer_limit_bytes = 7;
        Specified by:
        getPerStreamBufferLimitBytes in interface GrpcService.GoogleGrpcOrBuilder
        Returns:
        The perStreamBufferLimitBytes.
      • setPerStreamBufferLimitBytes

        public GrpcService.GoogleGrpc.Builder setPerStreamBufferLimitBytes​(com.google.protobuf.UInt32Value value)
         How many bytes each stream can buffer internally.
         If not set an implementation defined default is applied (1MiB).
         
        .google.protobuf.UInt32Value per_stream_buffer_limit_bytes = 7;
      • setPerStreamBufferLimitBytes

        public GrpcService.GoogleGrpc.Builder setPerStreamBufferLimitBytes​(com.google.protobuf.UInt32Value.Builder builderForValue)
         How many bytes each stream can buffer internally.
         If not set an implementation defined default is applied (1MiB).
         
        .google.protobuf.UInt32Value per_stream_buffer_limit_bytes = 7;
      • mergePerStreamBufferLimitBytes

        public GrpcService.GoogleGrpc.Builder mergePerStreamBufferLimitBytes​(com.google.protobuf.UInt32Value value)
         How many bytes each stream can buffer internally.
         If not set an implementation defined default is applied (1MiB).
         
        .google.protobuf.UInt32Value per_stream_buffer_limit_bytes = 7;
      • clearPerStreamBufferLimitBytes

        public GrpcService.GoogleGrpc.Builder clearPerStreamBufferLimitBytes()
         How many bytes each stream can buffer internally.
         If not set an implementation defined default is applied (1MiB).
         
        .google.protobuf.UInt32Value per_stream_buffer_limit_bytes = 7;
      • getPerStreamBufferLimitBytesBuilder

        public com.google.protobuf.UInt32Value.Builder getPerStreamBufferLimitBytesBuilder()
         How many bytes each stream can buffer internally.
         If not set an implementation defined default is applied (1MiB).
         
        .google.protobuf.UInt32Value per_stream_buffer_limit_bytes = 7;
      • getPerStreamBufferLimitBytesOrBuilder

        public com.google.protobuf.UInt32ValueOrBuilder getPerStreamBufferLimitBytesOrBuilder()
         How many bytes each stream can buffer internally.
         If not set an implementation defined default is applied (1MiB).
         
        .google.protobuf.UInt32Value per_stream_buffer_limit_bytes = 7;
        Specified by:
        getPerStreamBufferLimitBytesOrBuilder in interface GrpcService.GoogleGrpcOrBuilder
      • getPerStreamBufferLimitBytesFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,​com.google.protobuf.UInt32Value.Builder,​com.google.protobuf.UInt32ValueOrBuilder> getPerStreamBufferLimitBytesFieldBuilder()
         How many bytes each stream can buffer internally.
         If not set an implementation defined default is applied (1MiB).
         
        .google.protobuf.UInt32Value per_stream_buffer_limit_bytes = 7;
      • hasChannelArgs

        public boolean hasChannelArgs()
         Custom channels args.
         
        .envoy.config.core.v3.GrpcService.GoogleGrpc.ChannelArgs channel_args = 8;
        Specified by:
        hasChannelArgs in interface GrpcService.GoogleGrpcOrBuilder
        Returns:
        Whether the channelArgs field is set.
      • clearChannelArgs

        public GrpcService.GoogleGrpc.Builder clearChannelArgs()
         Custom channels args.
         
        .envoy.config.core.v3.GrpcService.GoogleGrpc.ChannelArgs channel_args = 8;