Class DirectoryPolicy.Builder (0.39.0)

public static final class DirectoryPolicy.Builder extends GeneratedMessage.Builder<DirectoryPolicy.Builder> implements DirectoryPolicyOrBuilder

A directory policy for a Managed Lustre instance.

Protobuf type google.cloud.lustre.v1.DirectoryPolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public DirectoryPolicy build()
Returns
Type Description
DirectoryPolicy

buildPartial()

public DirectoryPolicy buildPartial()
Returns
Type Description
DirectoryPolicy

clear()

public DirectoryPolicy.Builder clear()
Returns
Type Description
DirectoryPolicy.Builder
Overrides

clearDirectoryPath()

public DirectoryPolicy.Builder clearDirectoryPath()

Required. Immutable. The lustre instance filesystem full path of the directory. It must start with a slash. e.g. /lustre/testFolder

string directory_path = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DirectoryPolicy.Builder

This builder for chaining.

clearLustreProjectId()

public DirectoryPolicy.Builder clearLustreProjectId()

Output only. The lustre project ID assigned for the directory by the service. This read-only ID can be used to manage quotas. See more details in https://docs.cloud.google.com/managed-lustre/docs/file-system-quotas#set_quotas

int64 lustre_project_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DirectoryPolicy.Builder

This builder for chaining.

clearName()

public DirectoryPolicy.Builder clearName()

Immutable. Identifier. The resource name of the directory policy. DirectoryPolicy names have the form projects/{project}/locations/{location}/instances/{instance}/directoryPolicies/{id}. {id} is user provided.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DirectoryPolicy.Builder

This builder for chaining.

clearState()

public DirectoryPolicy.Builder clearState()

Output only. The current state of the directory policy.

.google.cloud.lustre.v1.DirectoryPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DirectoryPolicy.Builder

This builder for chaining.

clearUid()

public DirectoryPolicy.Builder clearUid()

Output only. Unique ID of the resource.

string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
DirectoryPolicy.Builder

This builder for chaining.

getDefaultInstanceForType()

public DirectoryPolicy getDefaultInstanceForType()
Returns
Type Description
DirectoryPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDirectoryPath()

public String getDirectoryPath()

Required. Immutable. The lustre instance filesystem full path of the directory. It must start with a slash. e.g. /lustre/testFolder

string directory_path = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The directoryPath.

getDirectoryPathBytes()

public ByteString getDirectoryPathBytes()

Required. Immutable. The lustre instance filesystem full path of the directory. It must start with a slash. e.g. /lustre/testFolder

string directory_path = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for directoryPath.

getLustreProjectId()

public long getLustreProjectId()

Output only. The lustre project ID assigned for the directory by the service. This read-only ID can be used to manage quotas. See more details in https://docs.cloud.google.com/managed-lustre/docs/file-system-quotas#set_quotas

int64 lustre_project_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The lustreProjectId.

getName()

public String getName()

Immutable. Identifier. The resource name of the directory policy. DirectoryPolicy names have the form projects/{project}/locations/{location}/instances/{instance}/directoryPolicies/{id}. {id} is user provided.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. Identifier. The resource name of the directory policy. DirectoryPolicy names have the form projects/{project}/locations/{location}/instances/{instance}/directoryPolicies/{id}. {id} is user provided.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for name.

getState()

public DirectoryPolicy.State getState()

Output only. The current state of the directory policy.

.google.cloud.lustre.v1.DirectoryPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DirectoryPolicy.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the directory policy.

.google.cloud.lustre.v1.DirectoryPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUid()

public String getUid()

Output only. Unique ID of the resource.

string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. Unique ID of the resource.

string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for uid.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DirectoryPolicy other)

public DirectoryPolicy.Builder mergeFrom(DirectoryPolicy other)
Parameter
Name Description
other DirectoryPolicy
Returns
Type Description
DirectoryPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DirectoryPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DirectoryPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DirectoryPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DirectoryPolicy.Builder
Overrides

setDirectoryPath(String value)

public DirectoryPolicy.Builder setDirectoryPath(String value)

Required. Immutable. The lustre instance filesystem full path of the directory. It must start with a slash. e.g. /lustre/testFolder

string directory_path = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The directoryPath to set.

Returns
Type Description
DirectoryPolicy.Builder

This builder for chaining.

setDirectoryPathBytes(ByteString value)

public DirectoryPolicy.Builder setDirectoryPathBytes(ByteString value)

Required. Immutable. The lustre instance filesystem full path of the directory. It must start with a slash. e.g. /lustre/testFolder

string directory_path = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for directoryPath to set.

Returns
Type Description
DirectoryPolicy.Builder

This builder for chaining.

setLustreProjectId(long value)

public DirectoryPolicy.Builder setLustreProjectId(long value)

Output only. The lustre project ID assigned for the directory by the service. This read-only ID can be used to manage quotas. See more details in https://docs.cloud.google.com/managed-lustre/docs/file-system-quotas#set_quotas

int64 lustre_project_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The lustreProjectId to set.

Returns
Type Description
DirectoryPolicy.Builder

This builder for chaining.

setName(String value)

public DirectoryPolicy.Builder setName(String value)

Immutable. Identifier. The resource name of the directory policy. DirectoryPolicy names have the form projects/{project}/locations/{location}/instances/{instance}/directoryPolicies/{id}. {id} is user provided.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DirectoryPolicy.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DirectoryPolicy.Builder setNameBytes(ByteString value)

Immutable. Identifier. The resource name of the directory policy. DirectoryPolicy names have the form projects/{project}/locations/{location}/instances/{instance}/directoryPolicies/{id}. {id} is user provided.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DirectoryPolicy.Builder

This builder for chaining.

setState(DirectoryPolicy.State value)

public DirectoryPolicy.Builder setState(DirectoryPolicy.State value)

Output only. The current state of the directory policy.

.google.cloud.lustre.v1.DirectoryPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DirectoryPolicy.State

The state to set.

Returns
Type Description
DirectoryPolicy.Builder

This builder for chaining.

setStateValue(int value)

public DirectoryPolicy.Builder setStateValue(int value)

Output only. The current state of the directory policy.

.google.cloud.lustre.v1.DirectoryPolicy.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

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

Returns
Type Description
DirectoryPolicy.Builder

This builder for chaining.

setUid(String value)

public DirectoryPolicy.Builder setUid(String value)

Output only. Unique ID of the resource.

string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
DirectoryPolicy.Builder

This builder for chaining.

setUidBytes(ByteString value)

public DirectoryPolicy.Builder setUidBytes(ByteString value)

Output only. Unique ID of the resource.

string uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
DirectoryPolicy.Builder

This builder for chaining.