Class ContainerStartedEvent.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
- com.google.cloud.lifesciences.v2beta.ContainerStartedEvent.Builder
-
- All Implemented Interfaces:
ContainerStartedEventOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ContainerStartedEvent
public static final class ContainerStartedEvent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder> implements ContainerStartedEventOrBuilder
An event generated when a container starts.
Protobuf typegoogle.cloud.lifesciences.v2beta.ContainerStartedEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ContainerStartedEvent.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ContainerStartedEvent
build()
ContainerStartedEvent
buildPartial()
ContainerStartedEvent.Builder
clear()
ContainerStartedEvent.Builder
clearActionId()
The numeric ID of the action that started this container.ContainerStartedEvent.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ContainerStartedEvent.Builder
clearIpAddress()
The public IP address that can be used to connect to the container.ContainerStartedEvent.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ContainerStartedEvent.Builder
clearPortMappings()
ContainerStartedEvent.Builder
clone()
boolean
containsPortMappings(int key)
The container-to-host port mappings installed for this container.int
getActionId()
The numeric ID of the action that started this container.ContainerStartedEvent
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getIpAddress()
The public IP address that can be used to connect to the container.com.google.protobuf.ByteString
getIpAddressBytes()
The public IP address that can be used to connect to the container.Map<Integer,Integer>
getMutablePortMappings()
Deprecated.Map<Integer,Integer>
getPortMappings()
Deprecated.int
getPortMappingsCount()
The container-to-host port mappings installed for this container.Map<Integer,Integer>
getPortMappingsMap()
The container-to-host port mappings installed for this container.int
getPortMappingsOrDefault(int key, int defaultValue)
The container-to-host port mappings installed for this container.int
getPortMappingsOrThrow(int key)
The container-to-host port mappings installed for this container.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
ContainerStartedEvent.Builder
mergeFrom(ContainerStartedEvent other)
ContainerStartedEvent.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ContainerStartedEvent.Builder
mergeFrom(com.google.protobuf.Message other)
ContainerStartedEvent.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ContainerStartedEvent.Builder
putAllPortMappings(Map<Integer,Integer> values)
The container-to-host port mappings installed for this container.ContainerStartedEvent.Builder
putPortMappings(int key, int value)
The container-to-host port mappings installed for this container.ContainerStartedEvent.Builder
removePortMappings(int key)
The container-to-host port mappings installed for this container.ContainerStartedEvent.Builder
setActionId(int value)
The numeric ID of the action that started this container.ContainerStartedEvent.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ContainerStartedEvent.Builder
setIpAddress(String value)
The public IP address that can be used to connect to the container.ContainerStartedEvent.Builder
setIpAddressBytes(com.google.protobuf.ByteString value)
The public IP address that can be used to connect to the container.ContainerStartedEvent.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ContainerStartedEvent.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
clear
public ContainerStartedEvent.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
getDefaultInstanceForType
public ContainerStartedEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ContainerStartedEvent build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ContainerStartedEvent buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ContainerStartedEvent.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
setField
public ContainerStartedEvent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
clearField
public ContainerStartedEvent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
clearOneof
public ContainerStartedEvent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
setRepeatedField
public ContainerStartedEvent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
addRepeatedField
public ContainerStartedEvent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
mergeFrom
public ContainerStartedEvent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ContainerStartedEvent.Builder>
-
mergeFrom
public ContainerStartedEvent.Builder mergeFrom(ContainerStartedEvent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
mergeFrom
public ContainerStartedEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ContainerStartedEvent.Builder>
- Throws:
IOException
-
getActionId
public int getActionId()
The numeric ID of the action that started this container.
int32 action_id = 1;
- Specified by:
getActionId
in interfaceContainerStartedEventOrBuilder
- Returns:
- The actionId.
-
setActionId
public ContainerStartedEvent.Builder setActionId(int value)
The numeric ID of the action that started this container.
int32 action_id = 1;
- Parameters:
value
- The actionId to set.- Returns:
- This builder for chaining.
-
clearActionId
public ContainerStartedEvent.Builder clearActionId()
The numeric ID of the action that started this container.
int32 action_id = 1;
- Returns:
- This builder for chaining.
-
getPortMappingsCount
public int getPortMappingsCount()
Description copied from interface:ContainerStartedEventOrBuilder
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;
- Specified by:
getPortMappingsCount
in interfaceContainerStartedEventOrBuilder
-
containsPortMappings
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;
- Specified by:
containsPortMappings
in interfaceContainerStartedEventOrBuilder
-
getPortMappings
@Deprecated public Map<Integer,Integer> getPortMappings()
Deprecated.UsegetPortMappingsMap()
instead.- Specified by:
getPortMappings
in interfaceContainerStartedEventOrBuilder
-
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;
- Specified by:
getPortMappingsMap
in interfaceContainerStartedEventOrBuilder
-
getPortMappingsOrDefault
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;
- Specified by:
getPortMappingsOrDefault
in interfaceContainerStartedEventOrBuilder
-
getPortMappingsOrThrow
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;
- Specified by:
getPortMappingsOrThrow
in interfaceContainerStartedEventOrBuilder
-
clearPortMappings
public ContainerStartedEvent.Builder clearPortMappings()
-
removePortMappings
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;
-
getMutablePortMappings
@Deprecated public Map<Integer,Integer> getMutablePortMappings()
Deprecated.Use alternate mutation accessors instead.
-
putPortMappings
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;
-
putAllPortMappings
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;
-
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;
- Specified by:
getIpAddress
in interfaceContainerStartedEventOrBuilder
- Returns:
- The ipAddress.
-
getIpAddressBytes
public com.google.protobuf.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;
- Specified by:
getIpAddressBytes
in interfaceContainerStartedEventOrBuilder
- Returns:
- The bytes for ipAddress.
-
setIpAddress
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;
- Parameters:
value
- The ipAddress to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setIpAddressBytes
public ContainerStartedEvent.Builder setIpAddressBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for ipAddress to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ContainerStartedEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
mergeUnknownFields
public final ContainerStartedEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContainerStartedEvent.Builder>
-
-