Class Mirror.Builder (0.39.0)

public static final class Mirror.Builder extends GeneratedMessage.Builder<Mirror.Builder> implements MirrorOrBuilder

Represents a Cloud Storage mirror.

Protobuf type google.cloud.lustre.v1.Mirror

Implements

MirrorOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Mirror build()
Returns
Type Description
Mirror

buildPartial()

public Mirror buildPartial()
Returns
Type Description
Mirror

clear()

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

clearCreateTime()

public Mirror.Builder clearCreateTime()

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Mirror.Builder

clearDeletedFilesRetained()

public Mirror.Builder clearDeletedFilesRetained()

Optional. If true, files are not deleted from Managed Lustre when the source files are deleted from Cloud Storage. Default is false.

bool deleted_files_retained = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Mirror.Builder

This builder for chaining.

clearDescription()

public Mirror.Builder clearDescription()

Optional. Description of the mirror.

string description = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Mirror.Builder

This builder for chaining.

clearDirection()

public Mirror.Builder clearDirection()

Required. Immutable. Represents the direction of the mirror.

.google.cloud.lustre.v1.Mirror.Direction direction = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Mirror.Builder

This builder for chaining.

clearGcsPath()

public Mirror.Builder clearGcsPath()

Required. Immutable. The URI to a Cloud Storage bucket, or a path within a bucket, using the format gs://{BUCKET_NAME}/{OPTIONAL_PATH}/. If a path inside the bucket is specified, it must end with a forward slash (/).

.google.cloud.lustre.v1.GcsPath gcs_path = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Mirror.Builder

clearLabels()

public Mirror.Builder clearLabels()
Returns
Type Description
Mirror.Builder

clearLustrePath()

public Mirror.Builder clearLustrePath()

Required. Immutable. The Managed Lustre directory to mirror to. Must be an absolute path starting with /, for example /data or /data/subdir. Defaults to the root directory, /. If the specified directory doesn't exist, it is created.

.google.cloud.lustre.v1.LustrePath lustre_path = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Mirror.Builder

clearName()

public Mirror.Builder clearName()

Identifier. Name of the mirror. Format: projects/{project}/locations/{location}/instances/{instance}/mirrors/{mirror}

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

Returns
Type Description
Mirror.Builder

This builder for chaining.

clearState()

public Mirror.Builder clearState()

Output only. [Output only] The current state of the mirror.

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

Returns
Type Description
Mirror.Builder

This builder for chaining.

clearUid()

public Mirror.Builder clearUid()

Output only. Unique ID of the resource.

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

Returns
Type Description
Mirror.Builder

This builder for chaining.

clearUpdateTime()

public Mirror.Builder clearUpdateTime()

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Mirror.Builder

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels to apply to the mirror.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Mirror getDefaultInstanceForType()
Returns
Type Description
Mirror

getDeletedFilesRetained()

public boolean getDeletedFilesRetained()

Optional. If true, files are not deleted from Managed Lustre when the source files are deleted from Cloud Storage. Default is false.

bool deleted_files_retained = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The deletedFilesRetained.

getDescription()

public String getDescription()

Optional. Description of the mirror.

string description = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the mirror.

string description = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDirection()

public Mirror.Direction getDirection()

Required. Immutable. Represents the direction of the mirror.

.google.cloud.lustre.v1.Mirror.Direction direction = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Mirror.Direction

The direction.

getDirectionValue()

public int getDirectionValue()

Required. Immutable. Represents the direction of the mirror.

.google.cloud.lustre.v1.Mirror.Direction direction = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for direction.

getGcsPath()

public GcsPath getGcsPath()

Required. Immutable. The URI to a Cloud Storage bucket, or a path within a bucket, using the format gs://{BUCKET_NAME}/{OPTIONAL_PATH}/. If a path inside the bucket is specified, it must end with a forward slash (/).

.google.cloud.lustre.v1.GcsPath gcs_path = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
GcsPath

The gcsPath.

getGcsPathBuilder()

public GcsPath.Builder getGcsPathBuilder()

Required. Immutable. The URI to a Cloud Storage bucket, or a path within a bucket, using the format gs://{BUCKET_NAME}/{OPTIONAL_PATH}/. If a path inside the bucket is specified, it must end with a forward slash (/).

.google.cloud.lustre.v1.GcsPath gcs_path = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
GcsPath.Builder

getGcsPathOrBuilder()

public GcsPathOrBuilder getGcsPathOrBuilder()

