public static final class ContainerImage.Builder extends GeneratedMessage.Builder<ContainerImage.Builder> implements ContainerImageOrBuilderDefinition of a container image for starting a notebook instance with the environment installed in a container.
Protobuf type google.cloud.notebooks.v2.ContainerImage
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ContainerImage.BuilderImplements
ContainerImageOrBuilderStatic 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 |
|
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. |
getDefaultInstanceForType()
public ContainerImage getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ContainerImage |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ContainerImage.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ContainerImage.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for tag to set. |
| Returns | |
|---|---|
| Type | Description |
ContainerImage.Builder |
This builder for chaining. |