public static final class Protos.NetworkInfo.IPAddress extends com.google.protobuf.GeneratedMessageV3 implements Protos.NetworkInfo.IPAddressOrBuilder
Specifies a request for an IP address, or reports the assigned container IP address. Users can request an automatically assigned IP (for example, via an IPAM service) or a specific IP by adding a NetworkInfo to the ContainerInfo for a task. On a request, specifying neither `protocol` nor `ip_address` means that any available address may be assigned.Protobuf type
mesos.NetworkInfo.IPAddress
Modifier and Type | Class and Description |
---|---|
static class |
Protos.NetworkInfo.IPAddress.Builder
Specifies a request for an IP address, or reports the assigned container
IP address.
|
Modifier and Type | Field and Description |
---|---|
static int |
IP_ADDRESS_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
PROTOCOL_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static Protos.NetworkInfo.IPAddress |
getDefaultInstance() |
Protos.NetworkInfo.IPAddress |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getIpAddress()
Statically assigned IP provided by the Framework.
|
com.google.protobuf.ByteString |
getIpAddressBytes()
Statically assigned IP provided by the Framework.
|
<any> |
getParserForType() |
Protos.NetworkInfo.Protocol |
getProtocol()
Specify IP address requirement.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasIpAddress()
Statically assigned IP provided by the Framework.
|
boolean |
hasProtocol()
Specify IP address requirement.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.NetworkInfo.IPAddress.Builder |
newBuilder() |
static Protos.NetworkInfo.IPAddress.Builder |
newBuilder(Protos.NetworkInfo.IPAddress prototype) |
Protos.NetworkInfo.IPAddress.Builder |
newBuilderForType() |
protected Protos.NetworkInfo.IPAddress.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.NetworkInfo.IPAddress |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.NetworkInfo.IPAddress |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.NetworkInfo.IPAddress |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.NetworkInfo.IPAddress |
parseFrom(java.nio.ByteBuffer data) |
static Protos.NetworkInfo.IPAddress |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.NetworkInfo.IPAddress |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.NetworkInfo.IPAddress |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.NetworkInfo.IPAddress |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.NetworkInfo.IPAddress |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.NetworkInfo.IPAddress |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.NetworkInfo.IPAddress.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int PROTOCOL_FIELD_NUMBER
public static final int IP_ADDRESS_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 hasProtocol()
Specify IP address requirement. Set protocol to the desired value to request the network isolator on the Agent to assign an IP address to the container being launched. If a specific IP address is specified in ip_address, this field should not be set.
optional .mesos.NetworkInfo.Protocol protocol = 1 [default = IPv4];
hasProtocol
in interface Protos.NetworkInfo.IPAddressOrBuilder
public Protos.NetworkInfo.Protocol getProtocol()
Specify IP address requirement. Set protocol to the desired value to request the network isolator on the Agent to assign an IP address to the container being launched. If a specific IP address is specified in ip_address, this field should not be set.
optional .mesos.NetworkInfo.Protocol protocol = 1 [default = IPv4];
getProtocol
in interface Protos.NetworkInfo.IPAddressOrBuilder
public boolean hasIpAddress()
Statically assigned IP provided by the Framework. This IP will be assigned to the container by the network isolator module on the Agent. This field should not be used with the protocol field above. If an explicit address is requested but is unavailable, the network isolator should fail the task.
optional string ip_address = 2;
hasIpAddress
in interface Protos.NetworkInfo.IPAddressOrBuilder
public java.lang.String getIpAddress()
Statically assigned IP provided by the Framework. This IP will be assigned to the container by the network isolator module on the Agent. This field should not be used with the protocol field above. If an explicit address is requested but is unavailable, the network isolator should fail the task.
optional string ip_address = 2;
getIpAddress
in interface Protos.NetworkInfo.IPAddressOrBuilder
public com.google.protobuf.ByteString getIpAddressBytes()
Statically assigned IP provided by the Framework. This IP will be assigned to the container by the network isolator module on the Agent. This field should not be used with the protocol field above. If an explicit address is requested but is unavailable, the network isolator should fail the task.
optional string ip_address = 2;
getIpAddressBytes
in interface Protos.NetworkInfo.IPAddressOrBuilder
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.NetworkInfo.IPAddress parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.NetworkInfo.IPAddress parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.NetworkInfo.IPAddress parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.NetworkInfo.IPAddress parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.NetworkInfo.IPAddress parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.NetworkInfo.IPAddress parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.NetworkInfo.IPAddress parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.NetworkInfo.IPAddress parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.NetworkInfo.IPAddress parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.NetworkInfo.IPAddress parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.NetworkInfo.IPAddress.Builder newBuilderForType()
public static Protos.NetworkInfo.IPAddress.Builder newBuilder()
public static Protos.NetworkInfo.IPAddress.Builder newBuilder(Protos.NetworkInfo.IPAddress prototype)
public Protos.NetworkInfo.IPAddress.Builder toBuilder()
protected Protos.NetworkInfo.IPAddress.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.NetworkInfo.IPAddress getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.NetworkInfo.IPAddress getDefaultInstanceForType()