Package com.buildless.service.v1
Class ServiceEndpoint
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.buildless.service.v1.ServiceEndpoint
- All Implemented Interfaces:
ServiceEndpointOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class ServiceEndpoint
extends com.google.protobuf.GeneratedMessageV3
implements ServiceEndpointOrBuilder
Specifies information about a Buildless Protocol endpoint.Protobuf type
buildless.service.v1.ServiceEndpoint- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecifies information about a Buildless Protocol endpoint.static enumEnumerates types of endpoints which may be expressed in a build cache dynamic configuration.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsContext(String key) Specifies arbitrary configuration or context related to this capability; the use of this field is implementation- specific.booleanCapabilities of this endpoint.Capabilities of this endpoint.Deprecated.intSpecifies arbitrary configuration or context related to this capability; the use of this field is implementation- specific.Specifies arbitrary configuration or context related to this capability; the use of this field is implementation- specific.getContextOrDefault(String key, String defaultValue) Specifies arbitrary configuration or context related to this capability; the use of this field is implementation- specific.getContextOrThrow(String key) Specifies arbitrary configuration or context related to this capability; the use of this field is implementation- specific.static ServiceEndpointstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<ServiceEndpoint>intWeight to use when considering this endpoint; this value is merely a hint from the server.Cache protocol for this endpoint.intCache protocol for this endpoint.intgetType()Type of endpoint described by this payload.intType of endpoint described by this payload.booleangetUp()Whether this endpoint is up; this is only set if known by the responding service.getUri()URI for this endpoint.com.google.protobuf.ByteStringURI for this endpoint.booleanCapabilities of this endpoint.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) final booleanstatic ServiceEndpoint.Builderstatic ServiceEndpoint.BuildernewBuilder(ServiceEndpoint prototype) protected ServiceEndpoint.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ServiceEndpointparseDelimitedFrom(InputStream input) static ServiceEndpointparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceEndpointparseFrom(byte[] data) static ServiceEndpointparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceEndpointparseFrom(com.google.protobuf.ByteString data) static ServiceEndpointparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceEndpointparseFrom(com.google.protobuf.CodedInputStream input) static ServiceEndpointparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceEndpointparseFrom(InputStream input) static ServiceEndpointparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ServiceEndpointparseFrom(ByteBuffer data) static ServiceEndpointparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ServiceEndpoint>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
UP_FIELD_NUMBER
public static final int UP_FIELD_NUMBER- See Also:
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER- See Also:
-
PROTOCOL_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER- See Also:
-
CAPABILITIES_FIELD_NUMBER
public static final int CAPABILITIES_FIELD_NUMBER- See Also:
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
CONTEXT_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getUp
public boolean getUp()Whether this endpoint is up; this is only set if known by the responding service.
bool up = 1 [json_name = "up"];- Specified by:
getUpin interfaceServiceEndpointOrBuilder- Returns:
- The up.
-
getUri
URI for this endpoint.
string uri = 2 [json_name = "uri"];- Specified by:
getUriin interfaceServiceEndpointOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()URI for this endpoint.
string uri = 2 [json_name = "uri"];- Specified by:
getUriBytesin interfaceServiceEndpointOrBuilder- Returns:
- The bytes for uri.
-
getProtocolValue
public int getProtocolValue()Cache protocol for this endpoint.
.buildless.config.CacheProtocol protocol = 3 [json_name = "protocol"];- Specified by:
getProtocolValuein interfaceServiceEndpointOrBuilder- Returns:
- The enum numeric value on the wire for protocol.
-
getProtocol
Cache protocol for this endpoint.
.buildless.config.CacheProtocol protocol = 3 [json_name = "protocol"];- Specified by:
getProtocolin interfaceServiceEndpointOrBuilder- Returns:
- The protocol.
-
hasCapabilities
public boolean hasCapabilities()Capabilities of this endpoint.
.buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "capabilities"];- Specified by:
hasCapabilitiesin interfaceServiceEndpointOrBuilder- Returns:
- Whether the capabilities field is set.
-
getCapabilities
Capabilities of this endpoint.
.buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "capabilities"];- Specified by:
getCapabilitiesin interfaceServiceEndpointOrBuilder- Returns:
- The capabilities.
-
getCapabilitiesOrBuilder
Capabilities of this endpoint.
.buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "capabilities"];- Specified by:
getCapabilitiesOrBuilderin interfaceServiceEndpointOrBuilder
-
getPriority
public int getPriority()Weight to use when considering this endpoint; this value is merely a hint from the server.
uint32 priority = 5 [json_name = "priority"];- Specified by:
getPriorityin interfaceServiceEndpointOrBuilder- Returns:
- The priority.
-
getTypeValue
public int getTypeValue()Type of endpoint described by this payload.
.buildless.service.v1.ServiceEndpoint.EndpointType type = 6 [json_name = "type"];- Specified by:
getTypeValuein interfaceServiceEndpointOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
Type of endpoint described by this payload.
.buildless.service.v1.ServiceEndpoint.EndpointType type = 6 [json_name = "type"];- Specified by:
getTypein interfaceServiceEndpointOrBuilder- Returns:
- The type.
-
getContextCount
public int getContextCount()Description copied from interface:ServiceEndpointOrBuilderSpecifies arbitrary configuration or context related to this capability; the use of this field is implementation- specific.
map<string, string> context = 7 [json_name = "context"];- Specified by:
getContextCountin interfaceServiceEndpointOrBuilder
-
containsContext
Specifies arbitrary configuration or context related to this capability; the use of this field is implementation- specific.
map<string, string> context = 7 [json_name = "context"];- Specified by:
containsContextin interfaceServiceEndpointOrBuilder
-
getContext
Deprecated.UsegetContextMap()instead.- Specified by:
getContextin interfaceServiceEndpointOrBuilder
-
getContextMap
Specifies arbitrary configuration or context related to this capability; the use of this field is implementation- specific.
map<string, string> context = 7 [json_name = "context"];- Specified by:
getContextMapin interfaceServiceEndpointOrBuilder
-
getContextOrDefault
Specifies arbitrary configuration or context related to this capability; the use of this field is implementation- specific.
map<string, string> context = 7 [json_name = "context"];- Specified by:
getContextOrDefaultin interfaceServiceEndpointOrBuilder
-
getContextOrThrow
Specifies arbitrary configuration or context related to this capability; the use of this field is implementation- specific.
map<string, string> context = 7 [json_name = "context"];- Specified by:
getContextOrThrowin interfaceServiceEndpointOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ServiceEndpoint parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceEndpoint parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceEndpoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceEndpoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceEndpoint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ServiceEndpoint parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ServiceEndpoint parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ServiceEndpoint parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ServiceEndpoint parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ServiceEndpoint.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-