public static final class Protos.NetworkInfo.IPAddress.Builder extends <any> 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 | Method and Description |
---|---|
Protos.NetworkInfo.IPAddress.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.NetworkInfo.IPAddress |
build() |
Protos.NetworkInfo.IPAddress |
buildPartial() |
Protos.NetworkInfo.IPAddress.Builder |
clear() |
Protos.NetworkInfo.IPAddress.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.NetworkInfo.IPAddress.Builder |
clearIpAddress()
Statically assigned IP provided by the Framework.
|
Protos.NetworkInfo.IPAddress.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.NetworkInfo.IPAddress.Builder |
clearProtocol()
Specify IP address requirement.
|
Protos.NetworkInfo.IPAddress.Builder |
clone() |
Protos.NetworkInfo.IPAddress |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getIpAddress()
Statically assigned IP provided by the Framework.
|
com.google.protobuf.ByteString |
getIpAddressBytes()
Statically assigned IP provided by the Framework.
|
Protos.NetworkInfo.Protocol |
getProtocol()
Specify IP address requirement.
|
boolean |
hasIpAddress()
Statically assigned IP provided by the Framework.
|
boolean |
hasProtocol()
Specify IP address requirement.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.NetworkInfo.IPAddress.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.NetworkInfo.IPAddress.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.NetworkInfo.IPAddress.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.NetworkInfo.IPAddress.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.NetworkInfo.IPAddress.Builder |
setIpAddress(java.lang.String value)
Statically assigned IP provided by the Framework.
|
Protos.NetworkInfo.IPAddress.Builder |
setIpAddressBytes(com.google.protobuf.ByteString value)
Statically assigned IP provided by the Framework.
|
Protos.NetworkInfo.IPAddress.Builder |
setProtocol(Protos.NetworkInfo.Protocol value)
Specify IP address requirement.
|
Protos.NetworkInfo.IPAddress.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.NetworkInfo.IPAddress.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.NetworkInfo.IPAddress.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.NetworkInfo.IPAddress getDefaultInstanceForType()
public Protos.NetworkInfo.IPAddress build()
public Protos.NetworkInfo.IPAddress buildPartial()
public Protos.NetworkInfo.IPAddress.Builder clone()
public Protos.NetworkInfo.IPAddress.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.NetworkInfo.IPAddress.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.NetworkInfo.IPAddress.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.NetworkInfo.IPAddress.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.NetworkInfo.IPAddress.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.NetworkInfo.IPAddress.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.NetworkInfo.IPAddress.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
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 Protos.NetworkInfo.IPAddress.Builder setProtocol(Protos.NetworkInfo.Protocol value)
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];
public Protos.NetworkInfo.IPAddress.Builder clearProtocol()
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];
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 Protos.NetworkInfo.IPAddress.Builder setIpAddress(java.lang.String value)
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;
public Protos.NetworkInfo.IPAddress.Builder clearIpAddress()
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;
public Protos.NetworkInfo.IPAddress.Builder setIpAddressBytes(com.google.protobuf.ByteString value)
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;
public final Protos.NetworkInfo.IPAddress.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.NetworkInfo.IPAddress.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)