Package com.google.cloud.notebooks.v1
Class Environment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
- com.google.cloud.notebooks.v1.Environment.Builder
-
- All Implemented Interfaces:
EnvironmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Environment
public static final class Environment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder> implements EnvironmentOrBuilder
Definition of a software environment that is used to start a notebook instance.
Protobuf typegoogle.cloud.notebooks.v1.Environment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Environment.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Environmentbuild()EnvironmentbuildPartial()Environment.Builderclear()Environment.BuilderclearContainerImage()Use a container image to start the notebook instance.Environment.BuilderclearCreateTime()Output only.Environment.BuilderclearDescription()A brief description of this environment.Environment.BuilderclearDisplayName()Display name of this environment for the UI.Environment.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Environment.BuilderclearImageType()Environment.BuilderclearName()Output only.Environment.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Environment.BuilderclearPostStartupScript()Path to a Bash script that automatically runs after a notebook instance fully boots up.Environment.BuilderclearVmImage()Use a Compute Engine VM image to start the notebook instance.Environment.Builderclone()ContainerImagegetContainerImage()Use a container image to start the notebook instance.ContainerImage.BuildergetContainerImageBuilder()Use a container image to start the notebook instance.ContainerImageOrBuildergetContainerImageOrBuilder()Use a container image to start the notebook instance.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.EnvironmentgetDefaultInstanceForType()StringgetDescription()A brief description of this environment.com.google.protobuf.ByteStringgetDescriptionBytes()A brief description of this environment.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()Display name of this environment for the UI.com.google.protobuf.ByteStringgetDisplayNameBytes()Display name of this environment for the UI.Environment.ImageTypeCasegetImageTypeCase()StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.StringgetPostStartupScript()Path to a Bash script that automatically runs after a notebook instance fully boots up.com.google.protobuf.ByteStringgetPostStartupScriptBytes()Path to a Bash script that automatically runs after a notebook instance fully boots up.VmImagegetVmImage()Use a Compute Engine VM image to start the notebook instance.VmImage.BuildergetVmImageBuilder()Use a Compute Engine VM image to start the notebook instance.VmImageOrBuildergetVmImageOrBuilder()Use a Compute Engine VM image to start the notebook instance.booleanhasContainerImage()Use a container image to start the notebook instance.booleanhasCreateTime()Output only.booleanhasVmImage()Use a Compute Engine VM image to start the notebook instance.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Environment.BuildermergeContainerImage(ContainerImage value)Use a container image to start the notebook instance.Environment.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.Environment.BuildermergeFrom(Environment other)Environment.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Environment.BuildermergeFrom(com.google.protobuf.Message other)Environment.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Environment.BuildermergeVmImage(VmImage value)Use a Compute Engine VM image to start the notebook instance.Environment.BuildersetContainerImage(ContainerImage value)Use a container image to start the notebook instance.Environment.BuildersetContainerImage(ContainerImage.Builder builderForValue)Use a container image to start the notebook instance.Environment.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.Environment.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Environment.BuildersetDescription(String value)A brief description of this environment.Environment.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)A brief description of this environment.Environment.BuildersetDisplayName(String value)Display name of this environment for the UI.Environment.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Display name of this environment for the UI.Environment.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Environment.BuildersetName(String value)Output only.Environment.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.Environment.BuildersetPostStartupScript(String value)Path to a Bash script that automatically runs after a notebook instance fully boots up.Environment.BuildersetPostStartupScriptBytes(com.google.protobuf.ByteString value)Path to a Bash script that automatically runs after a notebook instance fully boots up.Environment.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Environment.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Environment.BuildersetVmImage(VmImage value)Use a Compute Engine VM image to start the notebook instance.Environment.BuildersetVmImage(VmImage.Builder builderForValue)Use a Compute Engine VM image to start the notebook instance.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
clear
public Environment.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.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.GeneratedMessageV3.Builder<Environment.Builder>
-
getDefaultInstanceForType
public Environment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Environment build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Environment buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Environment.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
setField
public Environment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
clearField
public Environment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
clearOneof
public Environment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
setRepeatedField
public Environment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
addRepeatedField
public Environment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
mergeFrom
public Environment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Environment.Builder>
-
mergeFrom
public Environment.Builder mergeFrom(Environment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
mergeFrom
public Environment.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<Environment.Builder>- Throws:
IOException
-
getImageTypeCase
public Environment.ImageTypeCase getImageTypeCase()
- Specified by:
getImageTypeCasein interfaceEnvironmentOrBuilder
-
clearImageType
public Environment.Builder clearImageType()
-
getName
public String getName()
Output only. Name of this environment. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceEnvironmentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. Name of this environment. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceEnvironmentOrBuilder- Returns:
- The bytes for name.
-
setName
public Environment.Builder setName(String value)
Output only. Name of this environment. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Environment.Builder clearName()
Output only. Name of this environment. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
public Environment.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. Name of this environment. Format: `projects/{project_id}/locations/{location}/environments/{environment_id}`string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
Display name of this environment for the UI.
string display_name = 2;- Specified by:
getDisplayNamein interfaceEnvironmentOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Display name of this environment for the UI.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceEnvironmentOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public Environment.Builder setDisplayName(String value)
Display name of this environment for the UI.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public Environment.Builder clearDisplayName()
Display name of this environment for the UI.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public Environment.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Display name of this environment for the UI.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
A brief description of this environment.
string description = 3;- Specified by:
getDescriptionin interfaceEnvironmentOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A brief description of this environment.
string description = 3;- Specified by:
getDescriptionBytesin interfaceEnvironmentOrBuilder- Returns:
- The bytes for description.
-
setDescription
public Environment.Builder setDescription(String value)
A brief description of this environment.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Environment.Builder clearDescription()
A brief description of this environment.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Environment.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A brief description of this environment.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasVmImage
public boolean hasVmImage()
Use a Compute Engine VM image to start the notebook instance.
.google.cloud.notebooks.v1.VmImage vm_image = 6;- Specified by:
hasVmImagein interfaceEnvironmentOrBuilder- Returns:
- Whether the vmImage field is set.
-
getVmImage
public VmImage getVmImage()
Use a Compute Engine VM image to start the notebook instance.
.google.cloud.notebooks.v1.VmImage vm_image = 6;- Specified by:
getVmImagein interfaceEnvironmentOrBuilder- Returns:
- The vmImage.
-
setVmImage
public Environment.Builder setVmImage(VmImage value)
Use a Compute Engine VM image to start the notebook instance.
.google.cloud.notebooks.v1.VmImage vm_image = 6;
-
setVmImage
public Environment.Builder setVmImage(VmImage.Builder builderForValue)
Use a Compute Engine VM image to start the notebook instance.
.google.cloud.notebooks.v1.VmImage vm_image = 6;
-
mergeVmImage
public Environment.Builder mergeVmImage(VmImage value)
Use a Compute Engine VM image to start the notebook instance.
.google.cloud.notebooks.v1.VmImage vm_image = 6;
-
clearVmImage
public Environment.Builder clearVmImage()
Use a Compute Engine VM image to start the notebook instance.
.google.cloud.notebooks.v1.VmImage vm_image = 6;
-
getVmImageBuilder
public VmImage.Builder getVmImageBuilder()
Use a Compute Engine VM image to start the notebook instance.
.google.cloud.notebooks.v1.VmImage vm_image = 6;
-
getVmImageOrBuilder
public VmImageOrBuilder getVmImageOrBuilder()
Use a Compute Engine VM image to start the notebook instance.
.google.cloud.notebooks.v1.VmImage vm_image = 6;- Specified by:
getVmImageOrBuilderin interfaceEnvironmentOrBuilder
-
hasContainerImage
public boolean hasContainerImage()
Use a container image to start the notebook instance.
.google.cloud.notebooks.v1.ContainerImage container_image = 7;- Specified by:
hasContainerImagein interfaceEnvironmentOrBuilder- Returns:
- Whether the containerImage field is set.
-
getContainerImage
public ContainerImage getContainerImage()
Use a container image to start the notebook instance.
.google.cloud.notebooks.v1.ContainerImage container_image = 7;- Specified by:
getContainerImagein interfaceEnvironmentOrBuilder- Returns:
- The containerImage.
-
setContainerImage
public Environment.Builder setContainerImage(ContainerImage value)
Use a container image to start the notebook instance.
.google.cloud.notebooks.v1.ContainerImage container_image = 7;
-
setContainerImage
public Environment.Builder setContainerImage(ContainerImage.Builder builderForValue)
Use a container image to start the notebook instance.
.google.cloud.notebooks.v1.ContainerImage container_image = 7;
-
mergeContainerImage
public Environment.Builder mergeContainerImage(ContainerImage value)
Use a container image to start the notebook instance.
.google.cloud.notebooks.v1.ContainerImage container_image = 7;
-
clearContainerImage
public Environment.Builder clearContainerImage()
Use a container image to start the notebook instance.
.google.cloud.notebooks.v1.ContainerImage container_image = 7;
-
getContainerImageBuilder
public ContainerImage.Builder getContainerImageBuilder()
Use a container image to start the notebook instance.
.google.cloud.notebooks.v1.ContainerImage container_image = 7;
-
getContainerImageOrBuilder
public ContainerImageOrBuilder getContainerImageOrBuilder()
Use a container image to start the notebook instance.
.google.cloud.notebooks.v1.ContainerImage container_image = 7;- Specified by:
getContainerImageOrBuilderin interfaceEnvironmentOrBuilder
-
getPostStartupScript
public String getPostStartupScript()
Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path. Example: `"gs://path-to-file/file-name"`
string post_startup_script = 8;- Specified by:
getPostStartupScriptin interfaceEnvironmentOrBuilder- Returns:
- The postStartupScript.
-
getPostStartupScriptBytes
public com.google.protobuf.ByteString getPostStartupScriptBytes()
Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path. Example: `"gs://path-to-file/file-name"`
string post_startup_script = 8;- Specified by:
getPostStartupScriptBytesin interfaceEnvironmentOrBuilder- Returns:
- The bytes for postStartupScript.
-
setPostStartupScript
public Environment.Builder setPostStartupScript(String value)
Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path. Example: `"gs://path-to-file/file-name"`
string post_startup_script = 8;- Parameters:
value- The postStartupScript to set.- Returns:
- This builder for chaining.
-
clearPostStartupScript
public Environment.Builder clearPostStartupScript()
Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path. Example: `"gs://path-to-file/file-name"`
string post_startup_script = 8;- Returns:
- This builder for chaining.
-
setPostStartupScriptBytes
public Environment.Builder setPostStartupScriptBytes(com.google.protobuf.ByteString value)
Path to a Bash script that automatically runs after a notebook instance fully boots up. The path must be a URL or Cloud Storage path. Example: `"gs://path-to-file/file-name"`
string post_startup_script = 8;- Parameters:
value- The bytes for postStartupScript to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time at which this environment was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceEnvironmentOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time at which this environment was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceEnvironmentOrBuilder- Returns:
- The createTime.
-
setCreateTime
public Environment.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time at which this environment was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Environment.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time at which this environment was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Environment.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time at which this environment was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public Environment.Builder clearCreateTime()
Output only. The time at which this environment was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time at which this environment was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time at which this environment was created.
.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceEnvironmentOrBuilder
-
setUnknownFields
public final Environment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
mergeUnknownFields
public final Environment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
-
-