Class ContainerStartedEvent (0.9.0)

public final class ContainerStartedEvent extends GeneratedMessageV3 implements ContainerStartedEventOrBuilder

An event generated when a container starts.

Protobuf type google.cloud.lifesciences.v2beta.ContainerStartedEvent

Static Fields

ACTION_ID_FIELD_NUMBER

public static final int ACTION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
TypeDescription
int

PORT_MAPPINGS_FIELD_NUMBER

public static final int PORT_MAPPINGS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ContainerStartedEvent getDefaultInstance()
Returns
TypeDescription
ContainerStartedEvent

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ContainerStartedEvent.Builder newBuilder()
Returns
TypeDescription
ContainerStartedEvent.Builder

newBuilder(ContainerStartedEvent prototype)

public static ContainerStartedEvent.Builder newBuilder(ContainerStartedEvent prototype)
Parameter
NameDescription
prototypeContainerStartedEvent
Returns
TypeDescription
ContainerStartedEvent.Builder

parseDelimitedFrom(InputStream input)

public static ContainerStartedEvent parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ContainerStartedEvent
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContainerStartedEvent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerStartedEvent
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ContainerStartedEvent parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ContainerStartedEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ContainerStartedEvent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerStartedEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ContainerStartedEvent parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ContainerStartedEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ContainerStartedEvent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerStartedEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ContainerStartedEvent parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ContainerStartedEvent
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ContainerStartedEvent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerStartedEvent
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ContainerStartedEvent parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ContainerStartedEvent
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ContainerStartedEvent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerStartedEvent
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ContainerStartedEvent parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ContainerStartedEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ContainerStartedEvent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerStartedEvent
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ContainerStartedEvent> parser()
Returns
TypeDescription
Parser<ContainerStartedEvent>

Methods

containsPortMappings(int key)

public 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
NameDescription
keyint
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getActionId()

public int getActionId()

The numeric ID of the action that started this container.

int32 action_id = 1;

Returns
TypeDescription
int

The actionId.

getDefaultInstanceForType()

public ContainerStartedEvent getDefaultInstanceForType()
Returns
TypeDescription
ContainerStartedEvent

getIpAddress()

public 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
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public 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
TypeDescription
ByteString

The bytes for ipAddress.

getParserForType()

public Parser<ContainerStartedEvent> getParserForType()
Returns
TypeDescription
Parser<ContainerStartedEvent>
Overrides

getPortMappings()

public Map<Integer,Integer> getPortMappings()

Use #getPortMappingsMap() instead.

Returns
TypeDescription
Map<java.lang.Integer,java.lang.Integer>

getPortMappingsCount()

public 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
TypeDescription
int

getPortMappingsMap()

public 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
TypeDescription
Map<java.lang.Integer,java.lang.Integer>

getPortMappingsOrDefault(int key, int defaultValue)

public 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
NameDescription
keyint
defaultValueint
Returns
TypeDescription
int

getPortMappingsOrThrow(int key)

public 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
NameDescription
keyint
Returns
TypeDescription
int

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ContainerStartedEvent.Builder newBuilderForType()
Returns
TypeDescription
ContainerStartedEvent.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ContainerStartedEvent.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ContainerStartedEvent.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ContainerStartedEvent.Builder toBuilder()
Returns
TypeDescription
ContainerStartedEvent.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException