Interface InstanceOrBuilder (1.25.0)

public interface InstanceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 9;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCapacityGb()

public abstract long getCapacityGb()

The storage capacity of the instance in gigabytes (GB = 1024^3 bytes). This capacity can be increased up to max_capacity_gb GB in multipliers of capacity_step_size_gb GB.

int64 capacity_gb = 19;

Returns
TypeDescription
long

The capacityGb.

getCapacityStepSizeGb()

public abstract long getCapacityStepSizeGb()

Output only. The increase/decrease capacity step size.

int64 capacity_step_size_gb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
long

The capacityStepSizeGb.

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. The time when the instance was created.

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

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the instance was created.

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

Returns
TypeDescription
TimestampOrBuilder

getDescription()

public abstract String getDescription()

The description of the instance (2048 characters or less).

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

The description of the instance (2048 characters or less).

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDirectoryServices()

public abstract DirectoryServicesConfig getDirectoryServices()

Directory Services configuration for Kerberos-based authentication. Should only be set if protocol is "NFS_V4_1".

.google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;

Returns
TypeDescription
DirectoryServicesConfig

The directoryServices.

getDirectoryServicesOrBuilder()

public abstract DirectoryServicesConfigOrBuilder getDirectoryServicesOrBuilder()

Directory Services configuration for Kerberos-based authentication. Should only be set if protocol is "NFS_V4_1".

.google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;

Returns
TypeDescription
DirectoryServicesConfigOrBuilder

getEtag()

public abstract String getEtag()

Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.

string etag = 12;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public abstract ByteString getEtagBytes()

Server-specified ETag for the instance resource to prevent simultaneous updates from overwriting each other.

string etag = 12;

Returns
TypeDescription
ByteString

The bytes for etag.

getFileShares(int index)

public abstract FileShareConfig getFileShares(int index)

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileShareConfig

getFileSharesCount()

public abstract int getFileSharesCount()

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Returns
TypeDescription
int

getFileSharesList()

public abstract List<FileShareConfig> getFileSharesList()

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Returns
TypeDescription
List<FileShareConfig>

getFileSharesOrBuilder(int index)

public abstract FileShareConfigOrBuilder getFileSharesOrBuilder(int index)

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
FileShareConfigOrBuilder

getFileSharesOrBuilderList()

public abstract List<? extends FileShareConfigOrBuilder> getFileSharesOrBuilderList()

File system shares on the instance. For this version, only a single file share is supported.

repeated .google.cloud.filestore.v1beta1.FileShareConfig file_shares = 10;

Returns
TypeDescription
List<? extends com.google.cloud.filestore.v1beta1.FileShareConfigOrBuilder>

getKmsKeyName()

public abstract String getKmsKeyName()

KMS key name used for data encryption.

string kms_key_name = 14;

Returns
TypeDescription
String

The kmsKeyName.

getKmsKeyNameBytes()

public abstract ByteString getKmsKeyNameBytes()

KMS key name used for data encryption.

string kms_key_name = 14;

Returns
TypeDescription
ByteString

The bytes for kmsKeyName.

getLabels()

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Resource labels to represent user provided metadata.

map<string, string> labels = 9;

Returns
TypeDescription
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

Resource labels to represent user provided metadata.

map<string, string> labels = 9;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

Resource labels to represent user provided metadata.

map<string, string> labels = 9;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

Resource labels to represent user provided metadata.

map<string, string> labels = 9;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMaxCapacityGb()

public abstract long getMaxCapacityGb()

Output only. The max capacity of the instance.

int64 max_capacity_gb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
long

The maxCapacityGb.

getMaxShareCount()

public abstract long getMaxShareCount()

The max number of shares allowed.

int64 max_share_count = 18;

Returns
TypeDescription
long

The maxShareCount.

getMultiShareEnabled()

public abstract boolean getMultiShareEnabled()

Indicates whether this instance uses a multi-share configuration with which it can have more than one file-share or none at all. File-shares are added, updated and removed through the separate file-share APIs.

bool multi_share_enabled = 20;

Returns
TypeDescription
boolean

The multiShareEnabled.

getName()

public abstract String getName()

