Class ResolveServiceRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ResolveServiceRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<ResolveServiceRequest.Builder>
ai.pipestream.platform.registration.v1.ResolveServiceRequest.Builder
- All Implemented Interfaces:
ResolveServiceRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
ResolveServiceRequest
public static final class ResolveServiceRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResolveServiceRequest.Builder>
implements ResolveServiceRequestOrBuilder
Request to resolve service endpoint for dynamic routing. Finds the best available service instance based on health status, load, and optional preference criteria like locality or required capabilities.Protobuf type
ai.pipestream.platform.registration.v1.ResolveServiceRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllRequiredCapabilities(Iterable<String> values) Only return instances with all of these capabilities.addAllRequiredTags(Iterable<String> values) Only return instances with all of these tags.addRequiredCapabilities(String value) Only return instances with all of these capabilities.addRequiredCapabilitiesBytes(com.google.protobuf.ByteString value) Only return instances with all of these capabilities.addRequiredTags(String value) Only return instances with all of these tags.addRequiredTagsBytes(com.google.protobuf.ByteString value) Only return instances with all of these tags.build()clear()Prefer instance on same host as caller.Only return instances with all of these capabilities.Only return instances with all of these tags.Service name to resolve (e.g., "mapping-service").static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanPrefer instance on same host as caller.getRequiredCapabilities(int index) Only return instances with all of these capabilities.com.google.protobuf.ByteStringgetRequiredCapabilitiesBytes(int index) Only return instances with all of these capabilities.intOnly return instances with all of these capabilities.com.google.protobuf.ProtocolStringListOnly return instances with all of these capabilities.getRequiredTags(int index) Only return instances with all of these tags.com.google.protobuf.ByteStringgetRequiredTagsBytes(int index) Only return instances with all of these tags.intOnly return instances with all of these tags.com.google.protobuf.ProtocolStringListOnly return instances with all of these tags.Service name to resolve (e.g., "mapping-service").com.google.protobuf.ByteStringService name to resolve (e.g., "mapping-service").protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ResolveServiceRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setPreferLocal(boolean value) Prefer instance on same host as caller.setRequiredCapabilities(int index, String value) Only return instances with all of these capabilities.setRequiredTags(int index, String value) Only return instances with all of these tags.setServiceName(String value) Service name to resolve (e.g., "mapping-service").setServiceNameBytes(com.google.protobuf.ByteString value) Service name to resolve (e.g., "mapping-service").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
-
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<ResolveServiceRequest.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<ResolveServiceRequest.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<ResolveServiceRequest.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ResolveServiceRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResolveServiceRequest.Builder>
-
mergeFrom
public ResolveServiceRequest.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<ResolveServiceRequest.Builder>- Throws:
IOException
-
getServiceName
Service name to resolve (e.g., "mapping-service").
string service_name = 1 [json_name = "serviceName"];- Specified by:
getServiceNamein interfaceResolveServiceRequestOrBuilder- Returns:
- The serviceName.
-
getServiceNameBytes
public com.google.protobuf.ByteString getServiceNameBytes()Service name to resolve (e.g., "mapping-service").
string service_name = 1 [json_name = "serviceName"];- Specified by:
getServiceNameBytesin interfaceResolveServiceRequestOrBuilder- Returns:
- The bytes for serviceName.
-
setServiceName
Service name to resolve (e.g., "mapping-service").
string service_name = 1 [json_name = "serviceName"];- Parameters:
value- The serviceName to set.- Returns:
- This builder for chaining.
-
clearServiceName
Service name to resolve (e.g., "mapping-service").
string service_name = 1 [json_name = "serviceName"];- Returns:
- This builder for chaining.
-
setServiceNameBytes
Service name to resolve (e.g., "mapping-service").
string service_name = 1 [json_name = "serviceName"];- Parameters:
value- The bytes for serviceName to set.- Returns:
- This builder for chaining.
-
getPreferLocal
public boolean getPreferLocal()Prefer instance on same host as caller.
bool prefer_local = 2 [json_name = "preferLocal"];- Specified by:
getPreferLocalin interfaceResolveServiceRequestOrBuilder- Returns:
- The preferLocal.
-
setPreferLocal
Prefer instance on same host as caller.
bool prefer_local = 2 [json_name = "preferLocal"];- Parameters:
value- The preferLocal to set.- Returns:
- This builder for chaining.
-
clearPreferLocal
Prefer instance on same host as caller.
bool prefer_local = 2 [json_name = "preferLocal"];- Returns:
- This builder for chaining.
-
getRequiredTagsList
public com.google.protobuf.ProtocolStringList getRequiredTagsList()Only return instances with all of these tags.
repeated string required_tags = 3 [json_name = "requiredTags"];- Specified by:
getRequiredTagsListin interfaceResolveServiceRequestOrBuilder- Returns:
- A list containing the requiredTags.
-
getRequiredTagsCount
public int getRequiredTagsCount()Only return instances with all of these tags.
repeated string required_tags = 3 [json_name = "requiredTags"];- Specified by:
getRequiredTagsCountin interfaceResolveServiceRequestOrBuilder- Returns:
- The count of requiredTags.
-
getRequiredTags
Only return instances with all of these tags.
repeated string required_tags = 3 [json_name = "requiredTags"];- Specified by:
getRequiredTagsin interfaceResolveServiceRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The requiredTags at the given index.
-
getRequiredTagsBytes
public com.google.protobuf.ByteString getRequiredTagsBytes(int index) Only return instances with all of these tags.
repeated string required_tags = 3 [json_name = "requiredTags"];- Specified by:
getRequiredTagsBytesin interfaceResolveServiceRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the requiredTags at the given index.
-
setRequiredTags
Only return instances with all of these tags.
repeated string required_tags = 3 [json_name = "requiredTags"];- Parameters:
index- The index to set the value at.value- The requiredTags to set.- Returns:
- This builder for chaining.
-
addRequiredTags
Only return instances with all of these tags.
repeated string required_tags = 3 [json_name = "requiredTags"];- Parameters:
value- The requiredTags to add.- Returns:
- This builder for chaining.
-
addAllRequiredTags
Only return instances with all of these tags.
repeated string required_tags = 3 [json_name = "requiredTags"];- Parameters:
values- The requiredTags to add.- Returns:
- This builder for chaining.
-
clearRequiredTags
Only return instances with all of these tags.
repeated string required_tags = 3 [json_name = "requiredTags"];- Returns:
- This builder for chaining.
-
addRequiredTagsBytes
Only return instances with all of these tags.
repeated string required_tags = 3 [json_name = "requiredTags"];- Parameters:
value- The bytes of the requiredTags to add.- Returns:
- This builder for chaining.
-
getRequiredCapabilitiesList
public com.google.protobuf.ProtocolStringList getRequiredCapabilitiesList()Only return instances with all of these capabilities.
repeated string required_capabilities = 4 [json_name = "requiredCapabilities"];- Specified by:
getRequiredCapabilitiesListin interfaceResolveServiceRequestOrBuilder- Returns:
- A list containing the requiredCapabilities.
-
getRequiredCapabilitiesCount
public int getRequiredCapabilitiesCount()Only return instances with all of these capabilities.
repeated string required_capabilities = 4 [json_name = "requiredCapabilities"];- Specified by:
getRequiredCapabilitiesCountin interfaceResolveServiceRequestOrBuilder- Returns:
- The count of requiredCapabilities.
-
getRequiredCapabilities
Only return instances with all of these capabilities.
repeated string required_capabilities = 4 [json_name = "requiredCapabilities"];- Specified by:
getRequiredCapabilitiesin interfaceResolveServiceRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The requiredCapabilities at the given index.
-
getRequiredCapabilitiesBytes
public com.google.protobuf.ByteString getRequiredCapabilitiesBytes(int index) Only return instances with all of these capabilities.
repeated string required_capabilities = 4 [json_name = "requiredCapabilities"];- Specified by:
getRequiredCapabilitiesBytesin interfaceResolveServiceRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the requiredCapabilities at the given index.
-
setRequiredCapabilities
Only return instances with all of these capabilities.
repeated string required_capabilities = 4 [json_name = "requiredCapabilities"];- Parameters:
index- The index to set the value at.value- The requiredCapabilities to set.- Returns:
- This builder for chaining.
-
addRequiredCapabilities
Only return instances with all of these capabilities.
repeated string required_capabilities = 4 [json_name = "requiredCapabilities"];- Parameters:
value- The requiredCapabilities to add.- Returns:
- This builder for chaining.
-
addAllRequiredCapabilities
Only return instances with all of these capabilities.
repeated string required_capabilities = 4 [json_name = "requiredCapabilities"];- Parameters:
values- The requiredCapabilities to add.- Returns:
- This builder for chaining.
-
clearRequiredCapabilities
Only return instances with all of these capabilities.
repeated string required_capabilities = 4 [json_name = "requiredCapabilities"];- Returns:
- This builder for chaining.
-
addRequiredCapabilitiesBytes
public ResolveServiceRequest.Builder addRequiredCapabilitiesBytes(com.google.protobuf.ByteString value) Only return instances with all of these capabilities.
repeated string required_capabilities = 4 [json_name = "requiredCapabilities"];- Parameters:
value- The bytes of the requiredCapabilities to add.- Returns:
- This builder for chaining.
-