Class ResolveServiceResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ResolveServiceResponse.Builder>
com.google.protobuf.GeneratedMessage.Builder<ResolveServiceResponse.Builder>
ai.pipestream.platform.registration.v1.ResolveServiceResponse.Builder
- All Implemented Interfaces:
ResolveServiceResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
ResolveServiceResponse
public static final class ResolveServiceResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResolveServiceResponse.Builder>
implements ResolveServiceResponseOrBuilder
Response from service resolution containing the best available instance. Provides complete connection details for the selected instance along with metadata explaining the selection decision.Protobuf type
ai.pipestream.platform.registration.v1.ResolveServiceResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllCapabilities(Iterable<String> values) Capabilities of the selected instance.addAllTags(Iterable<String> values) Tags associated with the selected instance.addCapabilities(String value) Capabilities of the selected instance.addCapabilitiesBytes(com.google.protobuf.ByteString value) Capabilities of the selected instance.Tags associated with the selected instance.addTagsBytes(com.google.protobuf.ByteString value) Tags associated with the selected instance.build()clear()Capabilities of the selected instance.Whether a healthy instance was found.Number of healthy instances considered.Host of the selected instance.Port of the selected instance.Timestamp when resolution occurred.Explanation of why this instance was selected.Consul service ID of the selected instance.Service name that was resolved.Tags associated with the selected instance.Total number of instances found (including unhealthy).Version of the selected instance.booleancontainsMetadata(String key) Additional metadata from the selected instance.getCapabilities(int index) Capabilities of the selected instance.com.google.protobuf.ByteStringgetCapabilitiesBytes(int index) Capabilities of the selected instance.intCapabilities of the selected instance.com.google.protobuf.ProtocolStringListCapabilities of the selected instance.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleangetFound()Whether a healthy instance was found.intNumber of healthy instances considered.getHost()Host of the selected instance.com.google.protobuf.ByteStringHost of the selected instance.Deprecated.intAdditional metadata from the selected instance.Additional metadata from the selected instance.getMetadataOrDefault(String key, String defaultValue) Additional metadata from the selected instance.getMetadataOrThrow(String key) Additional metadata from the selected instance.Deprecated.intgetPort()Port of the selected instance.com.google.protobuf.TimestampTimestamp when resolution occurred.com.google.protobuf.Timestamp.BuilderTimestamp when resolution occurred.com.google.protobuf.TimestampOrBuilderTimestamp when resolution occurred.Explanation of why this instance was selected.com.google.protobuf.ByteStringExplanation of why this instance was selected.Consul service ID of the selected instance.com.google.protobuf.ByteStringConsul service ID of the selected instance.Service name that was resolved.com.google.protobuf.ByteStringService name that was resolved.getTags(int index) Tags associated with the selected instance.com.google.protobuf.ByteStringgetTagsBytes(int index) Tags associated with the selected instance.intTags associated with the selected instance.com.google.protobuf.ProtocolStringListTags associated with the selected instance.intTotal number of instances found (including unhealthy).Version of the selected instance.com.google.protobuf.ByteStringVersion of the selected instance.booleanTimestamp when resolution occurred.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(ResolveServiceResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeResolvedAt(com.google.protobuf.Timestamp value) Timestamp when resolution occurred.putAllMetadata(Map<String, String> values) Additional metadata from the selected instance.putMetadata(String key, String value) Additional metadata from the selected instance.removeMetadata(String key) Additional metadata from the selected instance.setCapabilities(int index, String value) Capabilities of the selected instance.setFound(boolean value) Whether a healthy instance was found.setHealthyInstances(int value) Number of healthy instances considered.Host of the selected instance.setHostBytes(com.google.protobuf.ByteString value) Host of the selected instance.setPort(int value) Port of the selected instance.setResolvedAt(com.google.protobuf.Timestamp value) Timestamp when resolution occurred.setResolvedAt(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp when resolution occurred.setSelectionReason(String value) Explanation of why this instance was selected.setSelectionReasonBytes(com.google.protobuf.ByteString value) Explanation of why this instance was selected.setServiceId(String value) Consul service ID of the selected instance.setServiceIdBytes(com.google.protobuf.ByteString value) Consul service ID of the selected instance.setServiceName(String value) Service name that was resolved.setServiceNameBytes(com.google.protobuf.ByteString value) Service name that was resolved.Tags associated with the selected instance.setTotalInstances(int value) Total number of instances found (including unhealthy).setVersion(String value) Version of the selected instance.setVersionBytes(com.google.protobuf.ByteString value) Version of the selected instance.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ResolveServiceResponse.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ResolveServiceResponse.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ResolveServiceResponse.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<ResolveServiceResponse.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<ResolveServiceResponse.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<ResolveServiceResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResolveServiceResponse.Builder>
-
mergeFrom
public ResolveServiceResponse.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<ResolveServiceResponse.Builder>- Throws:
IOException
-
getFound
public boolean getFound()Whether a healthy instance was found.
bool found = 1;- Specified by:
getFoundin interfaceResolveServiceResponseOrBuilder- Returns:
- The found.
-
setFound
Whether a healthy instance was found.
bool found = 1;- Parameters:
value- The found to set.- Returns:
- This builder for chaining.
-
clearFound
Whether a healthy instance was found.
bool found = 1;- Returns:
- This builder for chaining.
-
getServiceName
Service name that was resolved.
string service_name = 2;- Specified by:
getServiceNamein interfaceResolveServiceResponseOrBuilder- Returns:
- The serviceName.
-
getServiceNameBytes
public com.google.protobuf.ByteString getServiceNameBytes()Service name that was resolved.
string service_name = 2;- Specified by:
getServiceNameBytesin interfaceResolveServiceResponseOrBuilder- Returns:
- The bytes for serviceName.
-
setServiceName
Service name that was resolved.
string service_name = 2;- Parameters:
value- The serviceName to set.- Returns:
- This builder for chaining.
-
clearServiceName
Service name that was resolved.
string service_name = 2;- Returns:
- This builder for chaining.
-
setServiceNameBytes
Service name that was resolved.
string service_name = 2;- Parameters:
value- The bytes for serviceName to set.- Returns:
- This builder for chaining.
-
getHost
Host of the selected instance.
string host = 3;- Specified by:
getHostin interfaceResolveServiceResponseOrBuilder- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()Host of the selected instance.
string host = 3;- Specified by:
getHostBytesin interfaceResolveServiceResponseOrBuilder- Returns:
- The bytes for host.
-
setHost
Host of the selected instance.
string host = 3;- Parameters:
value- The host to set.- Returns:
- This builder for chaining.
-
clearHost
Host of the selected instance.
string host = 3;- Returns:
- This builder for chaining.
-
setHostBytes
Host of the selected instance.
string host = 3;- Parameters:
value- The bytes for host to set.- Returns:
- This builder for chaining.
-
getPort
public int getPort()Port of the selected instance.
int32 port = 4;- Specified by:
getPortin interfaceResolveServiceResponseOrBuilder- Returns:
- The port.
-
setPort
Port of the selected instance.
int32 port = 4;- Parameters:
value- The port to set.- Returns:
- This builder for chaining.
-
clearPort
Port of the selected instance.
int32 port = 4;- Returns:
- This builder for chaining.
-
getServiceId
Consul service ID of the selected instance.
string service_id = 5;- Specified by:
getServiceIdin interfaceResolveServiceResponseOrBuilder- Returns:
- The serviceId.
-
getServiceIdBytes
public com.google.protobuf.ByteString getServiceIdBytes()Consul service ID of the selected instance.
string service_id = 5;- Specified by:
getServiceIdBytesin interfaceResolveServiceResponseOrBuilder- Returns:
- The bytes for serviceId.
-
setServiceId
Consul service ID of the selected instance.
string service_id = 5;- Parameters:
value- The serviceId to set.- Returns:
- This builder for chaining.
-
clearServiceId
Consul service ID of the selected instance.
string service_id = 5;- Returns:
- This builder for chaining.
-
setServiceIdBytes
Consul service ID of the selected instance.
string service_id = 5;- Parameters:
value- The bytes for serviceId to set.- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:ResolveServiceResponseOrBuilderAdditional metadata from the selected instance.
map<string, string> metadata = 6;- Specified by:
getMetadataCountin interfaceResolveServiceResponseOrBuilder
-
containsMetadata
Additional metadata from the selected instance.
map<string, string> metadata = 6;- Specified by:
containsMetadatain interfaceResolveServiceResponseOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceResolveServiceResponseOrBuilder
-
getMetadataMap
Additional metadata from the selected instance.
map<string, string> metadata = 6;- Specified by:
getMetadataMapin interfaceResolveServiceResponseOrBuilder
-
getMetadataOrDefault
Additional metadata from the selected instance.
map<string, string> metadata = 6;- Specified by:
getMetadataOrDefaultin interfaceResolveServiceResponseOrBuilder
-
getMetadataOrThrow
Additional metadata from the selected instance.
map<string, string> metadata = 6;- Specified by:
getMetadataOrThrowin interfaceResolveServiceResponseOrBuilder
-
clearMetadata
-
removeMetadata
Additional metadata from the selected instance.
map<string, string> metadata = 6; -
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
Additional metadata from the selected instance.
map<string, string> metadata = 6; -
putAllMetadata
Additional metadata from the selected instance.
map<string, string> metadata = 6; -
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()Tags associated with the selected instance.
repeated string tags = 7;- Specified by:
getTagsListin interfaceResolveServiceResponseOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()Tags associated with the selected instance.
repeated string tags = 7;- Specified by:
getTagsCountin interfaceResolveServiceResponseOrBuilder- Returns:
- The count of tags.
-
getTags
Tags associated with the selected instance.
repeated string tags = 7;- Specified by:
getTagsin interfaceResolveServiceResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index) Tags associated with the selected instance.
repeated string tags = 7;- Specified by:
getTagsBytesin interfaceResolveServiceResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
setTags
Tags associated with the selected instance.
repeated string tags = 7;- Parameters:
index- The index to set the value at.value- The tags to set.- Returns:
- This builder for chaining.
-
addTags
Tags associated with the selected instance.
repeated string tags = 7;- Parameters:
value- The tags to add.- Returns:
- This builder for chaining.
-
addAllTags
Tags associated with the selected instance.
repeated string tags = 7;- Parameters:
values- The tags to add.- Returns:
- This builder for chaining.
-
clearTags
Tags associated with the selected instance.
repeated string tags = 7;- Returns:
- This builder for chaining.
-
addTagsBytes
Tags associated with the selected instance.
repeated string tags = 7;- Parameters:
value- The bytes of the tags to add.- Returns:
- This builder for chaining.
-
getCapabilitiesList
public com.google.protobuf.ProtocolStringList getCapabilitiesList()Capabilities of the selected instance.
repeated string capabilities = 8;- Specified by:
getCapabilitiesListin interfaceResolveServiceResponseOrBuilder- Returns:
- A list containing the capabilities.
-
getCapabilitiesCount
public int getCapabilitiesCount()Capabilities of the selected instance.
repeated string capabilities = 8;- Specified by:
getCapabilitiesCountin interfaceResolveServiceResponseOrBuilder- Returns:
- The count of capabilities.
-
getCapabilities
Capabilities of the selected instance.
repeated string capabilities = 8;- Specified by:
getCapabilitiesin interfaceResolveServiceResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The capabilities at the given index.
-
getCapabilitiesBytes
public com.google.protobuf.ByteString getCapabilitiesBytes(int index) Capabilities of the selected instance.
repeated string capabilities = 8;- Specified by:
getCapabilitiesBytesin interfaceResolveServiceResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the capabilities at the given index.
-
setCapabilities
Capabilities of the selected instance.
repeated string capabilities = 8;- Parameters:
index- The index to set the value at.value- The capabilities to set.- Returns:
- This builder for chaining.
-
addCapabilities
Capabilities of the selected instance.
repeated string capabilities = 8;- Parameters:
value- The capabilities to add.- Returns:
- This builder for chaining.
-
addAllCapabilities
Capabilities of the selected instance.
repeated string capabilities = 8;- Parameters:
values- The capabilities to add.- Returns:
- This builder for chaining.
-
clearCapabilities
Capabilities of the selected instance.
repeated string capabilities = 8;- Returns:
- This builder for chaining.
-
addCapabilitiesBytes
Capabilities of the selected instance.
repeated string capabilities = 8;- Parameters:
value- The bytes of the capabilities to add.- Returns:
- This builder for chaining.
-
getVersion
Version of the selected instance.
string version = 9;- Specified by:
getVersionin interfaceResolveServiceResponseOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()Version of the selected instance.
string version = 9;- Specified by:
getVersionBytesin interfaceResolveServiceResponseOrBuilder- Returns:
- The bytes for version.
-
setVersion
Version of the selected instance.
string version = 9;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Version of the selected instance.
string version = 9;- Returns:
- This builder for chaining.
-
setVersionBytes
Version of the selected instance.
string version = 9;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
getTotalInstances
public int getTotalInstances()Total number of instances found (including unhealthy).
int32 total_instances = 10;- Specified by:
getTotalInstancesin interfaceResolveServiceResponseOrBuilder- Returns:
- The totalInstances.
-
setTotalInstances
Total number of instances found (including unhealthy).
int32 total_instances = 10;- Parameters:
value- The totalInstances to set.- Returns:
- This builder for chaining.
-
clearTotalInstances
Total number of instances found (including unhealthy).
int32 total_instances = 10;- Returns:
- This builder for chaining.
-
getHealthyInstances
public int getHealthyInstances()Number of healthy instances considered.
int32 healthy_instances = 11;- Specified by:
getHealthyInstancesin interfaceResolveServiceResponseOrBuilder- Returns:
- The healthyInstances.
-
setHealthyInstances
Number of healthy instances considered.
int32 healthy_instances = 11;- Parameters:
value- The healthyInstances to set.- Returns:
- This builder for chaining.
-
clearHealthyInstances
Number of healthy instances considered.
int32 healthy_instances = 11;- Returns:
- This builder for chaining.
-
getSelectionReason
Explanation of why this instance was selected.
string selection_reason = 12;- Specified by:
getSelectionReasonin interfaceResolveServiceResponseOrBuilder- Returns:
- The selectionReason.
-
getSelectionReasonBytes
public com.google.protobuf.ByteString getSelectionReasonBytes()Explanation of why this instance was selected.
string selection_reason = 12;- Specified by:
getSelectionReasonBytesin interfaceResolveServiceResponseOrBuilder- Returns:
- The bytes for selectionReason.
-
setSelectionReason
Explanation of why this instance was selected.
string selection_reason = 12;- Parameters:
value- The selectionReason to set.- Returns:
- This builder for chaining.
-
clearSelectionReason
Explanation of why this instance was selected.
string selection_reason = 12;- Returns:
- This builder for chaining.
-
setSelectionReasonBytes
Explanation of why this instance was selected.
string selection_reason = 12;- Parameters:
value- The bytes for selectionReason to set.- Returns:
- This builder for chaining.
-
hasResolvedAt
public boolean hasResolvedAt()Timestamp when resolution occurred.
.google.protobuf.Timestamp resolved_at = 13;- Specified by:
hasResolvedAtin interfaceResolveServiceResponseOrBuilder- Returns:
- Whether the resolvedAt field is set.
-
getResolvedAt
public com.google.protobuf.Timestamp getResolvedAt()Timestamp when resolution occurred.
.google.protobuf.Timestamp resolved_at = 13;- Specified by:
getResolvedAtin interfaceResolveServiceResponseOrBuilder- Returns:
- The resolvedAt.
-
setResolvedAt
Timestamp when resolution occurred.
.google.protobuf.Timestamp resolved_at = 13; -
setResolvedAt
public ResolveServiceResponse.Builder setResolvedAt(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp when resolution occurred.
.google.protobuf.Timestamp resolved_at = 13; -
mergeResolvedAt
Timestamp when resolution occurred.
.google.protobuf.Timestamp resolved_at = 13; -
clearResolvedAt
Timestamp when resolution occurred.
.google.protobuf.Timestamp resolved_at = 13; -
getResolvedAtBuilder
public com.google.protobuf.Timestamp.Builder getResolvedAtBuilder()Timestamp when resolution occurred.
.google.protobuf.Timestamp resolved_at = 13; -
getResolvedAtOrBuilder
public com.google.protobuf.TimestampOrBuilder getResolvedAtOrBuilder()Timestamp when resolution occurred.
.google.protobuf.Timestamp resolved_at = 13;- Specified by:
getResolvedAtOrBuilderin interfaceResolveServiceResponseOrBuilder
-