Class CachePrePopulate.Builder (0.61.0)

public static final class CachePrePopulate.Builder extends GeneratedMessageV3.Builder<CachePrePopulate.Builder> implements CachePrePopulateOrBuilder

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

Protobuf type google.cloud.netapp.v1.CachePrePopulate

Static Methods

getDescriptor()

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

Methods

addAllExcludePathList(Iterable<String> values)

public CachePrePopulate.Builder addAllExcludePathList(Iterable<String> values)

Optional. List of directory-paths to be excluded for pre-population for the FlexCache volume.

repeated string exclude_path_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The excludePathList to add.

Returns
Type Description
CachePrePopulate.Builder

This builder for chaining.

addAllPathList(Iterable<String> values)

public CachePrePopulate.Builder addAllPathList(Iterable<String> values)

Optional. List of directory-paths to be pre-populated for the FlexCache volume.

repeated string path_list = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The pathList to add.

Returns
Type Description
CachePrePopulate.Builder

This builder for chaining.

addExcludePathList(String value)

public CachePrePopulate.Builder addExcludePathList(String value)

Optional. List of directory-paths to be excluded for pre-population for the FlexCache volume.

repeated string exclude_path_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The excludePathList to add.

Returns
Type Description
CachePrePopulate.Builder

This builder for chaining.

addExcludePathListBytes(ByteString value)

public CachePrePopulate.Builder addExcludePathListBytes(ByteString value)

Optional. List of directory-paths to be excluded for pre-population for the FlexCache volume.

repeated string exclude_path_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the excludePathList to add.

Returns
Type Description
CachePrePopulate.Builder

This builder for chaining.

addPathList(String value)

public CachePrePopulate.Builder addPathList(String value)

Optional. List of directory-paths to be pre-populated for the FlexCache volume.

repeated string path_list = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The pathList to add.

Returns
Type Description
CachePrePopulate.Builder

This builder for chaining.

addPathListBytes(ByteString value)

public CachePrePopulate.Builder addPathListBytes(ByteString value)

Optional. List of directory-paths to be pre-populated for the FlexCache volume.

repeated string path_list = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the pathList to add.

Returns
Type Description
CachePrePopulate.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CachePrePopulate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CachePrePopulate.Builder
Overrides

build()

public CachePrePopulate build()
Returns
Type Description
CachePrePopulate

buildPartial()

public CachePrePopulate buildPartial()
Returns
Type Description
CachePrePopulate

clear()

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

clearExcludePathList()

public CachePrePopulate.Builder clearExcludePathList()

Optional. List of directory-paths to be excluded for pre-population for the FlexCache volume.

repeated string exclude_path_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CachePrePopulate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CachePrePopulate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CachePrePopulate.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CachePrePopulate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CachePrePopulate.Builder
Overrides

clearPathList()

public CachePrePopulate.Builder clearPathList()

Optional. List of directory-paths to be pre-populated for the FlexCache volume.

repeated string path_list = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CachePrePopulate.Builder

This builder for chaining.

clearRecursion()

public CachePrePopulate.Builder clearRecursion()

Optional. Flag indicating whether the directories listed with the path_list need to be recursively pre-populated.

optional bool recursion = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CachePrePopulate.Builder

This builder for chaining.

clone()

public CachePrePopulate.Builder clone()
Returns
Type Description
CachePrePopulate.Builder
Overrides

getDefaultInstanceForType()

public CachePrePopulate getDefaultInstanceForType()
Returns
Type Description
CachePrePopulate

getDescriptorForType()

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

getExcludePathList(int index)

public String getExcludePathList(int index)

Optional. List of directory-paths to be excluded for pre-population for the FlexCache volume.

repeated string exclude_path_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The excludePathList at the given index.

getExcludePathListBytes(int index)

public ByteString getExcludePathListBytes(int index)

Optional. List of directory-paths to be excluded for pre-population for the FlexCache volume.

repeated string exclude_path_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the excludePathList at the given index.

getExcludePathListCount()

public int getExcludePathListCount()

Optional. List of directory-paths to be excluded for pre-population for the FlexCache volume.

repeated string exclude_path_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of excludePathList.

getExcludePathListList()

public ProtocolStringList getExcludePathListList()

Optional. List of directory-paths to be excluded for pre-population for the FlexCache volume.

repeated string exclude_path_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the excludePathList.

getPathList(int index)

public String getPathList(int index)

Optional. List of directory-paths to be pre-populated for the FlexCache volume.

repeated string path_list = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The pathList at the given index.

getPathListBytes(int index)

public ByteString getPathListBytes(int index)

Optional. List of directory-paths to be pre-populated for the FlexCache volume.

repeated string path_list = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the pathList at the given index.

getPathListCount()

public int getPathListCount()

Optional. List of directory-paths to be pre-populated for the FlexCache volume.

repeated string path_list = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of pathList.

getPathListList()

public ProtocolStringList getPathListList()

Optional. List of directory-paths to be pre-populated for the FlexCache volume.

repeated string path_list = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the pathList.

getRecursion()

public boolean getRecursion()

Optional. Flag indicating whether the directories listed with the path_list need to be recursively pre-populated.

optional bool recursion = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The recursion.

hasRecursion()

public boolean hasRecursion()

Optional. Flag indicating whether the directories listed with the path_list need to be recursively pre-populated.

optional bool recursion = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the recursion field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CachePrePopulate other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CachePrePopulate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CachePrePopulate.Builder
Overrides

setExcludePathList(int index, String value)

public CachePrePopulate.Builder setExcludePathList(int index, String value)

Optional. List of directory-paths to be excluded for pre-population for the FlexCache volume.

repeated string exclude_path_list = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The excludePathList to set.

Returns
Type Description
CachePrePopulate.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CachePrePopulate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CachePrePopulate.Builder
Overrides

setPathList(int index, String value)

public CachePrePopulate.Builder setPathList(int index, String value)

Optional. List of directory-paths to be pre-populated for the FlexCache volume.

repeated string path_list = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The pathList to set.

Returns
Type Description
CachePrePopulate.Builder

This builder for chaining.

setRecursion(boolean value)

public CachePrePopulate.Builder setRecursion(boolean value)

Optional. Flag indicating whether the directories listed with the path_list need to be recursively pre-populated.

optional bool recursion = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The recursion to set.

Returns
Type Description
CachePrePopulate.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CachePrePopulate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CachePrePopulate.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CachePrePopulate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CachePrePopulate.Builder
Overrides