Class ContainerImage.Builder (1.81.0)

public static final class ContainerImage.Builder extends GeneratedMessage.Builder<ContainerImage.Builder> implements ContainerImageOrBuilder

Definition of a container image for starting a notebook instance with the environment installed in a container.

Protobuf type google.cloud.notebooks.v1beta1.ContainerImage

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ContainerImage build()
Returns
Type Description
ContainerImage

buildPartial()

public ContainerImage buildPartial()
Returns
Type Description
ContainerImage

clear()

public ContainerImage.Builder clear()
Returns
Type Description
ContainerImage.Builder
Overrides

clearRepository()

public ContainerImage.Builder clearRepository()

Required. The path to the container image repository. For example: gcr.io/{project_id}/{image_name}

string repository = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContainerImage.Builder

This builder for chaining.

clearTag()

public ContainerImage.Builder clearTag()

The tag of the container image. If not specified, this defaults to the latest tag.

string tag = 2;

Returns
Type Description
ContainerImage.Builder

This builder for chaining.

getDefaultInstanceForType()

public ContainerImage getDefaultInstanceForType()
Returns
Type Description
ContainerImage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRepository()

public String getRepository()

Required. The path to the container image repository. For example: gcr.io/{project_id}/{image_name}

string repository = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The repository.

getRepositoryBytes()

public ByteString getRepositoryBytes()

Required. The path to the container image repository. For example: gcr.io/{project_id}/{image_name}

string repository = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for repository.

getTag()

public String getTag()

The tag of the container image. If not specified, this defaults to the latest tag.

string tag = 2;

Returns
Type Description
String

The tag.

getTagBytes()

public ByteString getTagBytes()

The tag of the container image. If not specified, this defaults to the latest tag.

string tag = 2;

Returns
Type Description
ByteString

The bytes for tag.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContainerImage other)

public ContainerImage.Builder mergeFrom(ContainerImage other)
Parameter
Name Description
other ContainerImage
Returns
Type Description
ContainerImage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ContainerImage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContainerImage.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ContainerImage.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ContainerImage.Builder
Overrides

setRepository(String value)

public ContainerImage.Builder setRepository(String value)

Required. The path to the container image repository. For example: gcr.io/{project_id}/{image_name}

string repository = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The repository to set.

Returns
Type Description
ContainerImage.Builder

This builder for chaining.

setRepositoryBytes(ByteString value)

public ContainerImage.Builder setRepositoryBytes(ByteString value)

Required. The path to the container image repository. For example: gcr.io/{project_id}/{image_name}

string repository = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for repository to set.

Returns
Type Description
ContainerImage.Builder

This builder for chaining.

setTag(String value)

public ContainerImage.Builder setTag(String value)

The tag of the container image. If not specified, this defaults to the latest tag.

string tag = 2;

Parameter
Name Description
value String

The tag to set.

Returns
Type Description
ContainerImage.Builder

This builder for chaining.

setTagBytes(ByteString value)

public ContainerImage.Builder setTagBytes(ByteString value)

The tag of the container image. If not specified, this defaults to the latest tag.

string tag = 2;

Parameter
Name Description
value ByteString

The bytes for tag to set.

Returns
Type Description
ContainerImage.Builder

This builder for chaining.