public static final class Protos.Port extends com.google.protobuf.GeneratedMessageV3 implements Protos.PortOrBuilder
Named port used for service discovery.Protobuf type
mesos.Port
Modifier and Type | Class and Description |
---|---|
static class |
Protos.Port.Builder
Named port used for service discovery.
|
Modifier and Type | Field and Description |
---|---|
static int |
LABELS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NUMBER_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
PROTOCOL_FIELD_NUMBER |
static int |
VISIBILITY_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.Port |
getDefaultInstance() |
Protos.Port |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.Labels |
getLabels()
This can be used to decorate the message with metadata to be
interpreted by external applications such as firewalls.
|
Protos.LabelsOrBuilder |
getLabelsOrBuilder()
This can be used to decorate the message with metadata to be
interpreted by external applications such as firewalls.
|
java.lang.String |
getName()
Name of the service hosted on this port.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the service hosted on this port.
|
int |
getNumber()
Port number on which the framework exposes a service.
|
<any> |
getParserForType() |
java.lang.String |
getProtocol()
Layer 4-7 protocol on which the framework exposes its services.
|
com.google.protobuf.ByteString |
getProtocolBytes()
Layer 4-7 protocol on which the framework exposes its services.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Protos.DiscoveryInfo.Visibility |
getVisibility()
This field restricts discovery within a framework (FRAMEWORK),
within a Mesos cluster (CLUSTER), or places no restrictions (EXTERNAL).
|
int |
hashCode() |
boolean |
hasLabels()
This can be used to decorate the message with metadata to be
interpreted by external applications such as firewalls.
|
boolean |
hasName()
Name of the service hosted on this port.
|
boolean |
hasNumber()
Port number on which the framework exposes a service.
|
boolean |
hasProtocol()
Layer 4-7 protocol on which the framework exposes its services.
|
boolean |
hasVisibility()
This field restricts discovery within a framework (FRAMEWORK),
within a Mesos cluster (CLUSTER), or places no restrictions (EXTERNAL).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Port.Builder |
newBuilder() |
static Protos.Port.Builder |
newBuilder(Protos.Port prototype) |
Protos.Port.Builder |
newBuilderForType() |
protected Protos.Port.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Port |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Port |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Port |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Port |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Port |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Port |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Port |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Port |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Port |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Port |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.Port.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int NUMBER_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER
public static final int VISIBILITY_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 hasNumber()
Port number on which the framework exposes a service.
required uint32 number = 1;
hasNumber
in interface Protos.PortOrBuilder
public int getNumber()
Port number on which the framework exposes a service.
required uint32 number = 1;
getNumber
in interface Protos.PortOrBuilder
public boolean hasName()
Name of the service hosted on this port.
optional string name = 2;
hasName
in interface Protos.PortOrBuilder
public java.lang.String getName()
Name of the service hosted on this port.
optional string name = 2;
getName
in interface Protos.PortOrBuilder
public com.google.protobuf.ByteString getNameBytes()
Name of the service hosted on this port.
optional string name = 2;
getNameBytes
in interface Protos.PortOrBuilder
public boolean hasProtocol()
Layer 4-7 protocol on which the framework exposes its services.
optional string protocol = 3;
hasProtocol
in interface Protos.PortOrBuilder
public java.lang.String getProtocol()
Layer 4-7 protocol on which the framework exposes its services.
optional string protocol = 3;
getProtocol
in interface Protos.PortOrBuilder
public com.google.protobuf.ByteString getProtocolBytes()
Layer 4-7 protocol on which the framework exposes its services.
optional string protocol = 3;
getProtocolBytes
in interface Protos.PortOrBuilder
public boolean hasVisibility()
This field restricts discovery within a framework (FRAMEWORK), within a Mesos cluster (CLUSTER), or places no restrictions (EXTERNAL). The visibility setting for a Port overrides the general visibility setting in the DiscoveryInfo.
optional .mesos.DiscoveryInfo.Visibility visibility = 4;
hasVisibility
in interface Protos.PortOrBuilder
public Protos.DiscoveryInfo.Visibility getVisibility()
This field restricts discovery within a framework (FRAMEWORK), within a Mesos cluster (CLUSTER), or places no restrictions (EXTERNAL). The visibility setting for a Port overrides the general visibility setting in the DiscoveryInfo.
optional .mesos.DiscoveryInfo.Visibility visibility = 4;
getVisibility
in interface Protos.PortOrBuilder
public boolean hasLabels()
This can be used to decorate the message with metadata to be interpreted by external applications such as firewalls.
optional .mesos.Labels labels = 5;
hasLabels
in interface Protos.PortOrBuilder
public Protos.Labels getLabels()
This can be used to decorate the message with metadata to be interpreted by external applications such as firewalls.
optional .mesos.Labels labels = 5;
getLabels
in interface Protos.PortOrBuilder
public Protos.LabelsOrBuilder getLabelsOrBuilder()
This can be used to decorate the message with metadata to be interpreted by external applications such as firewalls.
optional .mesos.Labels labels = 5;
getLabelsOrBuilder
in interface Protos.PortOrBuilder
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.Port parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Port parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Port parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Port parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Port parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Port parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Port parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Port parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Port parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Port parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.Port.Builder newBuilderForType()
public static Protos.Port.Builder newBuilder()
public static Protos.Port.Builder newBuilder(Protos.Port prototype)
public Protos.Port.Builder toBuilder()
protected Protos.Port.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.Port getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.Port getDefaultInstanceForType()