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.v1.ContainerImage
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ContainerImage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ContainerImage build()
Returns
buildPartial()
public ContainerImage buildPartial()
Returns
clear()
public ContainerImage.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ContainerImage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ContainerImage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clearTag()
public ContainerImage.Builder clearTag()
The tag of the container image. If not specified, this defaults
to the latest tag.
string tag = 2;
Returns
clone()
public ContainerImage.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ContainerImage getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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()
The tag of the container image. If not specified, this defaults
to the latest tag.
string tag = 2;
Returns
getTagBytes()
public ByteString getTagBytes()
The tag of the container image. If not specified, this defaults
to the latest tag.
string tag = 2;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ContainerImage other)
public ContainerImage.Builder mergeFrom(ContainerImage other)
Parameter
Returns
public ContainerImage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ContainerImage.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ContainerImage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ContainerImage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ContainerImage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
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
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
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
setUnknownFields(UnknownFieldSet unknownFields)
public final ContainerImage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides