Class CacheConfig (0.61.0)

public final class CacheConfig extends GeneratedMessageV3 implements CacheConfigOrBuilder

Configuration of the cache volume.

Protobuf type google.cloud.netapp.v1.CacheConfig

Static Fields

CACHE_PRE_POPULATE_FIELD_NUMBER

public static final int CACHE_PRE_POPULATE_FIELD_NUMBER
Field Value
Type Description
int

CACHE_PRE_POPULATE_STATE_FIELD_NUMBER

public static final int CACHE_PRE_POPULATE_STATE_FIELD_NUMBER
Field Value
Type Description
int

CIFS_CHANGE_NOTIFY_ENABLED_FIELD_NUMBER

public static final int CIFS_CHANGE_NOTIFY_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

WRITEBACK_ENABLED_FIELD_NUMBER

public static final int WRITEBACK_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CacheConfig getDefaultInstance()
Returns
Type Description
CacheConfig

getDescriptor()

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

newBuilder()

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

newBuilder(CacheConfig prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCachePrePopulate()

public CachePrePopulate getCachePrePopulate()

Optional. Pre-populate cache volume with data from the origin volume.

.google.cloud.netapp.v1.CachePrePopulate cache_pre_populate = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CachePrePopulate

The cachePrePopulate.

getCachePrePopulateOrBuilder()

public CachePrePopulateOrBuilder getCachePrePopulateOrBuilder()

Optional. Pre-populate cache volume with data from the origin volume.

.google.cloud.netapp.v1.CachePrePopulate cache_pre_populate = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CachePrePopulateOrBuilder

getCachePrePopulateState()

public CacheConfig.CachePrePopulateState getCachePrePopulateState()

Output only. State of the prepopulation job indicating how the prepopulation is progressing.

.google.cloud.netapp.v1.CacheConfig.CachePrePopulateState cache_pre_populate_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CacheConfig.CachePrePopulateState

The cachePrePopulateState.

getCachePrePopulateStateValue()

public int getCachePrePopulateStateValue()

Output only. State of the prepopulation job indicating how the prepopulation is progressing.

.google.cloud.netapp.v1.CacheConfig.CachePrePopulateState cache_pre_populate_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for cachePrePopulateState.

getCifsChangeNotifyEnabled()

public boolean getCifsChangeNotifyEnabled()

Optional. Flag indicating whether a CIFS change notification is enabled for the FlexCache volume.

optional bool cifs_change_notify_enabled = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The cifsChangeNotifyEnabled.

getDefaultInstanceForType()

public CacheConfig getDefaultInstanceForType()
Returns
Type Description
CacheConfig

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getWritebackEnabled()

public boolean getWritebackEnabled()

Optional. Flag indicating whether writeback is enabled for the FlexCache volume.

optional bool writeback_enabled = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The writebackEnabled.

hasCachePrePopulate()

public boolean hasCachePrePopulate()

Optional. Pre-populate cache volume with data from the origin volume.

.google.cloud.netapp.v1.CachePrePopulate cache_pre_populate = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the cachePrePopulate field is set.

hasCifsChangeNotifyEnabled()

public boolean hasCifsChangeNotifyEnabled()

Optional. Flag indicating whether a CIFS change notification is enabled for the FlexCache volume.

optional bool cifs_change_notify_enabled = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the cifsChangeNotifyEnabled field is set.

hasWritebackEnabled()

public boolean hasWritebackEnabled()

Optional. Flag indicating whether writeback is enabled for the FlexCache volume.

optional bool writeback_enabled = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the writebackEnabled field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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