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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapField

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
    • clear

      public ServiceEndpoint.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
    • getDefaultInstanceForType

      public ServiceEndpoint getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ServiceEndpoint build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ServiceEndpoint buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public ServiceEndpoint.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
    • setField

      public ServiceEndpoint.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
    • clearField

      public ServiceEndpoint.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
    • clearOneof

      public ServiceEndpoint.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
    • setRepeatedField

      public ServiceEndpoint.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
    • addRepeatedField

      public ServiceEndpoint.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
    • mergeFrom

      public ServiceEndpoint.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServiceEndpoint.Builder>
    • mergeFrom

      public ServiceEndpoint.Builder mergeFrom(ServiceEndpoint other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getUp in interface ServiceEndpointOrBuilder
      Returns:
      The up.
    • setUp

      public ServiceEndpoint.Builder setUp(boolean value)
       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

      public ServiceEndpoint.Builder 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

      public String getUri()
       URI for this endpoint.
       
      string uri = 2 [json_name = "uri"];
      Specified by:
      getUri in interface ServiceEndpointOrBuilder
      Returns:
      The uri.
    • getUriBytes

      public com.google.protobuf.ByteString getUriBytes()
       URI for this endpoint.
       
      string uri = 2 [json_name = "uri"];
      Specified by:
      getUriBytes in interface ServiceEndpointOrBuilder
      Returns:
      The bytes for uri.
    • setUri

      public ServiceEndpoint.Builder setUri(String value)
       URI for this endpoint.
       
      string uri = 2 [json_name = "uri"];
      Parameters:
      value - The uri to set.
      Returns:
      This builder for chaining.
    • clearUri

      public ServiceEndpoint.Builder clearUri()
       URI for this endpoint.
       
      string uri = 2 [json_name = "uri"];
      Returns:
      This builder for chaining.
    • setUriBytes

      public ServiceEndpoint.Builder setUriBytes(com.google.protobuf.ByteString value)
       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:
      getProtocolValue in interface ServiceEndpointOrBuilder
      Returns:
      The enum numeric value on the wire for protocol.
    • setProtocolValue

      public ServiceEndpoint.Builder setProtocolValue(int value)
       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

      public CacheProtocol getProtocol()
       Cache protocol for this endpoint.
       
      .buildless.config.CacheProtocol protocol = 3 [json_name = "protocol"];
      Specified by:
      getProtocol in interface ServiceEndpointOrBuilder
      Returns:
      The protocol.
    • setProtocol

      public ServiceEndpoint.Builder setProtocol(CacheProtocol value)
       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

      public ServiceEndpoint.Builder 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:
      hasCapabilities in interface ServiceEndpointOrBuilder
      Returns:
      Whether the capabilities field is set.
    • getCapabilities

      public ServiceCapabilities getCapabilities()
       Capabilities of this endpoint.
       
      .buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "capabilities"];
      Specified by:
      getCapabilities in interface ServiceEndpointOrBuilder
      Returns:
      The capabilities.
    • setCapabilities

      public ServiceEndpoint.Builder setCapabilities(ServiceCapabilities value)
       Capabilities of this endpoint.
       
      .buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "capabilities"];
    • setCapabilities

      public ServiceEndpoint.Builder setCapabilities(ServiceCapabilities.Builder builderForValue)
       Capabilities of this endpoint.
       
      .buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "capabilities"];
    • mergeCapabilities

      public ServiceEndpoint.Builder mergeCapabilities(ServiceCapabilities value)
       Capabilities of this endpoint.
       
      .buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "capabilities"];
    • clearCapabilities

      public ServiceEndpoint.Builder clearCapabilities()
       Capabilities of this endpoint.
       
      .buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "capabilities"];
    • getCapabilitiesBuilder

      public ServiceCapabilities.Builder getCapabilitiesBuilder()
       Capabilities of this endpoint.
       
      .buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "capabilities"];
    • getCapabilitiesOrBuilder

      public ServiceCapabilitiesOrBuilder getCapabilitiesOrBuilder()
       Capabilities of this endpoint.
       
      .buildless.service.v1.ServiceCapabilities capabilities = 4 [json_name = "capabilities"];
      Specified by:
      getCapabilitiesOrBuilder in interface ServiceEndpointOrBuilder
    • 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:
      getPriority in interface ServiceEndpointOrBuilder
      Returns:
      The priority.
    • setPriority

      public ServiceEndpoint.Builder setPriority(int value)
       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

      public ServiceEndpoint.Builder 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:
      getTypeValue in interface ServiceEndpointOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public ServiceEndpoint.Builder setTypeValue(int value)
       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

      public ServiceEndpoint.EndpointType getType()
       Type of endpoint described by this payload.
       
      .buildless.service.v1.ServiceEndpoint.EndpointType type = 6 [json_name = "type"];
      Specified by:
      getType in interface ServiceEndpointOrBuilder
      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

      public ServiceEndpoint.Builder 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: ServiceEndpointOrBuilder
       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:
      getContextCount in interface ServiceEndpointOrBuilder
    • containsContext

      public boolean containsContext(String key)
       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:
      containsContext in interface ServiceEndpointOrBuilder
    • getContext

      @Deprecated public Map<String,String> getContext()
      Deprecated.
      Use getContextMap() instead.
      Specified by:
      getContext in interface ServiceEndpointOrBuilder
    • getContextMap

      public Map<String,String> 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:
      getContextMap in interface ServiceEndpointOrBuilder
    • getContextOrDefault

      public String getContextOrDefault(String key, String defaultValue)
       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:
      getContextOrDefault in interface ServiceEndpointOrBuilder
    • getContextOrThrow

      public String getContextOrThrow(String key)
       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:
      getContextOrThrow in interface ServiceEndpointOrBuilder
    • clearContext

      public ServiceEndpoint.Builder clearContext()
    • removeContext

      public ServiceEndpoint.Builder removeContext(String key)
       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 public Map<String,String> getMutableContext()
      Deprecated.
      Use alternate mutation accessors instead.
    • putContext

      public ServiceEndpoint.Builder putContext(String key, String value)
       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

      public ServiceEndpoint.Builder putAllContext(Map<String,String> values)
       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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>
    • mergeUnknownFields

      public final ServiceEndpoint.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceEndpoint.Builder>