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 int
private Object
private 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 void
buildPartial0
(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 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) 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, 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_
-
-
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 classcom.google.protobuf.GeneratedMessage.Builder<RouteLookupResponse.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<RouteLookupResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<RouteLookupResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouteLookupResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getTargetsList
in 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:
getTargetsCount
in 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:
getTargets
in 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:
getTargetsBytes
in 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:
getHeaderData
in 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:
getHeaderDataBytes
in 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.
-