Class EmptyDirVolumeSource.Builder (0.33.0)

publicstaticfinalclass EmptyDirVolumeSource.BuilderextendsGeneratedMessageV3.Builder<EmptyDirVolumeSource.Builder>implementsEmptyDirVolumeSourceOrBuilder

In memory (tmpfs) ephemeral storage. It is ephemeral in the sense that when the sandbox is taken down, the data is destroyed with it (it does not persist across sandbox runs).

Protobuf type google.cloud.run.v2.EmptyDirVolumeSource

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicEmptyDirVolumeSource.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EmptyDirVolumeSource.Builder
Overrides

build()

publicEmptyDirVolumeSourcebuild()
Returns
Type Description
EmptyDirVolumeSource

buildPartial()

publicEmptyDirVolumeSourcebuildPartial()
Returns
Type Description
EmptyDirVolumeSource

clear()

publicEmptyDirVolumeSource.Builderclear()
Returns
Type Description
EmptyDirVolumeSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicEmptyDirVolumeSource.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
EmptyDirVolumeSource.Builder
Overrides

clearMedium()

publicEmptyDirVolumeSource.BuilderclearMedium()

The medium on which the data is stored. Acceptable values today is only MEMORY or none. When none, the default will currently be backed by memory but could change over time. +optional

.google.cloud.run.v2.EmptyDirVolumeSource.Medium medium = 1;

Returns
Type Description
EmptyDirVolumeSource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicEmptyDirVolumeSource.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
EmptyDirVolumeSource.Builder
Overrides

clearSizeLimit()

publicEmptyDirVolumeSource.BuilderclearSizeLimit()

Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers. The default is nil which means that the limit is undefined. More info: https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume. Info in Kubernetes: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir

string size_limit = 2;

Returns
Type Description
EmptyDirVolumeSource.Builder

This builder for chaining.

clone()

publicEmptyDirVolumeSource.Builderclone()
Returns
Type Description
EmptyDirVolumeSource.Builder
Overrides

getDefaultInstanceForType()

publicEmptyDirVolumeSourcegetDefaultInstanceForType()
Returns
Type Description
EmptyDirVolumeSource

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMedium()

publicEmptyDirVolumeSource.MediumgetMedium()

The medium on which the data is stored. Acceptable values today is only MEMORY or none. When none, the default will currently be backed by memory but could change over time. +optional

.google.cloud.run.v2.EmptyDirVolumeSource.Medium medium = 1;

Returns
Type Description
EmptyDirVolumeSource.Medium

The medium.

getMediumValue()

publicintgetMediumValue()

The medium on which the data is stored. Acceptable values today is only MEMORY or none. When none, the default will currently be backed by memory but could change over time. +optional

.google.cloud.run.v2.EmptyDirVolumeSource.Medium medium = 1;

Returns
Type Description
int

The enum numeric value on the wire for medium.

getSizeLimit()

publicStringgetSizeLimit()

Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers. The default is nil which means that the limit is undefined. More info: https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume. Info in Kubernetes: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir

string size_limit = 2;

Returns
Type Description
String

The sizeLimit.

getSizeLimitBytes()

publicByteStringgetSizeLimitBytes()

Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers. The default is nil which means that the limit is undefined. More info: https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume. Info in Kubernetes: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir

string size_limit = 2;

Returns
Type Description
ByteString

The bytes for sizeLimit.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EmptyDirVolumeSource other)

publicEmptyDirVolumeSource.BuildermergeFrom(EmptyDirVolumeSourceother)
Parameter
Name Description
other EmptyDirVolumeSource
Returns
Type Description
EmptyDirVolumeSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicEmptyDirVolumeSource.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EmptyDirVolumeSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicEmptyDirVolumeSource.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
EmptyDirVolumeSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalEmptyDirVolumeSource.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EmptyDirVolumeSource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicEmptyDirVolumeSource.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EmptyDirVolumeSource.Builder
Overrides

setMedium(EmptyDirVolumeSource.Medium value)

publicEmptyDirVolumeSource.BuildersetMedium(EmptyDirVolumeSource.Mediumvalue)

The medium on which the data is stored. Acceptable values today is only MEMORY or none. When none, the default will currently be backed by memory but could change over time. +optional

.google.cloud.run.v2.EmptyDirVolumeSource.Medium medium = 1;

Parameter
Name Description
value EmptyDirVolumeSource.Medium

The medium to set.

Returns
Type Description
EmptyDirVolumeSource.Builder

This builder for chaining.

setMediumValue(int value)

publicEmptyDirVolumeSource.BuildersetMediumValue(intvalue)

The medium on which the data is stored. Acceptable values today is only MEMORY or none. When none, the default will currently be backed by memory but could change over time. +optional

.google.cloud.run.v2.EmptyDirVolumeSource.Medium medium = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for medium to set.

Returns
Type Description
EmptyDirVolumeSource.Builder

This builder for chaining.

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

publicEmptyDirVolumeSource.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EmptyDirVolumeSource.Builder
Overrides

setSizeLimit(String value)

publicEmptyDirVolumeSource.BuildersetSizeLimit(Stringvalue)

Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers. The default is nil which means that the limit is undefined. More info: https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume. Info in Kubernetes: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir

string size_limit = 2;

Parameter
Name Description
value String

The sizeLimit to set.

Returns
Type Description
EmptyDirVolumeSource.Builder

This builder for chaining.

setSizeLimitBytes(ByteString value)

publicEmptyDirVolumeSource.BuildersetSizeLimitBytes(ByteStringvalue)

Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers. The default is nil which means that the limit is undefined. More info: https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume. Info in Kubernetes: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir

string size_limit = 2;

Parameter
Name Description
value ByteString

The bytes for sizeLimit to set.

Returns
Type Description
EmptyDirVolumeSource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalEmptyDirVolumeSource.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EmptyDirVolumeSource.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.