Class ContainerStartedEvent.Builder (0.55.0)

public static final class ContainerStartedEvent.Builder extends GeneratedMessageV3.Builder<ContainerStartedEvent.Builder> implements ContainerStartedEventOrBuilder

An event generated when a container starts.

Protobuf type google.cloud.lifesciences.v2beta.ContainerStartedEvent

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContainerStartedEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContainerStartedEvent.Builder
Overrides

build()

public ContainerStartedEvent build()
Returns
Type Description
ContainerStartedEvent

buildPartial()

public ContainerStartedEvent buildPartial()
Returns
Type Description
ContainerStartedEvent

clear()

public ContainerStartedEvent.Builder clear()
Returns
Type Description
ContainerStartedEvent.Builder
Overrides

clearActionId()

public ContainerStartedEvent.Builder clearActionId()

The numeric ID of the action that started this container.

int32 action_id = 1;

Returns
Type Description
ContainerStartedEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ContainerStartedEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ContainerStartedEvent.Builder
Overrides

clearIpAddress()

public ContainerStartedEvent.Builder clearIpAddress()

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
ContainerStartedEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ContainerStartedEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ContainerStartedEvent.Builder
Overrides

clearPortMappings()

public ContainerStartedEvent.Builder clearPortMappings()
Returns
Type Description
ContainerStartedEvent.Builder

clone()

public ContainerStartedEvent.Builder clone()
Returns
Type Description
ContainerStartedEvent.Builder
Overrides

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
Name Description
key int
Returns
Type Description
boolean

getActionId()

public int getActionId()

The numeric ID of the action that started this container.

int32 action_id = 1;

Returns
Type Description
int

The actionId.

getDefaultInstanceForType()

public ContainerStartedEvent getDefaultInstanceForType()
Returns
Type Description
ContainerStartedEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
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
Type Description
ByteString

The bytes for ipAddress.

getMutablePortMappings() (deprecated)

public Map<Integer,Integer> getMutablePortMappings()

Use alternate mutation accessors instead.

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

getPortMappings() (deprecated)

public Map<Integer,Integer> getPortMappings()

Use #getPortMappingsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key int
defaultValue int
Returns
Type Description
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
Name Description
key int
Returns
Type Description
int

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContainerStartedEvent other)

public ContainerStartedEvent.Builder mergeFrom(ContainerStartedEvent other)
Parameter
Name Description
other ContainerStartedEvent
Returns
Type Description
ContainerStartedEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ContainerStartedEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContainerStartedEvent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ContainerStartedEvent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ContainerStartedEvent.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContainerStartedEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContainerStartedEvent.Builder
Overrides

putAllPortMappings(Map<Integer,Integer> values)

public ContainerStartedEvent.Builder putAllPortMappings(Map<Integer,Integer> values)

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
values Map<java.lang.Integer,java.lang.Integer>
Returns
Type Description
ContainerStartedEvent.Builder

putPortMappings(int key, int value)

public ContainerStartedEvent.Builder putPortMappings(int key, int value)

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
value int
Returns
Type Description
ContainerStartedEvent.Builder

removePortMappings(int key)

public ContainerStartedEvent.Builder removePortMappings(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
ContainerStartedEvent.Builder

setActionId(int value)

public ContainerStartedEvent.Builder setActionId(int value)

The numeric ID of the action that started this container.

int32 action_id = 1;

Parameter
Name Description
value int

The actionId to set.

Returns
Type Description
ContainerStartedEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ContainerStartedEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContainerStartedEvent.Builder
Overrides

setIpAddress(String value)

public ContainerStartedEvent.Builder setIpAddress(String value)

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;

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
ContainerStartedEvent.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public ContainerStartedEvent.Builder setIpAddressBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
ContainerStartedEvent.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ContainerStartedEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ContainerStartedEvent.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ContainerStartedEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContainerStartedEvent.Builder
Overrides