public static final class Protos.DiscoveryInfo.Builder extends <any> implements Protos.DiscoveryInfoOrBuilder
Service discovery information. The visibility field restricts discovery within a framework (FRAMEWORK), within a Mesos cluster (CLUSTER), or places no restrictions (EXTERNAL). Each port in the ports field also has an optional visibility field. If visibility is specified for a port, it overrides the default service-wide DiscoveryInfo.visibility for that port. The environment, location, and version fields provide first class support for common attributes used to differentiate between similar services. The environment may receive values such as PROD/QA/DEV, the location field may receive values like EAST-US/WEST-US/EUROPE/AMEA, and the version field may receive values like v2.0/v0.9. The exact use of these fields is up to each service discovery system.Protobuf type
mesos.DiscoveryInfo
Modifier and Type | Method and Description |
---|---|
Protos.DiscoveryInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.DiscoveryInfo |
build() |
Protos.DiscoveryInfo |
buildPartial() |
Protos.DiscoveryInfo.Builder |
clear() |
Protos.DiscoveryInfo.Builder |
clearEnvironment()
optional string environment = 3; |
Protos.DiscoveryInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.DiscoveryInfo.Builder |
clearLabels()
optional .mesos.Labels labels = 7; |
Protos.DiscoveryInfo.Builder |
clearLocation()
optional string location = 4; |
Protos.DiscoveryInfo.Builder |
clearName()
optional string name = 2; |
Protos.DiscoveryInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.DiscoveryInfo.Builder |
clearPorts()
optional .mesos.Ports ports = 6; |
Protos.DiscoveryInfo.Builder |
clearVersion()
optional string version = 5; |
Protos.DiscoveryInfo.Builder |
clearVisibility()
required .mesos.DiscoveryInfo.Visibility visibility = 1; |
Protos.DiscoveryInfo.Builder |
clone() |
Protos.DiscoveryInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getEnvironment()
optional string environment = 3; |
com.google.protobuf.ByteString |
getEnvironmentBytes()
optional string environment = 3; |
Protos.Labels |
getLabels()
optional .mesos.Labels labels = 7; |
Protos.Labels.Builder |
getLabelsBuilder()
optional .mesos.Labels labels = 7; |
Protos.LabelsOrBuilder |
getLabelsOrBuilder()
optional .mesos.Labels labels = 7; |
java.lang.String |
getLocation()
optional string location = 4; |
com.google.protobuf.ByteString |
getLocationBytes()
optional string location = 4; |
java.lang.String |
getName()
optional string name = 2; |
com.google.protobuf.ByteString |
getNameBytes()
optional string name = 2; |
Protos.Ports |
getPorts()
optional .mesos.Ports ports = 6; |
Protos.Ports.Builder |
getPortsBuilder()
optional .mesos.Ports ports = 6; |
Protos.PortsOrBuilder |
getPortsOrBuilder()
optional .mesos.Ports ports = 6; |
java.lang.String |
getVersion()
optional string version = 5; |
com.google.protobuf.ByteString |
getVersionBytes()
optional string version = 5; |
Protos.DiscoveryInfo.Visibility |
getVisibility()
required .mesos.DiscoveryInfo.Visibility visibility = 1; |
boolean |
hasEnvironment()
optional string environment = 3; |
boolean |
hasLabels()
optional .mesos.Labels labels = 7; |
boolean |
hasLocation()
optional string location = 4; |
boolean |
hasName()
optional string name = 2; |
boolean |
hasPorts()
optional .mesos.Ports ports = 6; |
boolean |
hasVersion()
optional string version = 5; |
boolean |
hasVisibility()
required .mesos.DiscoveryInfo.Visibility visibility = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.DiscoveryInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.DiscoveryInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.DiscoveryInfo.Builder |
mergeLabels(Protos.Labels value)
optional .mesos.Labels labels = 7; |
Protos.DiscoveryInfo.Builder |
mergePorts(Protos.Ports value)
optional .mesos.Ports ports = 6; |
Protos.DiscoveryInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.DiscoveryInfo.Builder |
setEnvironment(java.lang.String value)
optional string environment = 3; |
Protos.DiscoveryInfo.Builder |
setEnvironmentBytes(com.google.protobuf.ByteString value)
optional string environment = 3; |
Protos.DiscoveryInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.DiscoveryInfo.Builder |
setLabels(Protos.Labels.Builder builderForValue)
optional .mesos.Labels labels = 7; |
Protos.DiscoveryInfo.Builder |
setLabels(Protos.Labels value)
optional .mesos.Labels labels = 7; |
Protos.DiscoveryInfo.Builder |
setLocation(java.lang.String value)
optional string location = 4; |
Protos.DiscoveryInfo.Builder |
setLocationBytes(com.google.protobuf.ByteString value)
optional string location = 4; |
Protos.DiscoveryInfo.Builder |
setName(java.lang.String value)
optional string name = 2; |
Protos.DiscoveryInfo.Builder |
setNameBytes(com.google.protobuf.ByteString value)
optional string name = 2; |
Protos.DiscoveryInfo.Builder |
setPorts(Protos.Ports.Builder builderForValue)
optional .mesos.Ports ports = 6; |
Protos.DiscoveryInfo.Builder |
setPorts(Protos.Ports value)
optional .mesos.Ports ports = 6; |
Protos.DiscoveryInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.DiscoveryInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.DiscoveryInfo.Builder |
setVersion(java.lang.String value)
optional string version = 5; |
Protos.DiscoveryInfo.Builder |
setVersionBytes(com.google.protobuf.ByteString value)
optional string version = 5; |
Protos.DiscoveryInfo.Builder |
setVisibility(Protos.DiscoveryInfo.Visibility value)
required .mesos.DiscoveryInfo.Visibility visibility = 1; |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.DiscoveryInfo.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.DiscoveryInfo getDefaultInstanceForType()
public Protos.DiscoveryInfo build()
public Protos.DiscoveryInfo buildPartial()
public Protos.DiscoveryInfo.Builder clone()
public Protos.DiscoveryInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.DiscoveryInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.DiscoveryInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.DiscoveryInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.DiscoveryInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.DiscoveryInfo.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.DiscoveryInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public boolean hasVisibility()
required .mesos.DiscoveryInfo.Visibility visibility = 1;
hasVisibility
in interface Protos.DiscoveryInfoOrBuilder
public Protos.DiscoveryInfo.Visibility getVisibility()
required .mesos.DiscoveryInfo.Visibility visibility = 1;
getVisibility
in interface Protos.DiscoveryInfoOrBuilder
public Protos.DiscoveryInfo.Builder setVisibility(Protos.DiscoveryInfo.Visibility value)
required .mesos.DiscoveryInfo.Visibility visibility = 1;
public Protos.DiscoveryInfo.Builder clearVisibility()
required .mesos.DiscoveryInfo.Visibility visibility = 1;
public boolean hasName()
optional string name = 2;
hasName
in interface Protos.DiscoveryInfoOrBuilder
public java.lang.String getName()
optional string name = 2;
getName
in interface Protos.DiscoveryInfoOrBuilder
public com.google.protobuf.ByteString getNameBytes()
optional string name = 2;
getNameBytes
in interface Protos.DiscoveryInfoOrBuilder
public Protos.DiscoveryInfo.Builder setName(java.lang.String value)
optional string name = 2;
public Protos.DiscoveryInfo.Builder clearName()
optional string name = 2;
public Protos.DiscoveryInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
optional string name = 2;
public boolean hasEnvironment()
optional string environment = 3;
hasEnvironment
in interface Protos.DiscoveryInfoOrBuilder
public java.lang.String getEnvironment()
optional string environment = 3;
getEnvironment
in interface Protos.DiscoveryInfoOrBuilder
public com.google.protobuf.ByteString getEnvironmentBytes()
optional string environment = 3;
getEnvironmentBytes
in interface Protos.DiscoveryInfoOrBuilder
public Protos.DiscoveryInfo.Builder setEnvironment(java.lang.String value)
optional string environment = 3;
public Protos.DiscoveryInfo.Builder clearEnvironment()
optional string environment = 3;
public Protos.DiscoveryInfo.Builder setEnvironmentBytes(com.google.protobuf.ByteString value)
optional string environment = 3;
public boolean hasLocation()
optional string location = 4;
hasLocation
in interface Protos.DiscoveryInfoOrBuilder
public java.lang.String getLocation()
optional string location = 4;
getLocation
in interface Protos.DiscoveryInfoOrBuilder
public com.google.protobuf.ByteString getLocationBytes()
optional string location = 4;
getLocationBytes
in interface Protos.DiscoveryInfoOrBuilder
public Protos.DiscoveryInfo.Builder setLocation(java.lang.String value)
optional string location = 4;
public Protos.DiscoveryInfo.Builder clearLocation()
optional string location = 4;
public Protos.DiscoveryInfo.Builder setLocationBytes(com.google.protobuf.ByteString value)
optional string location = 4;
public boolean hasVersion()
optional string version = 5;
hasVersion
in interface Protos.DiscoveryInfoOrBuilder
public java.lang.String getVersion()
optional string version = 5;
getVersion
in interface Protos.DiscoveryInfoOrBuilder
public com.google.protobuf.ByteString getVersionBytes()
optional string version = 5;
getVersionBytes
in interface Protos.DiscoveryInfoOrBuilder
public Protos.DiscoveryInfo.Builder setVersion(java.lang.String value)
optional string version = 5;
public Protos.DiscoveryInfo.Builder clearVersion()
optional string version = 5;
public Protos.DiscoveryInfo.Builder setVersionBytes(com.google.protobuf.ByteString value)
optional string version = 5;
public boolean hasPorts()
optional .mesos.Ports ports = 6;
hasPorts
in interface Protos.DiscoveryInfoOrBuilder
public Protos.Ports getPorts()
optional .mesos.Ports ports = 6;
getPorts
in interface Protos.DiscoveryInfoOrBuilder
public Protos.DiscoveryInfo.Builder setPorts(Protos.Ports value)
optional .mesos.Ports ports = 6;
public Protos.DiscoveryInfo.Builder setPorts(Protos.Ports.Builder builderForValue)
optional .mesos.Ports ports = 6;
public Protos.DiscoveryInfo.Builder mergePorts(Protos.Ports value)
optional .mesos.Ports ports = 6;
public Protos.DiscoveryInfo.Builder clearPorts()
optional .mesos.Ports ports = 6;
public Protos.Ports.Builder getPortsBuilder()
optional .mesos.Ports ports = 6;
public Protos.PortsOrBuilder getPortsOrBuilder()
optional .mesos.Ports ports = 6;
getPortsOrBuilder
in interface Protos.DiscoveryInfoOrBuilder
public boolean hasLabels()
optional .mesos.Labels labels = 7;
hasLabels
in interface Protos.DiscoveryInfoOrBuilder
public Protos.Labels getLabels()
optional .mesos.Labels labels = 7;
getLabels
in interface Protos.DiscoveryInfoOrBuilder
public Protos.DiscoveryInfo.Builder setLabels(Protos.Labels value)
optional .mesos.Labels labels = 7;
public Protos.DiscoveryInfo.Builder setLabels(Protos.Labels.Builder builderForValue)
optional .mesos.Labels labels = 7;
public Protos.DiscoveryInfo.Builder mergeLabels(Protos.Labels value)
optional .mesos.Labels labels = 7;
public Protos.DiscoveryInfo.Builder clearLabels()
optional .mesos.Labels labels = 7;
public Protos.Labels.Builder getLabelsBuilder()
optional .mesos.Labels labels = 7;
public Protos.LabelsOrBuilder getLabelsOrBuilder()
optional .mesos.Labels labels = 7;
getLabelsOrBuilder
in interface Protos.DiscoveryInfoOrBuilder
public final Protos.DiscoveryInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.DiscoveryInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)