Class ContainerImage.Builder (1.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContainerImage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ContainerImage.Builder
Overrides

build()

public ContainerImage build()
Returns
TypeDescription
ContainerImage

buildPartial()

public ContainerImage buildPartial()
Returns
TypeDescription
ContainerImage

clear()

public ContainerImage.Builder clear()
Returns
TypeDescription
ContainerImage.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ContainerImage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ContainerImage.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ContainerImage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ContainerImage.Builder

This builder for chaining.

clone()

public ContainerImage.Builder clone()
Returns
TypeDescription
ContainerImage.Builder
Overrides

getDefaultInstanceForType()

public ContainerImage getDefaultInstanceForType()
Returns
TypeDescription
ContainerImage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for tag.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ContainerImage other)

public ContainerImage.Builder mergeFrom(ContainerImage other)
Parameter
NameDescription
otherContainerImage
Returns
TypeDescription
ContainerImage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ContainerImage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContainerImage.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ContainerImage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ContainerImage.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContainerImage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ContainerImage.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ContainerImage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ContainerImage.Builder
Overrides

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

public ContainerImage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The repository to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for repository to set.

Returns
TypeDescription
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
NameDescription
valueString

The tag to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for tag to set.

Returns
TypeDescription
ContainerImage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ContainerImage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ContainerImage.Builder
Overrides