Output only. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Output only. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}.

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

Returns
TypeDescription
ByteString

The bytes for name.

getNetworks(int index)

public abstract NetworkConfig getNetworks(int index)

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkConfig

getNetworksCount()

public abstract int getNetworksCount()

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Returns
TypeDescription
int

getNetworksList()

public abstract List<NetworkConfig> getNetworksList()

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Returns
TypeDescription
List<NetworkConfig>

getNetworksOrBuilder(int index)

public abstract NetworkConfigOrBuilder getNetworksOrBuilder(int index)

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkConfigOrBuilder

getNetworksOrBuilderList()

public abstract List<? extends NetworkConfigOrBuilder> getNetworksOrBuilderList()

VPC networks to which the instance is connected. For this version, only a single network is supported.

repeated .google.cloud.filestore.v1beta1.NetworkConfig networks = 11;

Returns
TypeDescription
List<? extends com.google.cloud.filestore.v1beta1.NetworkConfigOrBuilder>

getProtocol()

public abstract Instance.FileProtocol getProtocol()

Immutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: NFS_V3.

.google.cloud.filestore.v1beta1.Instance.FileProtocol protocol = 21 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
Instance.FileProtocol

The protocol.

getProtocolValue()

public abstract int getProtocolValue()

Immutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: NFS_V3.

.google.cloud.filestore.v1beta1.Instance.FileProtocol protocol = 21 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
int

The enum numeric value on the wire for protocol.

getSatisfiesPzs()

public abstract BoolValue getSatisfiesPzs()

Output only. Reserved for future use.

.google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
BoolValue

The satisfiesPzs.

getSatisfiesPzsOrBuilder()

public abstract BoolValueOrBuilder getSatisfiesPzsOrBuilder()

Output only. Reserved for future use.

.google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
BoolValueOrBuilder

getState()

public abstract Instance.State getState()

Output only. The instance state.

.google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Instance.State

The state.

getStateValue()

public abstract int getStateValue()

Output only. The instance state.

.google.cloud.filestore.v1beta1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getStatusMessage()

public abstract String getStatusMessage()

Output only. Additional information about the instance state, if available.

string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The statusMessage.

getStatusMessageBytes()

public abstract ByteString getStatusMessageBytes()

Output only. Additional information about the instance state, if available.

string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for statusMessage.

getSuspensionReasons(int index)

public abstract Instance.SuspensionReason getSuspensionReasons(int index)

Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.

repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
Instance.SuspensionReason

The suspensionReasons at the given index.

getSuspensionReasonsCount()

public abstract int getSuspensionReasonsCount()

Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.

repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The count of suspensionReasons.

getSuspensionReasonsList()

public abstract List<Instance.SuspensionReason> getSuspensionReasonsList()

Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.

repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<SuspensionReason>

A list containing the suspensionReasons.

getSuspensionReasonsValue(int index)

public abstract int getSuspensionReasonsValue(int index)

Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.

repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of suspensionReasons at the given index.

getSuspensionReasonsValueList()

public abstract List<Integer> getSuspensionReasonsValueList()

Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.

repeated .google.cloud.filestore.v1beta1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for suspensionReasons.

getTier()

public abstract Instance.Tier getTier()

The service tier of the instance.

.google.cloud.filestore.v1beta1.Instance.Tier tier = 8;

Returns
TypeDescription
Instance.Tier

The tier.

getTierValue()

public abstract int getTierValue()

The service tier of the instance.

.google.cloud.filestore.v1beta1.Instance.Tier tier = 8;

Returns
TypeDescription
int

The enum numeric value on the wire for tier.

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. The time when the instance was created.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDirectoryServices()

public abstract boolean hasDirectoryServices()

Directory Services configuration for Kerberos-based authentication. Should only be set if protocol is "NFS_V4_1".

.google.cloud.filestore.v1beta1.DirectoryServicesConfig directory_services = 24;

Returns
TypeDescription
boolean

Whether the directoryServices field is set.

hasSatisfiesPzs()

public abstract boolean hasSatisfiesPzs()

Output only. Reserved for future use.

.google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the satisfiesPzs field is set.