Class EmptyDirVolumeSource (0.27.0)

public final class EmptyDirVolumeSource extends GeneratedMessageV3 implements EmptyDirVolumeSourceOrBuilder

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

Static Fields

MEDIUM_FIELD_NUMBER

public static final int MEDIUM_FIELD_NUMBER
Field Value
TypeDescription
int

SIZE_LIMIT_FIELD_NUMBER

public static final int SIZE_LIMIT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static EmptyDirVolumeSource getDefaultInstance()
Returns
TypeDescription
EmptyDirVolumeSource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static EmptyDirVolumeSource.Builder newBuilder()
Returns
TypeDescription
EmptyDirVolumeSource.Builder

newBuilder(EmptyDirVolumeSource prototype)

public static EmptyDirVolumeSource.Builder newBuilder(EmptyDirVolumeSource prototype)
Parameter
NameDescription
prototypeEmptyDirVolumeSource
Returns
TypeDescription
EmptyDirVolumeSource.Builder

parseDelimitedFrom(InputStream input)

public static EmptyDirVolumeSource parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EmptyDirVolumeSource
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EmptyDirVolumeSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EmptyDirVolumeSource
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static EmptyDirVolumeSource parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
EmptyDirVolumeSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EmptyDirVolumeSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EmptyDirVolumeSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EmptyDirVolumeSource parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
EmptyDirVolumeSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EmptyDirVolumeSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EmptyDirVolumeSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EmptyDirVolumeSource parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
EmptyDirVolumeSource
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EmptyDirVolumeSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EmptyDirVolumeSource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static EmptyDirVolumeSource parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EmptyDirVolumeSource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EmptyDirVolumeSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EmptyDirVolumeSource
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static EmptyDirVolumeSource parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
EmptyDirVolumeSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EmptyDirVolumeSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EmptyDirVolumeSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<EmptyDirVolumeSource> parser()
Returns
TypeDescription
Parser<EmptyDirVolumeSource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public EmptyDirVolumeSource getDefaultInstanceForType()
Returns
TypeDescription
EmptyDirVolumeSource

getMedium()

public EmptyDirVolumeSource.Medium getMedium()

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
TypeDescription
EmptyDirVolumeSource.Medium

The medium.

getMediumValue()

public int getMediumValue()

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
TypeDescription
int

The enum numeric value on the wire for medium.

getParserForType()

public Parser<EmptyDirVolumeSource> getParserForType()
Returns
TypeDescription
Parser<EmptyDirVolumeSource>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSizeLimit()

public String getSizeLimit()

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
TypeDescription
String

The sizeLimit.

getSizeLimitBytes()

public ByteString getSizeLimitBytes()

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
TypeDescription
ByteString

The bytes for sizeLimit.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public EmptyDirVolumeSource.Builder newBuilderForType()
Returns
TypeDescription
EmptyDirVolumeSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EmptyDirVolumeSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
EmptyDirVolumeSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public EmptyDirVolumeSource.Builder toBuilder()
Returns
TypeDescription
EmptyDirVolumeSource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException