Class ExportPolicy.Builder (0.7.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.netapp.v1.SimpleExportPolicyRule>
Returns
TypeDescription
ExportPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExportPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueSimpleExportPolicyRule
Returns
TypeDescription
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
NameDescription
builderForValueSimpleExportPolicyRule.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSimpleExportPolicyRule
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSimpleExportPolicyRule.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SimpleExportPolicyRule.Builder

build()

public ExportPolicy build()
Returns
TypeDescription
ExportPolicy

buildPartial()

public ExportPolicy buildPartial()
Returns
TypeDescription
ExportPolicy

clear()

public ExportPolicy.Builder clear()
Returns
TypeDescription
ExportPolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ExportPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExportPolicy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExportPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ExportPolicy.Builder

clone()

public ExportPolicy.Builder clone()
Returns
TypeDescription
ExportPolicy.Builder
Overrides

getDefaultInstanceForType()

public ExportPolicy getDefaultInstanceForType()
Returns
TypeDescription
ExportPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.netapp.v1.SimpleExportPolicyRuleOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExportPolicy other)

public ExportPolicy.Builder mergeFrom(ExportPolicy other)
Parameter
NameDescription
otherExportPolicy
Returns
TypeDescription
ExportPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExportPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExportPolicy.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExportPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExportPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExportPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ExportPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ExportPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExportPolicy.Builder
Overrides

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

public ExportPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueSimpleExportPolicyRule
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSimpleExportPolicyRule.Builder
Returns
TypeDescription
ExportPolicy.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ExportPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExportPolicy.Builder
Overrides