Required. Immutable. The URI to a Cloud Storage bucket, or a path within a bucket, using the format gs://{BUCKET_NAME}/{OPTIONAL_PATH}/. If a path inside the bucket is specified, it must end with a forward slash (/).

.google.cloud.lustre.v1.GcsPath gcs_path = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
GcsPathOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels to apply to the mirror.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels to apply to the mirror.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels to apply to the mirror.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels to apply to the mirror.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getLustrePath()

public LustrePath getLustrePath()

Required. Immutable. The Managed Lustre directory to mirror to. Must be an absolute path starting with /, for example /data or /data/subdir. Defaults to the root directory, /. If the specified directory doesn't exist, it is created.

.google.cloud.lustre.v1.LustrePath lustre_path = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
LustrePath

The lustrePath.

getLustrePathBuilder()

public LustrePath.Builder getLustrePathBuilder()

Required. Immutable. The Managed Lustre directory to mirror to. Must be an absolute path starting with /, for example /data or /data/subdir. Defaults to the root directory, /. If the specified directory doesn't exist, it is created.

.google.cloud.lustre.v1.LustrePath lustre_path = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
LustrePath.Builder

getLustrePathOrBuilder()

public LustrePathOrBuilder getLustrePathOrBuilder()

Required. Immutable. The Managed Lustre directory to mirror to. Must be an absolute path starting with /, for example /data or /data/subdir. Defaults to the root directory, /. If the specified directory doesn't exist, it is created.

.google.cloud.lustre.v1.LustrePath lustre_path = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
LustrePathOrBuilder

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. Name of the mirror. Format: projects/{project}/locations/{location}/instances/{instance}/mirrors/{mirror}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of the mirror. Format: projects/{project}/locations/{location}/instances/{instance}/mirrors/{mirror}

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

Returns
Type Description
ByteString

The bytes for name.

getState()

public Mirror.State getState()

Output only. [Output only] The current state of the mirror.

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

Returns
Type Description
Mirror.State

The state.

getStateValue()

public int getStateValue()

Output only. [Output only] The current state of the mirror.

