public static final class VmImage.Builder extends GeneratedMessage.Builder<VmImage.Builder> implements VmImageOrBuilderDefinition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM.
Protobuf type google.cloud.notebooks.v1beta1.VmImage
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > VmImage.BuilderImplements
VmImageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public VmImage build()| Returns | |
|---|---|
| Type | Description |
VmImage |
|
buildPartial()
public VmImage buildPartial()| Returns | |
|---|---|
| Type | Description |
VmImage |
|
clear()
public VmImage.Builder clear()| Returns | |
|---|---|
| Type | Description |
VmImage.Builder |
|
clearImage()
public VmImage.Builder clearImage()| Returns | |
|---|---|
| Type | Description |
VmImage.Builder |
|
clearImageFamily()
public VmImage.Builder clearImageFamily()Use this VM image family to find the image; the newest image in this family will be used.
string image_family = 3;
| Returns | |
|---|---|
| Type | Description |
VmImage.Builder |
This builder for chaining. |
clearImageName()
public VmImage.Builder clearImageName()Use VM image name to find the image.
string image_name = 2;
| Returns | |
|---|---|
| Type | Description |
VmImage.Builder |
This builder for chaining. |
clearProject()
public VmImage.Builder clearProject() Required. The name of the Google Cloud project that this VM image belongs to.
Format: projects/{project_id}
string project = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
VmImage.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public VmImage getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
VmImage |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getImageCase()
public VmImage.ImageCase getImageCase()| Returns | |
|---|---|
| Type | Description |
VmImage.ImageCase |
|
getImageFamily()
public String getImageFamily()Use this VM image family to find the image; the newest image in this family will be used.
string image_family = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The imageFamily. |
getImageFamilyBytes()
public ByteString getImageFamilyBytes()Use this VM image family to find the image; the newest image in this family will be used.
string image_family = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for imageFamily. |
getImageName()
public String getImageName()Use VM image name to find the image.
string image_name = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The imageName. |
getImageNameBytes()
public ByteString getImageNameBytes()Use VM image name to find the image.
string image_name = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for imageName. |
getProject()
public String getProject() Required. The name of the Google Cloud project that this VM image belongs to.
Format: projects/{project_id}
string project = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The project. |
getProjectBytes()
public ByteString getProjectBytes() Required. The name of the Google Cloud project that this VM image belongs to.
Format: projects/{project_id}
string project = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for project. |
hasImageFamily()
public boolean hasImageFamily()Use this VM image family to find the image; the newest image in this family will be used.
string image_family = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the imageFamily field is set. |
hasImageName()
public boolean hasImageName()Use VM image name to find the image.
string image_name = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the imageName field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(VmImage other)
public VmImage.Builder mergeFrom(VmImage other)| Parameter | |
|---|---|
| Name | Description |
other |
VmImage |
| Returns | |
|---|---|
| Type | Description |
VmImage.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public VmImage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
VmImage.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public VmImage.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
VmImage.Builder |
|
setImageFamily(String value)
public VmImage.Builder setImageFamily(String value)Use this VM image family to find the image; the newest image in this family will be used.
string image_family = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe imageFamily to set. |
| Returns | |
|---|---|
| Type | Description |
VmImage.Builder |
This builder for chaining. |
setImageFamilyBytes(ByteString value)
public VmImage.Builder setImageFamilyBytes(ByteString value)Use this VM image family to find the image; the newest image in this family will be used.
string image_family = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for imageFamily to set. |
| Returns | |
|---|---|
| Type | Description |
VmImage.Builder |
This builder for chaining. |
setImageName(String value)
public VmImage.Builder setImageName(String value)Use VM image name to find the image.
string image_name = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe imageName to set. |
| Returns | |
|---|---|
| Type | Description |
VmImage.Builder |
This builder for chaining. |
setImageNameBytes(ByteString value)
public VmImage.Builder setImageNameBytes(ByteString value)Use VM image name to find the image.
string image_name = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for imageName to set. |
| Returns | |
|---|---|
| Type | Description |
VmImage.Builder |
This builder for chaining. |
setProject(String value)
public VmImage.Builder setProject(String value) Required. The name of the Google Cloud project that this VM image belongs to.
Format: projects/{project_id}
string project = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe project to set. |
| Returns | |
|---|---|
| Type | Description |
VmImage.Builder |
This builder for chaining. |
setProjectBytes(ByteString value)
public VmImage.Builder setProjectBytes(ByteString value) Required. The name of the Google Cloud project that this VM image belongs to.
Format: projects/{project_id}
string project = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for project to set. |
| Returns | |
|---|---|
| Type | Description |
VmImage.Builder |
This builder for chaining. |