Class ContainerImage.Builder (1.51.0)

public static final class ContainerImage.Builder extends GeneratedMessageV3.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.v2.ContainerImage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContainerImage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContainerImage.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public ContainerImage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ContainerImage.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ContainerImage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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()

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

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContainerImage.Builder

This builder for chaining.

clone()

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

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()

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

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The tag.

getTagBytes()

public ByteString getTagBytes()

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

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for tag.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContainerImage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContainerImage.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ContainerImage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContainerImage.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ContainerImage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
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)

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

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

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)

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

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for tag to set.

Returns
Type Description
ContainerImage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ContainerImage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContainerImage.Builder
Overrides