Class ExportPolicy.Builder (0.25.0)

public static final class ExportPolicy.Builder extends GeneratedMessageV3.Builder<ExportPolicy.Builder> implements ExportPolicyOrBuilder

Defines the export policy for the volume.

Protobuf type google.cloud.netapp.v1.ExportPolicy

Static Methods

getDescriptor()

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

Methods

addAllRules(Iterable<? extends SimpleExportPolicyRule> values)

public ExportPolicy.Builder addAllRules(Iterable<? extends SimpleExportPolicyRule> values)

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.netapp.v1.SimpleExportPolicyRule>
Returns
Type Description
ExportPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRules(SimpleExportPolicyRule value)

public ExportPolicy.Builder addRules(SimpleExportPolicyRule value)

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SimpleExportPolicyRule
Returns
Type Description
ExportPolicy.Builder

addRules(SimpleExportPolicyRule.Builder builderForValue)

public ExportPolicy.Builder addRules(SimpleExportPolicyRule.Builder builderForValue)

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SimpleExportPolicyRule.Builder
Returns
Type Description
ExportPolicy.Builder

addRules(int index, SimpleExportPolicyRule value)

public ExportPolicy.Builder addRules(int index, SimpleExportPolicyRule value)

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value SimpleExportPolicyRule
Returns
Type Description
ExportPolicy.Builder

addRules(int index, SimpleExportPolicyRule.Builder builderForValue)

public ExportPolicy.Builder addRules(int index, SimpleExportPolicyRule.Builder builderForValue)

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue SimpleExportPolicyRule.Builder
Returns
Type Description
ExportPolicy.Builder

addRulesBuilder()

public SimpleExportPolicyRule.Builder addRulesBuilder()

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SimpleExportPolicyRule.Builder

addRulesBuilder(int index)

public SimpleExportPolicyRule.Builder addRulesBuilder(int index)

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SimpleExportPolicyRule.Builder

build()

public ExportPolicy build()
Returns
Type Description
ExportPolicy

buildPartial()

public ExportPolicy buildPartial()
Returns
Type Description
ExportPolicy

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRules()

public ExportPolicy.Builder clearRules()

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExportPolicy.Builder

clone()

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

getDefaultInstanceForType()

public ExportPolicy getDefaultInstanceForType()
Returns
Type Description
ExportPolicy

getDescriptorForType()

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

getRules(int index)

public SimpleExportPolicyRule getRules(int index)

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SimpleExportPolicyRule

getRulesBuilder(int index)

public SimpleExportPolicyRule.Builder getRulesBuilder(int index)

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SimpleExportPolicyRule.Builder

getRulesBuilderList()

public List<SimpleExportPolicyRule.Builder> getRulesBuilderList()

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRulesCount()

public int getRulesCount()

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRulesList()

public List<SimpleExportPolicyRule> getRulesList()

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<SimpleExportPolicyRule>

getRulesOrBuilder(int index)

public SimpleExportPolicyRuleOrBuilder getRulesOrBuilder(int index)

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SimpleExportPolicyRuleOrBuilder

getRulesOrBuilderList()

public List<? extends SimpleExportPolicyRuleOrBuilder> getRulesOrBuilderList()

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.netapp.v1.SimpleExportPolicyRuleOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExportPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRules(int index)

public ExportPolicy.Builder removeRules(int index)

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ExportPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRules(int index, SimpleExportPolicyRule value)

public ExportPolicy.Builder setRules(int index, SimpleExportPolicyRule value)

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value SimpleExportPolicyRule
Returns
Type Description
ExportPolicy.Builder

setRules(int index, SimpleExportPolicyRule.Builder builderForValue)

public ExportPolicy.Builder setRules(int index, SimpleExportPolicyRule.Builder builderForValue)

Required. List of export policy rules

repeated .google.cloud.netapp.v1.SimpleExportPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue SimpleExportPolicyRule.Builder
Returns
Type Description
ExportPolicy.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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