Interface ContainerStartedEventOrBuilder (0.46.0)

public interface ContainerStartedEventOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsPortMappings(int key)

public abstract boolean containsPortMappings(int key)

The container-to-host port mappings installed for this container. This set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as well as any specified in the Action definition.

map<int32, int32> port_mappings = 2;

Parameter
Name Description
key int
Returns
Type Description
boolean

getActionId()

public abstract int getActionId()

The numeric ID of the action that started this container.

int32 action_id = 1;

Returns
Type Description
int

The actionId.

getIpAddress()

public abstract String getIpAddress()

The public IP address that can be used to connect to the container. This field is only populated when at least one port mapping is present. If the instance was created with a private address, this field will be empty even if port mappings exist.

string ip_address = 3;

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public abstract ByteString getIpAddressBytes()

The public IP address that can be used to connect to the container. This field is only populated when at least one port mapping is present. If the instance was created with a private address, this field will be empty even if port mappings exist.

string ip_address = 3;

Returns
Type Description
ByteString

The bytes for ipAddress.

getPortMappings() (deprecated)

public abstract Map<Integer,Integer> getPortMappings()

Use #getPortMappingsMap() instead.

Returns
Type Description
Map<java.lang.Integer,java.lang.Integer>

getPortMappingsCount()

public abstract int getPortMappingsCount()

The container-to-host port mappings installed for this container. This set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as well as any specified in the Action definition.

map<int32, int32> port_mappings = 2;

Returns
Type Description
int

getPortMappingsMap()

public abstract Map<Integer,Integer> getPortMappingsMap()

The container-to-host port mappings installed for this container. This set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as well as any specified in the Action definition.

map<int32, int32> port_mappings = 2;

Returns
Type Description
Map<java.lang.Integer,java.lang.Integer>

getPortMappingsOrDefault(int key, int defaultValue)

public abstract int getPortMappingsOrDefault(int key, int defaultValue)

The container-to-host port mappings installed for this container. This set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as well as any specified in the Action definition.

map<int32, int32> port_mappings = 2;

Parameters
Name Description
key int
defaultValue int
Returns
Type Description
int

getPortMappingsOrThrow(int key)

public abstract int getPortMappingsOrThrow(int key)

The container-to-host port mappings installed for this container. This set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as well as any specified in the Action definition.

map<int32, int32> port_mappings = 2;

Parameter
Name Description
key int
Returns
Type Description
int