Class GrpcKeyBuilder

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.grpc.lookup.v1.GrpcKeyBuilder
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GrpcKeyBuilderOrBuilder, Serializable

public final class GrpcKeyBuilder extends com.google.protobuf.GeneratedMessage implements GrpcKeyBuilderOrBuilder
 A GrpcKeyBuilder applies to a given gRPC service, name, and headers.
 
Protobuf type grpc.lookup.v1.GrpcKeyBuilder
See Also:
  • Field Details

  • Constructor Details

    • GrpcKeyBuilder

      private GrpcKeyBuilder(com.google.protobuf.GeneratedMessage.Builder<?> builder)
    • GrpcKeyBuilder

      private GrpcKeyBuilder()
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getNamesList

      public List<GrpcKeyBuilder.Name> getNamesList()
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
      Specified by:
      getNamesList in interface GrpcKeyBuilderOrBuilder
    • getNamesOrBuilderList

      public List<? extends GrpcKeyBuilder.NameOrBuilder> getNamesOrBuilderList()
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
      Specified by:
      getNamesOrBuilderList in interface GrpcKeyBuilderOrBuilder
    • getNamesCount

      public int getNamesCount()
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
      Specified by:
      getNamesCount in interface GrpcKeyBuilderOrBuilder
    • getNames

      public GrpcKeyBuilder.Name getNames(int index)
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
      Specified by:
      getNames in interface GrpcKeyBuilderOrBuilder
    • getNamesOrBuilder

      public GrpcKeyBuilder.NameOrBuilder getNamesOrBuilder(int index)
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
      Specified by:
      getNamesOrBuilder in interface GrpcKeyBuilderOrBuilder
    • hasExtraKeys

      public boolean hasExtraKeys()
      .grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
      Specified by:
      hasExtraKeys in interface GrpcKeyBuilderOrBuilder
      Returns:
      Whether the extraKeys field is set.
    • getExtraKeys

      public GrpcKeyBuilder.ExtraKeys getExtraKeys()
      .grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
      Specified by:
      getExtraKeys in interface GrpcKeyBuilderOrBuilder
      Returns:
      The extraKeys.
    • getExtraKeysOrBuilder

      public GrpcKeyBuilder.ExtraKeysOrBuilder getExtraKeysOrBuilder()
      .grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
      Specified by:
      getExtraKeysOrBuilder in interface GrpcKeyBuilderOrBuilder
    • getHeadersList

      public List<NameMatcher> getHeadersList()
       Extract keys from all listed headers.
       For gRPC, it is an error to specify "required_match" on the NameMatcher
       protos.
       
      repeated .grpc.lookup.v1.NameMatcher headers = 2;
      Specified by:
      getHeadersList in interface GrpcKeyBuilderOrBuilder
    • getHeadersOrBuilderList

      public List<? extends NameMatcherOrBuilder> getHeadersOrBuilderList()
       Extract keys from all listed headers.
       For gRPC, it is an error to specify "required_match" on the NameMatcher
       protos.
       
      repeated .grpc.lookup.v1.NameMatcher headers = 2;
      Specified by:
      getHeadersOrBuilderList in interface GrpcKeyBuilderOrBuilder
    • getHeadersCount

      public int getHeadersCount()
       Extract keys from all listed headers.
       For gRPC, it is an error to specify "required_match" on the NameMatcher
       protos.
       
      repeated .grpc.lookup.v1.NameMatcher headers = 2;
      Specified by:
      getHeadersCount in interface GrpcKeyBuilderOrBuilder
    • getHeaders

      public NameMatcher getHeaders(int index)
       Extract keys from all listed headers.
       For gRPC, it is an error to specify "required_match" on the NameMatcher
       protos.
       
      repeated .grpc.lookup.v1.NameMatcher headers = 2;
      Specified by:
      getHeaders in interface GrpcKeyBuilderOrBuilder
    • getHeadersOrBuilder

      public NameMatcherOrBuilder getHeadersOrBuilder(int index)
       Extract keys from all listed headers.
       For gRPC, it is an error to specify "required_match" on the NameMatcher
       protos.
       
      repeated .grpc.lookup.v1.NameMatcher headers = 2;
      Specified by:
      getHeadersOrBuilder in interface GrpcKeyBuilderOrBuilder
    • internalGetConstantKeys

      private com.google.protobuf.MapField<String,String> internalGetConstantKeys()
    • getConstantKeysCount

      public int getConstantKeysCount()
      Description copied from interface: GrpcKeyBuilderOrBuilder
       You can optionally set one or more specific key/value pairs to be added to
       the key_map.  This can be useful to identify which builder built the key,
       for example if you are suppressing the actual method, but need to
       separately cache and request all the matched methods.
       
      map<string, string> constant_keys = 4;
      Specified by:
      getConstantKeysCount in interface GrpcKeyBuilderOrBuilder
    • containsConstantKeys

      public boolean containsConstantKeys(String key)
       You can optionally set one or more specific key/value pairs to be added to
       the key_map.  This can be useful to identify which builder built the key,
       for example if you are suppressing the actual method, but need to
       separately cache and request all the matched methods.
       
      map<string, string> constant_keys = 4;
      Specified by:
      containsConstantKeys in interface GrpcKeyBuilderOrBuilder
    • getConstantKeys

      @Deprecated public Map<String,String> getConstantKeys()
      Deprecated.
      Specified by:
      getConstantKeys in interface GrpcKeyBuilderOrBuilder
    • getConstantKeysMap

      public Map<String,String> getConstantKeysMap()
       You can optionally set one or more specific key/value pairs to be added to
       the key_map.  This can be useful to identify which builder built the key,
       for example if you are suppressing the actual method, but need to
       separately cache and request all the matched methods.
       
      map<string, string> constant_keys = 4;
      Specified by:
      getConstantKeysMap in interface GrpcKeyBuilderOrBuilder
    • getConstantKeysOrDefault

      public String getConstantKeysOrDefault(String key, String defaultValue)
       You can optionally set one or more specific key/value pairs to be added to
       the key_map.  This can be useful to identify which builder built the key,
       for example if you are suppressing the actual method, but need to
       separately cache and request all the matched methods.
       
      map<string, string> constant_keys = 4;
      Specified by:
      getConstantKeysOrDefault in interface GrpcKeyBuilderOrBuilder
    • getConstantKeysOrThrow

      public String getConstantKeysOrThrow(String key)
       You can optionally set one or more specific key/value pairs to be added to
       the key_map.  This can be useful to identify which builder built the key,
       for example if you are suppressing the actual method, but need to
       separately cache and request all the matched methods.
       
      map<string, string> constant_keys = 4;
      Specified by:
      getConstantKeysOrThrow in interface GrpcKeyBuilderOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 GrpcKeyBuilder parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static GrpcKeyBuilder parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GrpcKeyBuilder parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GrpcKeyBuilder parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static GrpcKeyBuilder parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GrpcKeyBuilder parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static GrpcKeyBuilder parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public GrpcKeyBuilder.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static GrpcKeyBuilder.Builder newBuilder()
    • newBuilder

      public static GrpcKeyBuilder.Builder newBuilder(GrpcKeyBuilder prototype)
    • toBuilder

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

      protected GrpcKeyBuilder.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static GrpcKeyBuilder getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<GrpcKeyBuilder> parser()
    • getParserForType

      public com.google.protobuf.Parser<GrpcKeyBuilder> 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.GeneratedMessage
    • getDefaultInstanceForType

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