Class ContainerStartedEvent.Builder (0.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContainerStartedEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ContainerStartedEvent.Builder
Overrides

build()

public ContainerStartedEvent build()
Returns
TypeDescription
ContainerStartedEvent

buildPartial()

public ContainerStartedEvent buildPartial()
Returns
TypeDescription
ContainerStartedEvent

clear()

public ContainerStartedEvent.Builder clear()
Returns
TypeDescription
ContainerStartedEvent.Builder
Overrides

clearActionId()

public ContainerStartedEvent.Builder clearActionId()

The numeric ID of the action that started this container.

int32 action_id = 1;

Returns
TypeDescription
ContainerStartedEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ContainerStartedEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ContainerStartedEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ContainerStartedEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ContainerStartedEvent.Builder
Overrides

clearPortMappings()

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

clone()

public ContainerStartedEvent.Builder clone()
Returns
TypeDescription
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
NameDescription
keyint
Returns
TypeDescription
boolean

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

getMutablePortMappings()

public Map<Integer,Integer> getMutablePortMappings()

Use alternate mutation accessors instead.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

internalGetMutableMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ContainerStartedEvent other)

public ContainerStartedEvent.Builder mergeFrom(ContainerStartedEvent other)
Parameter
NameDescription
otherContainerStartedEvent
Returns
TypeDescription
ContainerStartedEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ContainerStartedEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerStartedEvent.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ContainerStartedEvent.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ContainerStartedEvent.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContainerStartedEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<java.lang.Integer,java.lang.Integer>
Returns
TypeDescription
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
NameDescription
keyint
valueint
Returns
TypeDescription
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
NameDescription
keyint
Returns
TypeDescription
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
NameDescription
valueint

The actionId to set.

Returns
TypeDescription
ContainerStartedEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ContainerStartedEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The ipAddress to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for ipAddress to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ContainerStartedEvent.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ContainerStartedEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ContainerStartedEvent.Builder
Overrides