Class GrpcKeyBuilder.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GrpcKeyBuilder.Builder>
com.google.protobuf.GeneratedMessage.Builder<GrpcKeyBuilder.Builder>
io.grpc.lookup.v1.GrpcKeyBuilder.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GrpcKeyBuilderOrBuilder, Cloneable
Enclosing class:
GrpcKeyBuilder

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

  • 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()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<GrpcKeyBuilder.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<GrpcKeyBuilder.Builder>
    • internalGetFieldAccessorTable

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

      private void maybeForceBuilderInitialization()
    • clear

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

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

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

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

      private void buildPartialRepeatedFields(GrpcKeyBuilder result)
    • buildPartial0

      private void buildPartial0(GrpcKeyBuilder result)
    • mergeFrom

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

      public GrpcKeyBuilder.Builder mergeFrom(GrpcKeyBuilder other)
    • isInitialized

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

      public GrpcKeyBuilder.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.Builder>
      Throws:
      IOException
    • ensureNamesIsMutable

      private void ensureNamesIsMutable()
    • getNamesList

      public List<GrpcKeyBuilder.Name> getNamesList()
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
      Specified by:
      getNamesList 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
    • setNames

      public GrpcKeyBuilder.Builder setNames(int index, GrpcKeyBuilder.Name value)
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
    • setNames

      public GrpcKeyBuilder.Builder setNames(int index, GrpcKeyBuilder.Name.Builder builderForValue)
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
    • addNames

      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
    • addNames

      public GrpcKeyBuilder.Builder addNames(int index, GrpcKeyBuilder.Name value)
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
    • addNames

      public GrpcKeyBuilder.Builder addNames(GrpcKeyBuilder.Name.Builder builderForValue)
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
    • addNames

      public GrpcKeyBuilder.Builder addNames(int index, GrpcKeyBuilder.Name.Builder builderForValue)
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
    • addAllNames

      public GrpcKeyBuilder.Builder addAllNames(Iterable<? extends GrpcKeyBuilder.Name> values)
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
    • clearNames

      public GrpcKeyBuilder.Builder clearNames()
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
    • removeNames

      public GrpcKeyBuilder.Builder removeNames(int index)
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
    • getNamesBuilder

      public GrpcKeyBuilder.Name.Builder getNamesBuilder(int index)
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
    • getNamesOrBuilder

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

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

      public GrpcKeyBuilder.Name.Builder addNamesBuilder()
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
    • addNamesBuilder

      public GrpcKeyBuilder.Name.Builder addNamesBuilder(int index)
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
    • getNamesBuilderList

      public List<GrpcKeyBuilder.Name.Builder> getNamesBuilderList()
      repeated .grpc.lookup.v1.GrpcKeyBuilder.Name names = 1;
    • internalGetNamesFieldBuilder

      private com.google.protobuf.RepeatedFieldBuilder<GrpcKeyBuilder.Name,GrpcKeyBuilder.Name.Builder,GrpcKeyBuilder.NameOrBuilder> internalGetNamesFieldBuilder()
    • 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.
    • setExtraKeys

      public GrpcKeyBuilder.Builder setExtraKeys(GrpcKeyBuilder.ExtraKeys value)
      .grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
    • setExtraKeys

      public GrpcKeyBuilder.Builder setExtraKeys(GrpcKeyBuilder.ExtraKeys.Builder builderForValue)
      .grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
    • mergeExtraKeys

      public GrpcKeyBuilder.Builder mergeExtraKeys(GrpcKeyBuilder.ExtraKeys value)
      .grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
    • clearExtraKeys

      public GrpcKeyBuilder.Builder clearExtraKeys()
      .grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
    • getExtraKeysBuilder

      public GrpcKeyBuilder.ExtraKeys.Builder getExtraKeysBuilder()
      .grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
    • getExtraKeysOrBuilder

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

      private com.google.protobuf.SingleFieldBuilder<GrpcKeyBuilder.ExtraKeys,GrpcKeyBuilder.ExtraKeys.Builder,GrpcKeyBuilder.ExtraKeysOrBuilder> internalGetExtraKeysFieldBuilder()
      .grpc.lookup.v1.GrpcKeyBuilder.ExtraKeys extra_keys = 3;
    • ensureHeadersIsMutable

      private void ensureHeadersIsMutable()
    • 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
    • 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
    • setHeaders

      public GrpcKeyBuilder.Builder setHeaders(int index, NameMatcher value)
       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;
    • setHeaders

      public GrpcKeyBuilder.Builder setHeaders(int index, NameMatcher.Builder builderForValue)
       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;
    • addHeaders

      public GrpcKeyBuilder.Builder addHeaders(NameMatcher value)
       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;
    • addHeaders

      public GrpcKeyBuilder.Builder addHeaders(int index, NameMatcher value)
       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;
    • addHeaders

      public GrpcKeyBuilder.Builder addHeaders(NameMatcher.Builder builderForValue)
       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;
    • addHeaders

      public GrpcKeyBuilder.Builder addHeaders(int index, NameMatcher.Builder builderForValue)
       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;
    • addAllHeaders

      public GrpcKeyBuilder.Builder addAllHeaders(Iterable<? extends NameMatcher> values)
       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;
    • clearHeaders

      public GrpcKeyBuilder.Builder clearHeaders()
       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;
    • removeHeaders

      public GrpcKeyBuilder.Builder removeHeaders(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;
    • getHeadersBuilder

      public NameMatcher.Builder getHeadersBuilder(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;
    • 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
    • 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
    • addHeadersBuilder

      public NameMatcher.Builder addHeadersBuilder()
       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;
    • addHeadersBuilder

      public NameMatcher.Builder addHeadersBuilder(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;
    • getHeadersBuilderList

      public List<NameMatcher.Builder> getHeadersBuilderList()
       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;
    • internalGetHeadersFieldBuilder

      private com.google.protobuf.RepeatedFieldBuilder<NameMatcher,NameMatcher.Builder,NameMatcherOrBuilder> internalGetHeadersFieldBuilder()
    • internalGetConstantKeys

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

      private com.google.protobuf.MapField<String,String> internalGetMutableConstantKeys()
    • 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
    • clearConstantKeys

      public GrpcKeyBuilder.Builder clearConstantKeys()
    • removeConstantKeys

      public GrpcKeyBuilder.Builder removeConstantKeys(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;
    • getMutableConstantKeys

      @Deprecated public Map<String,String> getMutableConstantKeys()
      Deprecated.
      Use alternate mutation accessors instead.
    • putConstantKeys

      public GrpcKeyBuilder.Builder putConstantKeys(String key, String value)
       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;
    • putAllConstantKeys

      public GrpcKeyBuilder.Builder putAllConstantKeys(Map<String,String> values)
       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;