Class GrpcKeyBuilder.ExtraKeys.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GrpcKeyBuilder.ExtraKeysOrBuilder, java.lang.Cloneable
    Enclosing class:
    GrpcKeyBuilder.ExtraKeys

    public static final class GrpcKeyBuilder.ExtraKeys.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<GrpcKeyBuilder.ExtraKeys.Builder>
    implements GrpcKeyBuilder.ExtraKeysOrBuilder
     If you wish to include the host, service, or method names as keys in the
     generated RouteLookupRequest, specify key names to use in the extra_keys
     submessage. If a key name is empty, no key will be set for that value.
     If this submessage is specified, the normal host/path fields will be left
     unset in the RouteLookupRequest. We are deprecating host/path in the
     RouteLookupRequest, so services should migrate to the ExtraKeys approach.
     
    Protobuf type grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys
    • Field Detail

      • bitField0_

        private int bitField0_
      • host_

        private java.lang.Object host_
      • service_

        private java.lang.Object service_
      • method_

        private java.lang.Object method_
    • 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<GrpcKeyBuilder.ExtraKeys.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<GrpcKeyBuilder.ExtraKeys.Builder>
      • getDefaultInstanceForType

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

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

        public GrpcKeyBuilder.ExtraKeys 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<GrpcKeyBuilder.ExtraKeys.Builder>
      • mergeFrom

        public GrpcKeyBuilder.ExtraKeys.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<GrpcKeyBuilder.ExtraKeys.Builder>
        Throws:
        java.io.IOException
      • setHost

        public GrpcKeyBuilder.ExtraKeys.Builder setHost​(java.lang.String value)
        string host = 1;
        Parameters:
        value - The host to set.
        Returns:
        This builder for chaining.
      • setHostBytes

        public GrpcKeyBuilder.ExtraKeys.Builder setHostBytes​(com.google.protobuf.ByteString value)
        string host = 1;
        Parameters:
        value - The bytes for host to set.
        Returns:
        This builder for chaining.
      • setService

        public GrpcKeyBuilder.ExtraKeys.Builder setService​(java.lang.String value)
        string service = 2;
        Parameters:
        value - The service to set.
        Returns:
        This builder for chaining.
      • setServiceBytes

        public GrpcKeyBuilder.ExtraKeys.Builder setServiceBytes​(com.google.protobuf.ByteString value)
        string service = 2;
        Parameters:
        value - The bytes for service to set.
        Returns:
        This builder for chaining.
      • setMethod

        public GrpcKeyBuilder.ExtraKeys.Builder setMethod​(java.lang.String value)
        string method = 3;
        Parameters:
        value - The method to set.
        Returns:
        This builder for chaining.
      • setMethodBytes

        public GrpcKeyBuilder.ExtraKeys.Builder setMethodBytes​(com.google.protobuf.ByteString value)
        string method = 3;
        Parameters:
        value - The bytes for method to set.
        Returns:
        This builder for chaining.