Class GrpcService.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GrpcServiceOrBuilder, Cloneable
    Enclosing class:
    GrpcService

    public static final class GrpcService.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.Builder>
    implements GrpcServiceOrBuilder
     gRPC service configuration. This is used by :ref:`ApiConfigSource
     <envoy_api_msg_core.ApiConfigSource>` and filter configurations.
     [#next-free-field: 6]
     
    Protobuf type envoy.api.v2.core.GrpcService
    • Method Detail

      • 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.Builder<GrpcService.Builder>
      • clear

        public GrpcService.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.GeneratedMessageV3.Builder<GrpcService.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.GeneratedMessageV3.Builder<GrpcService.Builder>
      • getDefaultInstanceForType

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

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

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

        public GrpcService.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.Builder>
      • setField

        public GrpcService.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.Builder>
      • clearField

        public GrpcService.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.Builder>
      • clearOneof

        public GrpcService.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.Builder>
      • setRepeatedField

        public GrpcService.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.Builder>
      • addRepeatedField

        public GrpcService.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.Builder>
      • mergeFrom

        public GrpcService.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GrpcService.Builder>
      • isInitialized

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

        public GrpcService.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws 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.Builder>
        Throws:
        IOException
      • hasEnvoyGrpc

        public boolean hasEnvoyGrpc()
         Envoy's in-built gRPC client.
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.EnvoyGrpc envoy_grpc = 1;
        Specified by:
        hasEnvoyGrpc in interface GrpcServiceOrBuilder
        Returns:
        Whether the envoyGrpc field is set.
      • getEnvoyGrpc

        public GrpcService.EnvoyGrpc getEnvoyGrpc()
         Envoy's in-built gRPC client.
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.EnvoyGrpc envoy_grpc = 1;
        Specified by:
        getEnvoyGrpc in interface GrpcServiceOrBuilder
        Returns:
        The envoyGrpc.
      • setEnvoyGrpc

        public GrpcService.Builder setEnvoyGrpc​(GrpcService.EnvoyGrpc value)
         Envoy's in-built gRPC client.
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.EnvoyGrpc envoy_grpc = 1;
      • setEnvoyGrpc

        public GrpcService.Builder setEnvoyGrpc​(GrpcService.EnvoyGrpc.Builder builderForValue)
         Envoy's in-built gRPC client.
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.EnvoyGrpc envoy_grpc = 1;
      • mergeEnvoyGrpc

        public GrpcService.Builder mergeEnvoyGrpc​(GrpcService.EnvoyGrpc value)
         Envoy's in-built gRPC client.
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.EnvoyGrpc envoy_grpc = 1;
      • clearEnvoyGrpc

        public GrpcService.Builder clearEnvoyGrpc()
         Envoy's in-built gRPC client.
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.EnvoyGrpc envoy_grpc = 1;
      • getEnvoyGrpcBuilder

        public GrpcService.EnvoyGrpc.Builder getEnvoyGrpcBuilder()
         Envoy's in-built gRPC client.
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.EnvoyGrpc envoy_grpc = 1;
      • getEnvoyGrpcOrBuilder

        public GrpcService.EnvoyGrpcOrBuilder getEnvoyGrpcOrBuilder()
         Envoy's in-built gRPC client.
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.EnvoyGrpc envoy_grpc = 1;
        Specified by:
        getEnvoyGrpcOrBuilder in interface GrpcServiceOrBuilder
      • hasGoogleGrpc

        public boolean hasGoogleGrpc()
         `Google C++ gRPC client <https://github.com/grpc/grpc>`_
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.GoogleGrpc google_grpc = 2;
        Specified by:
        hasGoogleGrpc in interface GrpcServiceOrBuilder
        Returns:
        Whether the googleGrpc field is set.
      • getGoogleGrpc

        public GrpcService.GoogleGrpc getGoogleGrpc()
         `Google C++ gRPC client <https://github.com/grpc/grpc>`_
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.GoogleGrpc google_grpc = 2;
        Specified by:
        getGoogleGrpc in interface GrpcServiceOrBuilder
        Returns:
        The googleGrpc.
      • setGoogleGrpc

        public GrpcService.Builder setGoogleGrpc​(GrpcService.GoogleGrpc value)
         `Google C++ gRPC client <https://github.com/grpc/grpc>`_
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.GoogleGrpc google_grpc = 2;
      • setGoogleGrpc

        public GrpcService.Builder setGoogleGrpc​(GrpcService.GoogleGrpc.Builder builderForValue)
         `Google C++ gRPC client <https://github.com/grpc/grpc>`_
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.GoogleGrpc google_grpc = 2;
      • mergeGoogleGrpc

        public GrpcService.Builder mergeGoogleGrpc​(GrpcService.GoogleGrpc value)
         `Google C++ gRPC client <https://github.com/grpc/grpc>`_
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.GoogleGrpc google_grpc = 2;
      • clearGoogleGrpc

        public GrpcService.Builder clearGoogleGrpc()
         `Google C++ gRPC client <https://github.com/grpc/grpc>`_
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.GoogleGrpc google_grpc = 2;
      • getGoogleGrpcBuilder

        public GrpcService.GoogleGrpc.Builder getGoogleGrpcBuilder()
         `Google C++ gRPC client <https://github.com/grpc/grpc>`_
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.GoogleGrpc google_grpc = 2;
      • getGoogleGrpcOrBuilder

        public GrpcService.GoogleGrpcOrBuilder getGoogleGrpcOrBuilder()
         `Google C++ gRPC client <https://github.com/grpc/grpc>`_
         See the :ref:`gRPC services overview <arch_overview_grpc_services>`
         documentation for discussion on gRPC client selection.
         
        .envoy.api.v2.core.GrpcService.GoogleGrpc google_grpc = 2;
        Specified by:
        getGoogleGrpcOrBuilder in interface GrpcServiceOrBuilder
      • hasTimeout

        public boolean hasTimeout()
         The timeout for the gRPC request. This is the timeout for a specific
         request.
         
        .google.protobuf.Duration timeout = 3;
        Specified by:
        hasTimeout in interface GrpcServiceOrBuilder
        Returns:
        Whether the timeout field is set.
      • getTimeout

        public com.google.protobuf.Duration getTimeout()
         The timeout for the gRPC request. This is the timeout for a specific
         request.
         
        .google.protobuf.Duration timeout = 3;
        Specified by:
        getTimeout in interface GrpcServiceOrBuilder
        Returns:
        The timeout.
      • setTimeout

        public GrpcService.Builder setTimeout​(com.google.protobuf.Duration value)
         The timeout for the gRPC request. This is the timeout for a specific
         request.
         
        .google.protobuf.Duration timeout = 3;
      • setTimeout

        public GrpcService.Builder setTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         The timeout for the gRPC request. This is the timeout for a specific
         request.
         
        .google.protobuf.Duration timeout = 3;
      • mergeTimeout

        public GrpcService.Builder mergeTimeout​(com.google.protobuf.Duration value)
         The timeout for the gRPC request. This is the timeout for a specific
         request.
         
        .google.protobuf.Duration timeout = 3;
      • clearTimeout

        public GrpcService.Builder clearTimeout()
         The timeout for the gRPC request. This is the timeout for a specific
         request.
         
        .google.protobuf.Duration timeout = 3;
      • getTimeoutBuilder

        public com.google.protobuf.Duration.Builder getTimeoutBuilder()
         The timeout for the gRPC request. This is the timeout for a specific
         request.
         
        .google.protobuf.Duration timeout = 3;
      • getTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
         The timeout for the gRPC request. This is the timeout for a specific
         request.
         
        .google.protobuf.Duration timeout = 3;
        Specified by:
        getTimeoutOrBuilder in interface GrpcServiceOrBuilder
      • getInitialMetadataList

        public List<HeaderValue> getInitialMetadataList()
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
        Specified by:
        getInitialMetadataList in interface GrpcServiceOrBuilder
      • getInitialMetadataCount

        public int getInitialMetadataCount()
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
        Specified by:
        getInitialMetadataCount in interface GrpcServiceOrBuilder
      • getInitialMetadata

        public HeaderValue getInitialMetadata​(int index)
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
        Specified by:
        getInitialMetadata in interface GrpcServiceOrBuilder
      • setInitialMetadata

        public GrpcService.Builder setInitialMetadata​(int index,
                                                      HeaderValue value)
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
      • setInitialMetadata

        public GrpcService.Builder setInitialMetadata​(int index,
                                                      HeaderValue.Builder builderForValue)
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
      • addInitialMetadata

        public GrpcService.Builder addInitialMetadata​(HeaderValue value)
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
      • addInitialMetadata

        public GrpcService.Builder addInitialMetadata​(int index,
                                                      HeaderValue value)
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
      • addInitialMetadata

        public GrpcService.Builder addInitialMetadata​(HeaderValue.Builder builderForValue)
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
      • addInitialMetadata

        public GrpcService.Builder addInitialMetadata​(int index,
                                                      HeaderValue.Builder builderForValue)
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
      • addAllInitialMetadata

        public GrpcService.Builder addAllInitialMetadata​(Iterable<? extends HeaderValue> values)
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
      • clearInitialMetadata

        public GrpcService.Builder clearInitialMetadata()
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
      • removeInitialMetadata

        public GrpcService.Builder removeInitialMetadata​(int index)
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
      • getInitialMetadataBuilder

        public HeaderValue.Builder getInitialMetadataBuilder​(int index)
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
      • getInitialMetadataOrBuilder

        public HeaderValueOrBuilder getInitialMetadataOrBuilder​(int index)
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
        Specified by:
        getInitialMetadataOrBuilder in interface GrpcServiceOrBuilder
      • getInitialMetadataOrBuilderList

        public List<? extends HeaderValueOrBuilder> getInitialMetadataOrBuilderList()
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
        Specified by:
        getInitialMetadataOrBuilderList in interface GrpcServiceOrBuilder
      • addInitialMetadataBuilder

        public HeaderValue.Builder addInitialMetadataBuilder()
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
      • addInitialMetadataBuilder

        public HeaderValue.Builder addInitialMetadataBuilder​(int index)
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
      • getInitialMetadataBuilderList

        public List<HeaderValue.Builder> getInitialMetadataBuilderList()
         Additional metadata to include in streams initiated to the GrpcService.
         This can be used for scenarios in which additional ad hoc authorization
         headers (e.g. ``x-foo-bar: baz-key``) are to be injected.
         
        repeated .envoy.api.v2.core.HeaderValue initial_metadata = 5;
      • setUnknownFields

        public final GrpcService.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.Builder>
      • mergeUnknownFields

        public final GrpcService.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GrpcService.Builder>