public static final class Protos.DiscoveryInfo extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
---|---|
static class |
Protos.DiscoveryInfo.Builder
Service discovery information.
|
static class |
Protos.DiscoveryInfo.Visibility
Protobuf enum
mesos.DiscoveryInfo.Visibility |
Modifier and Type | Field and Description |
---|---|
static int |
ENVIRONMENT_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
LOCATION_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
PORTS_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
static int |
VISIBILITY_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.DiscoveryInfo |
getDefaultInstance() |
Protos.DiscoveryInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.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; |
<any> |
getParserForType() |
Protos.Ports |
getPorts()
optional .mesos.Ports ports = 6; |
Protos.PortsOrBuilder |
getPortsOrBuilder()
optional .mesos.Ports ports = 6; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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; |
int |
hashCode() |
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() |
static Protos.DiscoveryInfo.Builder |
newBuilder() |
static Protos.DiscoveryInfo.Builder |
newBuilder(Protos.DiscoveryInfo prototype) |
Protos.DiscoveryInfo.Builder |
newBuilderForType() |
protected Protos.DiscoveryInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.DiscoveryInfo |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.DiscoveryInfo |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DiscoveryInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DiscoveryInfo |
parseFrom(java.nio.ByteBuffer data) |
static Protos.DiscoveryInfo |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DiscoveryInfo |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.DiscoveryInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DiscoveryInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.DiscoveryInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.DiscoveryInfo |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.DiscoveryInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int VISIBILITY_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int ENVIRONMENT_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
public static final int PORTS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
@Deprecated public static final <any> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
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 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 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 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 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 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.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.LabelsOrBuilder getLabelsOrBuilder()
optional .mesos.Labels labels = 7;
getLabelsOrBuilder
in interface Protos.DiscoveryInfoOrBuilder
public final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
java.io.IOException
public int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.DiscoveryInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.DiscoveryInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.DiscoveryInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.DiscoveryInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.DiscoveryInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.DiscoveryInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.DiscoveryInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.DiscoveryInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.DiscoveryInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.DiscoveryInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.DiscoveryInfo.Builder newBuilderForType()
public static Protos.DiscoveryInfo.Builder newBuilder()
public static Protos.DiscoveryInfo.Builder newBuilder(Protos.DiscoveryInfo prototype)
public Protos.DiscoveryInfo.Builder toBuilder()
protected Protos.DiscoveryInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.DiscoveryInfo getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.DiscoveryInfo getDefaultInstanceForType()