Class RouteLookupResponse.Builder

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

public static final class RouteLookupResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<RouteLookupResponse.Builder> implements RouteLookupResponseOrBuilder
Protobuf type grpc.lookup.v1.RouteLookupResponse
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private Object
     
    private com.google.protobuf.LazyStringArrayList
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
    private
    Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.
    Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.
    addTargetsBytes(com.google.protobuf.ByteString value)
    Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.
     
     
    private void
     
     
    Optional header value to pass along to AFE in the X-Google-RLS-Data header.
    Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.
    private void
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Optional header value to pass along to AFE in the X-Google-RLS-Data header.
    com.google.protobuf.ByteString
    Optional header value to pass along to AFE in the X-Google-RLS-Data header.
    getTargets(int index)
    Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.
    com.google.protobuf.ByteString
    getTargetsBytes(int index)
    Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.
    int
    Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.
    com.google.protobuf.ProtocolStringList
    Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    Optional header value to pass along to AFE in the X-Google-RLS-Data header.
    setHeaderDataBytes(com.google.protobuf.ByteString value)
    Optional header value to pass along to AFE in the X-Google-RLS-Data header.
    setTargets(int index, String value)
    Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • bitField0_

      private int bitField0_
    • targets_

      private com.google.protobuf.LazyStringArrayList targets_
    • headerData_

      private Object headerData_
  • 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<RouteLookupResponse.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<RouteLookupResponse.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<RouteLookupResponse.Builder>
    • getDefaultInstanceForType

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

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

      public RouteLookupResponse 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(RouteLookupResponse result)
    • mergeFrom

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

      public RouteLookupResponse.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<RouteLookupResponse.Builder>
      Throws:
      IOException
    • ensureTargetsIsMutable

      private void ensureTargetsIsMutable()
    • getTargetsList

      public com.google.protobuf.ProtocolStringList getTargetsList()
       Prioritized list (best one first) of addressable entities to use
       for routing, using syntax requested by the request target_type.
       The targets will be tried in order until a healthy one is found.
       
      repeated string targets = 3;
      Specified by:
      getTargetsList in interface RouteLookupResponseOrBuilder
      Returns:
      A list containing the targets.
    • getTargetsCount

      public int getTargetsCount()
       Prioritized list (best one first) of addressable entities to use
       for routing, using syntax requested by the request target_type.
       The targets will be tried in order until a healthy one is found.
       
      repeated string targets = 3;
      Specified by:
      getTargetsCount in interface RouteLookupResponseOrBuilder
      Returns:
      The count of targets.
    • getTargets

      public String getTargets(int index)
       Prioritized list (best one first) of addressable entities to use
       for routing, using syntax requested by the request target_type.
       The targets will be tried in order until a healthy one is found.
       
      repeated string targets = 3;
      Specified by:
      getTargets in interface RouteLookupResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The targets at the given index.
    • getTargetsBytes

      public com.google.protobuf.ByteString getTargetsBytes(int index)
       Prioritized list (best one first) of addressable entities to use
       for routing, using syntax requested by the request target_type.
       The targets will be tried in order until a healthy one is found.
       
      repeated string targets = 3;
      Specified by:
      getTargetsBytes in interface RouteLookupResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the targets at the given index.
    • setTargets

      public RouteLookupResponse.Builder setTargets(int index, String value)
       Prioritized list (best one first) of addressable entities to use
       for routing, using syntax requested by the request target_type.
       The targets will be tried in order until a healthy one is found.
       
      repeated string targets = 3;
      Parameters:
      index - The index to set the value at.
      value - The targets to set.
      Returns:
      This builder for chaining.
    • addTargets

      public RouteLookupResponse.Builder addTargets(String value)
       Prioritized list (best one first) of addressable entities to use
       for routing, using syntax requested by the request target_type.
       The targets will be tried in order until a healthy one is found.
       
      repeated string targets = 3;
      Parameters:
      value - The targets to add.
      Returns:
      This builder for chaining.
    • addAllTargets

      public RouteLookupResponse.Builder addAllTargets(Iterable<String> values)
       Prioritized list (best one first) of addressable entities to use
       for routing, using syntax requested by the request target_type.
       The targets will be tried in order until a healthy one is found.
       
      repeated string targets = 3;
      Parameters:
      values - The targets to add.
      Returns:
      This builder for chaining.
    • clearTargets

      public RouteLookupResponse.Builder clearTargets()
       Prioritized list (best one first) of addressable entities to use
       for routing, using syntax requested by the request target_type.
       The targets will be tried in order until a healthy one is found.
       
      repeated string targets = 3;
      Returns:
      This builder for chaining.
    • addTargetsBytes

      public RouteLookupResponse.Builder addTargetsBytes(com.google.protobuf.ByteString value)
       Prioritized list (best one first) of addressable entities to use
       for routing, using syntax requested by the request target_type.
       The targets will be tried in order until a healthy one is found.
       
      repeated string targets = 3;
      Parameters:
      value - The bytes of the targets to add.
      Returns:
      This builder for chaining.
    • getHeaderData

      public String getHeaderData()
       Optional header value to pass along to AFE in the X-Google-RLS-Data header.
       Cached with "target" and sent with all requests that match the request key.
       Allows the RLS to pass its work product to the eventual target.
       
      string header_data = 2;
      Specified by:
      getHeaderData in interface RouteLookupResponseOrBuilder
      Returns:
      The headerData.
    • getHeaderDataBytes

      public com.google.protobuf.ByteString getHeaderDataBytes()
       Optional header value to pass along to AFE in the X-Google-RLS-Data header.
       Cached with "target" and sent with all requests that match the request key.
       Allows the RLS to pass its work product to the eventual target.
       
      string header_data = 2;
      Specified by:
      getHeaderDataBytes in interface RouteLookupResponseOrBuilder
      Returns:
      The bytes for headerData.
    • setHeaderData

      public RouteLookupResponse.Builder setHeaderData(String value)
       Optional header value to pass along to AFE in the X-Google-RLS-Data header.
       Cached with "target" and sent with all requests that match the request key.
       Allows the RLS to pass its work product to the eventual target.
       
      string header_data = 2;
      Parameters:
      value - The headerData to set.
      Returns:
      This builder for chaining.
    • clearHeaderData

      public RouteLookupResponse.Builder clearHeaderData()
       Optional header value to pass along to AFE in the X-Google-RLS-Data header.
       Cached with "target" and sent with all requests that match the request key.
       Allows the RLS to pass its work product to the eventual target.
       
      string header_data = 2;
      Returns:
      This builder for chaining.
    • setHeaderDataBytes

      public RouteLookupResponse.Builder setHeaderDataBytes(com.google.protobuf.ByteString value)
       Optional header value to pass along to AFE in the X-Google-RLS-Data header.
       Cached with "target" and sent with all requests that match the request key.
       Allows the RLS to pass its work product to the eventual target.
       
      string header_data = 2;
      Parameters:
      value - The bytes for headerData to set.
      Returns:
      This builder for chaining.