Class VersionToPath.Builder (0.23.0)

public static final class VersionToPath.Builder extends GeneratedMessageV3.Builder<VersionToPath.Builder> implements VersionToPathOrBuilder

VersionToPath maps a specific version of a secret to a relative file to mount to, relative to VolumeMount's mount_path.

Protobuf type google.cloud.run.v2.VersionToPath

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VersionToPath build()
Returns
TypeDescription
VersionToPath

buildPartial()

public VersionToPath buildPartial()
Returns
TypeDescription
VersionToPath

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public VersionToPath.Builder clearMode()

Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.

Notes

  • Internally, a umask of 0222 will be applied to any non-zero value.
  • This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10).
  • This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

int32 mode = 3;

Returns
TypeDescription
VersionToPath.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VersionToPath.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VersionToPath.Builder
Overrides

clearPath()

public VersionToPath.Builder clearPath()

Required. The relative path of the secret in the container.

string path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
VersionToPath.Builder

This builder for chaining.

clearVersion()

public VersionToPath.Builder clearVersion()

The Cloud Secret Manager secret version. Can be 'latest' for the latest value, or an integer or a secret alias for a specific version.

string version = 2;

Returns
TypeDescription
VersionToPath.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public VersionToPath getDefaultInstanceForType()
Returns
TypeDescription
VersionToPath

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMode()

public int getMode()

Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.

Notes

  • Internally, a umask of 0222 will be applied to any non-zero value.
  • This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10).
  • This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

int32 mode = 3;

Returns
TypeDescription
int

The mode.

getPath()

public String getPath()

Required. The relative path of the secret in the container.

string path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

Required. The relative path of the secret in the container.

string path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for path.

getVersion()

public String getVersion()

The Cloud Secret Manager secret version. Can be 'latest' for the latest value, or an integer or a secret alias for a specific version.

string version = 2;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The Cloud Secret Manager secret version. Can be 'latest' for the latest value, or an integer or a secret alias for a specific version.

string version = 2;

Returns
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VersionToPath other)

public VersionToPath.Builder mergeFrom(VersionToPath other)
Parameter
NameDescription
otherVersionToPath
Returns
TypeDescription
VersionToPath.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMode(int value)

public VersionToPath.Builder setMode(int value)

Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.

Notes

  • Internally, a umask of 0222 will be applied to any non-zero value.
  • This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10).
  • This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.

int32 mode = 3;

Parameter
NameDescription
valueint

The mode to set.

Returns
TypeDescription
VersionToPath.Builder

This builder for chaining.

setPath(String value)

public VersionToPath.Builder setPath(String value)

Required. The relative path of the secret in the container.

string path = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The path to set.

Returns
TypeDescription
VersionToPath.Builder

This builder for chaining.

setPathBytes(ByteString value)

public VersionToPath.Builder setPathBytes(ByteString value)

Required. The relative path of the secret in the container.

string path = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
VersionToPath.Builder

This builder for chaining.

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

public VersionToPath.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VersionToPath.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public VersionToPath.Builder setVersion(String value)

The Cloud Secret Manager secret version. Can be 'latest' for the latest value, or an integer or a secret alias for a specific version.

string version = 2;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
VersionToPath.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public VersionToPath.Builder setVersionBytes(ByteString value)

The Cloud Secret Manager secret version. Can be 'latest' for the latest value, or an integer or a secret alias for a specific version.

string version = 2;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
VersionToPath.Builder

This builder for chaining.