Package io.grpc.lookup.v1
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
FieldsModifier and TypeFieldDescriptionprivate intprivate Objectprivate com.google.protobuf.LazyStringArrayList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllTargets(Iterable<String> values) Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.addTargets(String value) 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.build()private voidbuildPartial0(RouteLookupResponse result) clear()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 voidstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional header value to pass along to AFE in the X-Google-RLS-Data header.com.google.protobuf.ByteStringOptional 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.ByteStringgetTargetsBytes(int index) Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.intPrioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.com.google.protobuf.ProtocolStringListPrioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(RouteLookupResponse other) setHeaderData(String value) 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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_
-
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RouteLookupResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RouteLookupResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RouteLookupResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouteLookupResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getTargetsListin interfaceRouteLookupResponseOrBuilder- 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:
getTargetsCountin interfaceRouteLookupResponseOrBuilder- Returns:
- The count of targets.
-
getTargets
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:
getTargetsin interfaceRouteLookupResponseOrBuilder- 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:
getTargetsBytesin interfaceRouteLookupResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the targets at the given index.
-
setTargets
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
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
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
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
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
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:
getHeaderDatain interfaceRouteLookupResponseOrBuilder- 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:
getHeaderDataBytesin interfaceRouteLookupResponseOrBuilder- Returns:
- The bytes for headerData.
-
setHeaderData
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
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
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.
-