Class GrpcKeyBuilder.ExtraKeys.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GrpcKeyBuilder.ExtraKeys.Builder>
com.google.protobuf.GeneratedMessage.Builder<GrpcKeyBuilder.ExtraKeys.Builder>
io.grpc.lookup.v1.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, 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 Details

    • bitField0_

      private int bitField0_
    • host_

      private Object host_
    • service_

      private Object service_
    • method_

      private Object method_
  • Constructor Details

    • Builder

      private Builder()
    • Builder

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

    • 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>
    • 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<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
    • buildPartial0

      private void buildPartial0(GrpcKeyBuilder.ExtraKeys result)
    • mergeFrom

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

    • 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 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:
      IOException
    • getHost

      public String getHost()
      string host = 1;
      Specified by:
      getHost in interface GrpcKeyBuilder.ExtraKeysOrBuilder
      Returns:
      The host.
    • getHostBytes

      public com.google.protobuf.ByteString getHostBytes()
      string host = 1;
      Specified by:
      getHostBytes in interface GrpcKeyBuilder.ExtraKeysOrBuilder
      Returns:
      The bytes for host.
    • setHost

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

      string host = 1;
      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.
    • getService

      public String getService()
      string service = 2;
      Specified by:
      getService in interface GrpcKeyBuilder.ExtraKeysOrBuilder
      Returns:
      The service.
    • getServiceBytes

      public com.google.protobuf.ByteString getServiceBytes()
      string service = 2;
      Specified by:
      getServiceBytes in interface GrpcKeyBuilder.ExtraKeysOrBuilder
      Returns:
      The bytes for service.
    • setService

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

      public GrpcKeyBuilder.ExtraKeys.Builder clearService()
      string service = 2;
      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.
    • getMethod

      public String getMethod()
      string method = 3;
      Specified by:
      getMethod in interface GrpcKeyBuilder.ExtraKeysOrBuilder
      Returns:
      The method.
    • getMethodBytes

      public com.google.protobuf.ByteString getMethodBytes()
      string method = 3;
      Specified by:
      getMethodBytes in interface GrpcKeyBuilder.ExtraKeysOrBuilder
      Returns:
      The bytes for method.
    • setMethod

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

      public GrpcKeyBuilder.ExtraKeys.Builder clearMethod()
      string method = 3;
      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.