Package io.grpc.lookup.v1
Class RouteLookupResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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
,java.lang.Cloneable
- Enclosing class:
- RouteLookupResponse
public static final class RouteLookupResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<RouteLookupResponse.Builder> implements RouteLookupResponseOrBuilder
Protobuf typegrpc.lookup.v1.RouteLookupResponse
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private java.lang.Object
headerData_
private com.google.protobuf.LazyStringArrayList
targets_
-
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
-
-
-
-
Method Detail
-
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
public 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
public RouteLookupResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouteLookupResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouteLookupResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(RouteLookupResponse result)
-
mergeFrom
public RouteLookupResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouteLookupResponse.Builder>
-
mergeFrom
public RouteLookupResponse.Builder mergeFrom(RouteLookupResponse other)
-
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 java.io.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:
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 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
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 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
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 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
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.
-
-