.google.cloud.lustre.v1.Mirror.State state = 12 [(.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 = 11 [(.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 = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasGcsPath()

public boolean hasGcsPath()

Required. Immutable. The URI to a Cloud Storage bucket, or a path within a bucket, using the format gs://{BUCKET_NAME}/{OPTIONAL_PATH}/. If a path inside the bucket is specified, it must end with a forward slash (/).

.google.cloud.lustre.v1.GcsPath gcs_path = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the gcsPath field is set.

hasLustrePath()

public boolean hasLustrePath()

Required. Immutable. The Managed Lustre directory to mirror to. Must be an absolute path starting with /, for example /data or /data/subdir. Defaults to the root directory, /. If the specified directory doesn't exist, it is created.

.google.cloud.lustre.v1.LustrePath lustre_path = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the lustrePath field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Mirror.Builder mergeCreateTime(Timestamp value)

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Mirror.Builder

mergeFrom(Mirror other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcsPath(GcsPath value)

public Mirror.Builder mergeGcsPath(GcsPath value)

Required. Immutable. The URI to a Cloud Storage bucket, or a path within a bucket, using the format gs://{BUCKET_NAME}/{OPTIONAL_PATH}/. If a path inside the bucket is specified, it must end with a forward slash (/).

.google.cloud.lustre.v1.GcsPath gcs_path = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value GcsPath
Returns
Type Description
Mirror.Builder

mergeLustrePath(LustrePath value)

public Mirror.Builder mergeLustrePath(LustrePath value)

Required. Immutable. The Managed Lustre directory to mirror to. Must be an absolute path starting with /, for example /data or /data/subdir. Defaults to the root directory, /. If the specified directory doesn't exist, it is created.

.google.cloud.lustre.v1.LustrePath lustre_path = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value LustrePath
Returns
Type Description
Mirror.Builder

mergeUpdateTime(Timestamp value)

public Mirror.Builder mergeUpdateTime(Timestamp value)

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Mirror.Builder

putAllLabels(Map<String,String> values)

public Mirror.Builder putAllLabels(Map<String,String> values)

Optional. Labels to apply to the mirror.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Mirror.Builder

putLabels(String key, String value)

public Mirror.Builder putLabels(String key, String value)

Optional. Labels to apply to the mirror.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Mirror.Builder

removeLabels(String key)

public Mirror.Builder removeLabels(String key)

Optional. Labels to apply to the mirror.

map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Mirror.Builder

setCreateTime(Timestamp value)

public Mirror.Builder setCreateTime(Timestamp value)

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Mirror.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Mirror.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Create time stamp.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Mirror.Builder

setDeletedFilesRetained(boolean value)

public Mirror.Builder setDeletedFilesRetained(boolean value)

Optional. If true, files are not deleted from Managed Lustre when the source files are deleted from Cloud Storage. Default is false.

bool deleted_files_retained = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The deletedFilesRetained to set.

Returns
Type Description
Mirror.Builder

This builder for chaining.

setDescription(String value)

public Mirror.Builder setDescription(String value)

Optional. Description of the mirror.

string description = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Mirror.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Mirror.Builder setDescriptionBytes(ByteString value)

Optional. Description of the mirror.

string description = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Mirror.Builder

This builder for chaining.

setDirection(Mirror.Direction value)

public Mirror.Builder setDirection(Mirror.Direction value)

Required. Immutable. Represents the direction of the mirror.

.google.cloud.lustre.v1.Mirror.Direction direction = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value Mirror.Direction

The direction to set.

Returns
Type Description
Mirror.Builder

This builder for chaining.

setDirectionValue(int value)

public Mirror.Builder setDirectionValue(int value)

Required. Immutable. Represents the direction of the mirror.

.google.cloud.lustre.v1.Mirror.Direction direction = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value int

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

Returns
Type Description
Mirror.Builder

This builder for chaining.

setGcsPath(GcsPath value)

public Mirror.Builder setGcsPath(GcsPath value)

Required. Immutable. The URI to a Cloud Storage bucket, or a path within a bucket, using the format gs://{BUCKET_NAME}/{OPTIONAL_PATH}/. If a path inside the bucket is specified, it must end with a forward slash (/).

.google.cloud.lustre.v1.GcsPath gcs_path = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value GcsPath
Returns
Type Description
Mirror.Builder

setGcsPath(GcsPath.Builder builderForValue)

public Mirror.Builder setGcsPath(GcsPath.Builder builderForValue)

Required. Immutable. The URI to a Cloud Storage bucket, or a path within a bucket, using the format gs://{BUCKET_NAME}/{OPTIONAL_PATH}/. If a path inside the bucket is specified, it must end with a forward slash (/).

.google.cloud.lustre.v1.GcsPath gcs_path = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
builderForValue GcsPath.Builder
Returns
Type Description
Mirror.Builder

setLustrePath(LustrePath value)

public Mirror.Builder setLustrePath(LustrePath value)

Required. Immutable. The Managed Lustre directory to mirror to. Must be an absolute path starting with /, for example /data or /data/subdir. Defaults to the root directory, /. If the specified directory doesn't exist, it is created.

.google.cloud.lustre.v1.LustrePath lustre_path = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value LustrePath
Returns
Type Description
Mirror.Builder

setLustrePath(LustrePath.Builder builderForValue)

public Mirror.Builder setLustrePath(LustrePath.Builder builderForValue)

Required. Immutable. The Managed Lustre directory to mirror to. Must be an absolute path starting with /, for example /data or /data/subdir. Defaults to the root directory, /. If the specified directory doesn't exist, it is created.

.google.cloud.lustre.v1.LustrePath lustre_path = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
builderForValue LustrePath.Builder
Returns
Type Description
Mirror.Builder

setName(String value)

public Mirror.Builder setName(String value)

Identifier. Name of the mirror. Format: projects/{project}/locations/{location}/instances/{instance}/mirrors/{mirror}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Mirror.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Mirror.Builder setNameBytes(ByteString value)

Identifier. Name of the mirror. Format: projects/{project}/locations/{location}/instances/{instance}/mirrors/{mirror}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Mirror.Builder

This builder for chaining.

setState(Mirror.State value)

public Mirror.Builder setState(Mirror.State value)

Output only. [Output only] The current state of the mirror.

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

Parameter
Name Description
value Mirror.State

The state to set.

Returns
Type Description
Mirror.Builder

This builder for chaining.

setStateValue(int value)

public Mirror.Builder setStateValue(int value)

Output only. [Output only] The current state of the mirror.

.google.cloud.lustre.v1.Mirror.State state = 12 [(.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
Mirror.Builder

This builder for chaining.

setUid(String value)

public Mirror.Builder setUid(String value)

Output only. Unique ID of the resource.

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

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
Mirror.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Mirror.Builder setUidBytes(ByteString value)

Output only. Unique ID of the resource.

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

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
Mirror.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public Mirror.Builder setUpdateTime(Timestamp value)

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Mirror.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Mirror.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. [Output only] Update time stamp.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Mirror.Builder