Package com.buildless.service.v1
Class ServiceEndpoint.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
com.buildless.service.v1.ServiceEndpoint.Builder
- All Implemented Interfaces:
ServiceEndpointOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
ServiceEndpoint
public static final class ServiceEndpoint.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
implements ServiceEndpointOrBuilder
Specifies information about a Buildless Protocol endpoint.Protobuf type
buildless.service.v1.ServiceEndpoint-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Capabilities of this endpoint.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Weight to use when considering this endpoint; this value is merely a hint from the server.Cache protocol for this endpoint.Type of endpoint described by this payload.clearUp()Whether this endpoint is up; this is only set if known by the responding service.clearUri()URI for this endpoint.clone()booleancontainsContext(String key) Specifies arbitrary configuration or context related to this capability; the use of this field is implementation- specific.Capabilities of this endpoint.Capabilities 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 final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.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.getType()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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number) final booleanCapabilities of this endpoint.mergeFrom(ServiceEndpoint other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final ServiceEndpoint.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllContext(Map<String, String> values) Specifies arbitrary configuration or context related to this capability; the use of this field is implementation- specific.putContext(String key, String value) Specifies arbitrary configuration or context related to this capability; the use of this field is implementation- specific.removeContext(String key) Specifies arbitrary configuration or context related to this capability; the use of this field is implementation- specific.Capabilities of this endpoint.setCapabilities(ServiceCapabilities.Builder builderForValue) Capabilities of this endpoint.setPriority(int value) Weight to use when considering this endpoint; this value is merely a hint from the server.setProtocol(CacheProtocol value) Cache protocol for this endpoint.setProtocolValue(int value) Cache protocol for this endpoint.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Type of endpoint described by this payload.setTypeValue(int value) Type of endpoint described by this payload.final ServiceEndpoint.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUp(boolean value) Whether this endpoint is up; this is only set if known by the responding service.URI for this endpoint.setUriBytes(com.google.protobuf.ByteString value) URI for this endpoint.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.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.GeneratedMessageV3.Builder<ServiceEndpoint.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
-
setField
public ServiceEndpoint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
-
setRepeatedField
public ServiceEndpoint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
-
addRepeatedField
public ServiceEndpoint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServiceEndpoint.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
-
mergeFrom
public ServiceEndpoint.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<ServiceEndpoint.Builder>- Throws:
IOException
-
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.
-
setUp
Whether this endpoint is up; this is only set if known by the responding service.
bool up = 1 [json_name = "up"];- Parameters:
value- The up to set.- Returns:
- This builder for chaining.
-
clearUp
Whether this endpoint is up; this is only set if known by the responding service.
bool up = 1 [json_name = "up"];- Returns:
- This builder for chaining.
-
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.
-
setUri
URI for this endpoint.
string uri = 2 [json_name = "uri"];- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
URI for this endpoint.
string uri = 2 [json_name = "uri"];- Returns:
- This builder for chaining.
-
setUriBytes
URI for this endpoint.
string uri = 2 [json_name = "uri"];- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
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.
-
setProtocolValue
Cache protocol for this endpoint.
.buildless.config.CacheProtocol protocol = 3 [json_name = "protocol"];- Parameters:
value- The enum numeric value on the wire for protocol to set.- Returns:
- This builder for chaining.
-
getProtocol
Cache protocol for this endpoint.
.buildless.config.CacheProtocol protocol = 3 [json_name = "protocol"];- Specified by:
getProtocolin interfaceServiceEndpointOrBuilder- Returns:
- The protocol.
-
setProtocol
Cache protocol for this endpoint.
.buildless.config.CacheProtocol protocol = 3 [json_name = "protocol"];- Parameters:
value- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
Cache protocol for this endpoint.
.buildless.config.CacheProtocol protocol = 3 [json_name = "protocol"];- Returns:
- This builder for chaining.
-
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.
-
setCapabilities
Capabilities of this endpoint.
.buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "capabilities"]; -
setCapabilities
Capabilities of this endpoint.
.buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "capabilities"]; -
mergeCapabilities
Capabilities of this endpoint.
.buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "capabilities"]; -
clearCapabilities
Capabilities of this endpoint.
.buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "capabilities"]; -
getCapabilitiesBuilder
Capabilities of this endpoint.
.buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "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.
-
setPriority
Weight to use when considering this endpoint; this value is merely a hint from the server.
uint32 priority = 5 [json_name = "priority"];- Parameters:
value- The priority to set.- Returns:
- This builder for chaining.
-
clearPriority
Weight to use when considering this endpoint; this value is merely a hint from the server.
uint32 priority = 5 [json_name = "priority"];- Returns:
- This builder for chaining.
-
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.
-
setTypeValue
Type of endpoint described by this payload.
.buildless.service.v1.ServiceEndpoint.EndpointType type = 6 [json_name = "type"];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
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.
-
setType
Type of endpoint described by this payload.
.buildless.service.v1.ServiceEndpoint.EndpointType type = 6 [json_name = "type"];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Type of endpoint described by this payload.
.buildless.service.v1.ServiceEndpoint.EndpointType type = 6 [json_name = "type"];- Returns:
- This builder for chaining.
-
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
-
clearContext
-
removeContext
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"]; -
getMutableContext
Deprecated.Use alternate mutation accessors instead. -
putContext
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"]; -
putAllContext
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"]; -
setUnknownFields
public final ServiceEndpoint.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
-
mergeUnknownFields
public final ServiceEndpoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
-