Class NfsShare (0.49.0)

public final class NfsShare extends GeneratedMessageV3 implements NfsShareOrBuilder

An NFS share.

Protobuf type google.cloud.baremetalsolution.v2.NfsShare

Implements

NfsShareOrBuilder

Static Fields

ALLOWED_CLIENTS_FIELD_NUMBER

public static final int ALLOWED_CLIENTS_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NFS_SHARE_ID_FIELD_NUMBER

public static final int NFS_SHARE_ID_FIELD_NUMBER
Field Value
Type Description
int

REQUESTED_SIZE_GIB_FIELD_NUMBER

public static final int REQUESTED_SIZE_GIB_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

STORAGE_TYPE_FIELD_NUMBER

public static final int STORAGE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

VOLUME_FIELD_NUMBER

public static final int VOLUME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NfsShare getDefaultInstance()
Returns
Type Description
NfsShare

getDescriptor()

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

newBuilder()

public static NfsShare.Builder newBuilder()
Returns
Type Description
NfsShare.Builder

newBuilder(NfsShare prototype)

public static NfsShare.Builder newBuilder(NfsShare prototype)
Parameter
Name Description
prototype NfsShare
Returns
Type Description
NfsShare.Builder

parseDelimitedFrom(InputStream input)

public static NfsShare parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NfsShare
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NfsShare parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NfsShare
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NfsShare parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NfsShare
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NfsShare parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NfsShare
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NfsShare parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NfsShare
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NfsShare parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NfsShare
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NfsShare parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NfsShare
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NfsShare parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NfsShare
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NfsShare parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NfsShare
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NfsShare parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NfsShare
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NfsShare parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NfsShare
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NfsShare parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NfsShare
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NfsShare> parser()
Returns
Type Description
Parser<NfsShare>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 6;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAllowedClients(int index)

public NfsShare.AllowedClient getAllowedClients(int index)

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Parameter
Name Description
index int
Returns
Type Description
NfsShare.AllowedClient

getAllowedClientsCount()

public int getAllowedClientsCount()

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Returns
Type Description
int

getAllowedClientsList()

public List<NfsShare.AllowedClient> getAllowedClientsList()

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Returns
Type Description
List<AllowedClient>

getAllowedClientsOrBuilder(int index)

public NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder(int index)

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Parameter
Name Description
index int
Returns
Type Description
NfsShare.AllowedClientOrBuilder

getAllowedClientsOrBuilderList()

public List<? extends NfsShare.AllowedClientOrBuilder> getAllowedClientsOrBuilderList()

List of allowed access points.

repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;

Returns
Type Description
List<? extends com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder>

getDefaultInstanceForType()

public NfsShare getDefaultInstanceForType()
Returns
Type Description
NfsShare

getId()

public String getId()

Output only. An identifier for the NFS share, generated by the backend. This is the same value as nfs_share_id and will replace it in the future.

string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. An identifier for the NFS share, generated by the backend. This is the same value as nfs_share_id and will replace it in the future.

string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for id.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 6;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 6;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels as key value pairs.

map<string, string> labels = 6;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 6;

Parameter
Name Description
key String
Returns
Type Description
String

getName()

public String getName()

Immutable. The name of the NFS share.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. The name of the NFS share.

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

Returns
Type Description
ByteString

The bytes for name.

getNfsShareId()

public String getNfsShareId()

Output only. An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use id instead.

string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The nfsShareId.

getNfsShareIdBytes()

public ByteString getNfsShareIdBytes()

Output only. An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use id instead.

string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for nfsShareId.

getParserForType()

public Parser<NfsShare> getParserForType()
Returns
Type Description
Parser<NfsShare>
Overrides

getRequestedSizeGib()

public long getRequestedSizeGib()

The requested size, in GiB.

int64 requested_size_gib = 7;

Returns
Type Description
long

The requestedSizeGib.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public NfsShare.State getState()

Output only. The state of the NFS share.

.google.cloud.baremetalsolution.v2.NfsShare.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NfsShare.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the NFS share.

.google.cloud.baremetalsolution.v2.NfsShare.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getStorageType()

public NfsShare.StorageType getStorageType()

Immutable. The storage type of the underlying volume.

.google.cloud.baremetalsolution.v2.NfsShare.StorageType storage_type = 9 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
NfsShare.StorageType

The storageType.

getStorageTypeValue()

public int getStorageTypeValue()

Immutable. The storage type of the underlying volume.

.google.cloud.baremetalsolution.v2.NfsShare.StorageType storage_type = 9 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
int

The enum numeric value on the wire for storageType.

getVolume()

public String getVolume()

Output only. The underlying volume of the share. Created automatically during provisioning.

string volume = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The volume.

getVolumeBytes()

public ByteString getVolumeBytes()

Output only. The underlying volume of the share. Created automatically during provisioning.

string volume = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for volume.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NfsShare.Builder newBuilderForType()
Returns
Type Description
NfsShare.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NfsShare.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NfsShare.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NfsShare.Builder toBuilder()
Returns
Type Description
NfsShare.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException