Class NfsShare (0.5.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
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NFS_SHARE_ID_FIELD_NUMBER

public static final int NFS_SHARE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

VOLUME_FIELD_NUMBER

public static final int VOLUME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NfsShare getDefaultInstance()
Returns
TypeDescription
NfsShare

getDescriptor()

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

newBuilder()

public static NfsShare.Builder newBuilder()
Returns
TypeDescription
NfsShare.Builder

newBuilder(NfsShare prototype)

public static NfsShare.Builder newBuilder(NfsShare prototype)
Parameter
NameDescription
prototypeNfsShare
Returns
TypeDescription
NfsShare.Builder

parseDelimitedFrom(InputStream input)

public static NfsShare parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NfsShare
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NfsShare parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NfsShare
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NfsShare parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NfsShare
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NfsShare parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NfsShare
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NfsShare parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NfsShare
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NfsShare parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NfsShare
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NfsShare parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NfsShare
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NfsShare parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NfsShare
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static NfsShare parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NfsShare
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NfsShare parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NfsShare
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NfsShare parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NfsShare
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NfsShare parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NfsShare
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<NfsShare> parser()
Returns
TypeDescription
Parser<NfsShare>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

Labels as key value pairs.

map<string, string> labels = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
NfsShare.AllowedClient

getAllowedClientsCount()

public int getAllowedClientsCount()

List of allowed access points.

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

Returns
TypeDescription
int

getAllowedClientsList()

public List<NfsShare.AllowedClient> getAllowedClientsList()

List of allowed access points.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.baremetalsolution.v2.NfsShare.AllowedClientOrBuilder>

getDefaultInstanceForType()

public NfsShare getDefaultInstanceForType()
Returns
TypeDescription
NfsShare

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels as key value pairs.

map<string, string> labels = 6;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels as key value pairs.

map<string, string> labels = 6;

Returns
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels as key value pairs.

map<string, string> labels = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getName()

public String getName()

Output only. The name of the NFS share.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the NFS share.

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

Returns
TypeDescription
ByteString

The bytes for name.

getNfsShareId()

public String getNfsShareId()

Output only. An identifier for the NFS share, generated by the backend.

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

Returns
TypeDescription
String

The nfsShareId.

getNfsShareIdBytes()

public ByteString getNfsShareIdBytes()

Output only. An identifier for the NFS share, generated by the backend.

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

Returns
TypeDescription
ByteString

The bytes for nfsShareId.

getParserForType()

public Parser<NfsShare> getParserForType()
Returns
TypeDescription
Parser<NfsShare>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getState()

public NfsShare.State getState()

The state of the NFS share.

.google.cloud.baremetalsolution.v2.NfsShare.State state = 3;

Returns
TypeDescription
NfsShare.State

The state.

getStateValue()

public int getStateValue()

The state of the NFS share.

.google.cloud.baremetalsolution.v2.NfsShare.State state = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getVolume()

public String getVolume()

The volume containing the share.

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

Returns
TypeDescription
String

The volume.

getVolumeBytes()

public ByteString getVolumeBytes()

The volume containing the share.

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

Returns
TypeDescription
ByteString

The bytes for volume.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NfsShare.Builder newBuilderForType()
Returns
TypeDescription
NfsShare.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NfsShare.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NfsShare.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NfsShare.Builder toBuilder()
Returns
TypeDescription
NfsShare.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException