Class RouteLookupResponse.Builder

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int bitField0_  
      private java.lang.Object headerData_  
      private com.google.protobuf.LazyStringArrayList targets_  
    • Constructor Summary

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RouteLookupResponse.Builder addAllTargets​(java.lang.Iterable<java.lang.String> values)
      Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.
      RouteLookupResponse.Builder addTargets​(java.lang.String value)
      Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.
      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.
      RouteLookupResponse build()  
      RouteLookupResponse buildPartial()  
      private void buildPartial0​(RouteLookupResponse result)  
      RouteLookupResponse.Builder clear()  
      RouteLookupResponse.Builder clearHeaderData()
      Optional header value to pass along to AFE in the X-Google-RLS-Data header.
      RouteLookupResponse.Builder clearTargets()
      Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.
      private void ensureTargetsIsMutable()  
      RouteLookupResponse getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      java.lang.String getHeaderData()
      Optional header value to pass along to AFE in the X-Google-RLS-Data header.
      com.google.protobuf.ByteString getHeaderDataBytes()
      Optional header value to pass along to AFE in the X-Google-RLS-Data header.
      java.lang.String 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 getTargetsCount()
      Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.
      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.
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      RouteLookupResponse.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      RouteLookupResponse.Builder mergeFrom​(com.google.protobuf.Message other)  
      RouteLookupResponse.Builder mergeFrom​(RouteLookupResponse other)  
      RouteLookupResponse.Builder setHeaderData​(java.lang.String value)
      Optional header value to pass along to AFE in the X-Google-RLS-Data header.
      RouteLookupResponse.Builder setHeaderDataBytes​(com.google.protobuf.ByteString value)
      Optional header value to pass along to AFE in the X-Google-RLS-Data header.
      RouteLookupResponse.Builder setTargets​(int index, java.lang.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 Detail

      • bitField0_

        private int bitField0_
      • targets_

        private com.google.protobuf.LazyStringArrayList targets_
      • headerData_

        private java.lang.Object headerData_
    • 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<RouteLookupResponse.Builder>
      • clear

        public 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
      • 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>
      • 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 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<RouteLookupResponse.Builder>
        Throws:
        java.io.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 java.lang.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,
                                                      java.lang.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​(java.lang.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​(java.lang.Iterable<java.lang.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 java.lang.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​(java.lang.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.