Package com.google.cloud.aiplatform.v1
Class ContainerSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ContainerSpec.Builder>
com.google.cloud.aiplatform.v1.ContainerSpec.Builder
- All Implemented Interfaces:
ContainerSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ContainerSpec
public static final class ContainerSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ContainerSpec.Builder>
implements ContainerSpecOrBuilder
The spec of a Container.Protobuf type
google.cloud.aiplatform.v1.ContainerSpec-
Method Summary
Modifier and TypeMethodDescriptionaddAllArgs(Iterable<String> values) The arguments to be passed when starting the container.addAllCommand(Iterable<String> values) The command to be invoked when the container is started.Environment variables to be passed to the container.The arguments to be passed when starting the container.addArgsBytes(com.google.protobuf.ByteString value) The arguments to be passed when starting the container.addCommand(String value) The command to be invoked when the container is started.addCommandBytes(com.google.protobuf.ByteString value) The command to be invoked when the container is started.Environment variables to be passed to the container.addEnv(int index, EnvVar.Builder builderForValue) Environment variables to be passed to the container.Environment variables to be passed to the container.addEnv(EnvVar.Builder builderForValue) Environment variables to be passed to the container.Environment variables to be passed to the container.addEnvBuilder(int index) Environment variables to be passed to the container.build()clear()The arguments to be passed when starting the container.The command to be invoked when the container is started.clearEnv()Environment variables to be passed to the container.Required.getArgs(int index) The arguments to be passed when starting the container.com.google.protobuf.ByteStringgetArgsBytes(int index) The arguments to be passed when starting the container.intThe arguments to be passed when starting the container.com.google.protobuf.ProtocolStringListThe arguments to be passed when starting the container.getCommand(int index) The command to be invoked when the container is started.com.google.protobuf.ByteStringgetCommandBytes(int index) The command to be invoked when the container is started.intThe command to be invoked when the container is started.com.google.protobuf.ProtocolStringListThe command to be invoked when the container is started.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEnv(int index) Environment variables to be passed to the container.getEnvBuilder(int index) Environment variables to be passed to the container.Environment variables to be passed to the container.intEnvironment variables to be passed to the container.Environment variables to be passed to the container.getEnvOrBuilder(int index) Environment variables to be passed to the container.List<? extends EnvVarOrBuilder>Environment variables to be passed to the container.Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ContainerSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeEnv(int index) Environment variables to be passed to the container.The arguments to be passed when starting the container.setCommand(int index, String value) The command to be invoked when the container is started.Environment variables to be passed to the container.setEnv(int index, EnvVar.Builder builderForValue) Environment variables to be passed to the container.setImageUri(String value) Required.setImageUriBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ContainerSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ContainerSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ContainerSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ContainerSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ContainerSpec.Builder>
-
mergeFrom
public ContainerSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ContainerSpec.Builder>- Throws:
IOException
-
getImageUri
Required. The URI of a container image in the Container Registry that is to be run on each worker replica.
string image_uri = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getImageUriin interfaceContainerSpecOrBuilder- Returns:
- The imageUri.
-
getImageUriBytes
public com.google.protobuf.ByteString getImageUriBytes()Required. The URI of a container image in the Container Registry that is to be run on each worker replica.
string image_uri = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getImageUriBytesin interfaceContainerSpecOrBuilder- Returns:
- The bytes for imageUri.
-
setImageUri
Required. The URI of a container image in the Container Registry that is to be run on each worker replica.
string image_uri = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The imageUri to set.- Returns:
- This builder for chaining.
-
clearImageUri
Required. The URI of a container image in the Container Registry that is to be run on each worker replica.
string image_uri = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setImageUriBytes
Required. The URI of a container image in the Container Registry that is to be run on each worker replica.
string image_uri = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for imageUri to set.- Returns:
- This builder for chaining.
-
getCommandList
public com.google.protobuf.ProtocolStringList getCommandList()The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.
repeated string command = 2;- Specified by:
getCommandListin interfaceContainerSpecOrBuilder- Returns:
- A list containing the command.
-
getCommandCount
public int getCommandCount()The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.
repeated string command = 2;- Specified by:
getCommandCountin interfaceContainerSpecOrBuilder- Returns:
- The count of command.
-
getCommand
The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.
repeated string command = 2;- Specified by:
getCommandin interfaceContainerSpecOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The command at the given index.
-
getCommandBytes
public com.google.protobuf.ByteString getCommandBytes(int index) The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.
repeated string command = 2;- Specified by:
getCommandBytesin interfaceContainerSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the command at the given index.
-
setCommand
The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.
repeated string command = 2;- Parameters:
index- The index to set the value at.value- The command to set.- Returns:
- This builder for chaining.
-
addCommand
The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.
repeated string command = 2;- Parameters:
value- The command to add.- Returns:
- This builder for chaining.
-
addAllCommand
The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.
repeated string command = 2;- Parameters:
values- The command to add.- Returns:
- This builder for chaining.
-
clearCommand
The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.
repeated string command = 2;- Returns:
- This builder for chaining.
-
addCommandBytes
The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.
repeated string command = 2;- Parameters:
value- The bytes of the command to add.- Returns:
- This builder for chaining.
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()The arguments to be passed when starting the container.
repeated string args = 3;- Specified by:
getArgsListin interfaceContainerSpecOrBuilder- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()The arguments to be passed when starting the container.
repeated string args = 3;- Specified by:
getArgsCountin interfaceContainerSpecOrBuilder- Returns:
- The count of args.
-
getArgs
The arguments to be passed when starting the container.
repeated string args = 3;- Specified by:
getArgsin interfaceContainerSpecOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
public com.google.protobuf.ByteString getArgsBytes(int index) The arguments to be passed when starting the container.
repeated string args = 3;- Specified by:
getArgsBytesin interfaceContainerSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
setArgs
The arguments to be passed when starting the container.
repeated string args = 3;- Parameters:
index- The index to set the value at.value- The args to set.- Returns:
- This builder for chaining.
-
addArgs
The arguments to be passed when starting the container.
repeated string args = 3;- Parameters:
value- The args to add.- Returns:
- This builder for chaining.
-
addAllArgs
The arguments to be passed when starting the container.
repeated string args = 3;- Parameters:
values- The args to add.- Returns:
- This builder for chaining.
-
clearArgs
The arguments to be passed when starting the container.
repeated string args = 3;- Returns:
- This builder for chaining.
-
addArgsBytes
The arguments to be passed when starting the container.
repeated string args = 3;- Parameters:
value- The bytes of the args to add.- Returns:
- This builder for chaining.
-
getEnvList
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4;- Specified by:
getEnvListin interfaceContainerSpecOrBuilder
-
getEnvCount
public int getEnvCount()Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4;- Specified by:
getEnvCountin interfaceContainerSpecOrBuilder
-
getEnv
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4;- Specified by:
getEnvin interfaceContainerSpecOrBuilder
-
setEnv
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4; -
setEnv
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4; -
addEnv
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4; -
addEnv
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4; -
addEnv
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4; -
addEnv
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4; -
addAllEnv
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4; -
clearEnv
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4; -
removeEnv
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4; -
getEnvBuilder
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4; -
getEnvOrBuilder
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4;- Specified by:
getEnvOrBuilderin interfaceContainerSpecOrBuilder
-
getEnvOrBuilderList
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4;- Specified by:
getEnvOrBuilderListin interfaceContainerSpecOrBuilder
-
addEnvBuilder
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4; -
addEnvBuilder
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4; -
getEnvBuilderList
Environment variables to be passed to the container. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 4;
-