- 0.55.0 (latest)
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.49.0
- 0.47.0
- 0.46.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class QuotaRule.Builder extends GeneratedMessageV3.Builder<QuotaRule.Builder> implements QuotaRuleOrBuilderQuotaRule specifies the maximum disk space a user or group can use within a volume. They can be used for creating default and individual quota rules.
Protobuf type google.cloud.netapp.v1.QuotaRule
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > QuotaRule.BuilderImplements
QuotaRuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public QuotaRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
build()
public QuotaRule build()| Returns | |
|---|---|
| Type | Description |
QuotaRule |
|
buildPartial()
public QuotaRule buildPartial()| Returns | |
|---|---|
| Type | Description |
QuotaRule |
|
clear()
public QuotaRule.Builder clear()| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
clearCreateTime()
public QuotaRule.Builder clearCreateTime()Output only. Create time of the quota rule
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
clearDescription()
public QuotaRule.Builder clearDescription()Optional. Description of the quota rule
string description = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
clearDiskLimitMib()
public QuotaRule.Builder clearDiskLimitMib()Required. The maximum allowed disk space in MiB.
int32 disk_limit_mib = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public QuotaRule.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
clearLabels()
public QuotaRule.Builder clearLabels()| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
clearName()
public QuotaRule.Builder clearName() Identifier. The resource name of the quota rule.
Format:
projects/{project_number}/locations/{location_id}/volumes/volumes/{volume_id}/quotaRules/{quota_rule_id}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public QuotaRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
clearState()
public QuotaRule.Builder clearState()Output only. State of the quota rule
.google.cloud.netapp.v1.QuotaRule.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
clearStateDetails()
public QuotaRule.Builder clearStateDetails()Output only. State details of the quota rule
string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
clearTarget()
public QuotaRule.Builder clearTarget()Optional. The quota rule applies to the specified user or group, identified by a Unix UID/GID, Windows SID, or null for default.
string target = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
clearType()
public QuotaRule.Builder clearType()Required. The type of quota rule.
.google.cloud.netapp.v1.QuotaRule.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
clone()
public QuotaRule.Builder clone()| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
containsLabels(String key)
public boolean containsLabels(String key)Optional. Labels of the quota rule
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getCreateTime()
public Timestamp getCreateTime()Output only. Create time of the quota rule
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. Create time of the quota rule
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. Create time of the quota rule
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public QuotaRule getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
QuotaRule |
|
getDescription()
public String getDescription()Optional. Description of the quota rule
string description = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. Description of the quota rule
string description = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDiskLimitMib()
public int getDiskLimitMib()Required. The maximum allowed disk space in MiB.
int32 disk_limit_mib = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The diskLimitMib. |
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsCount()
public int getLabelsCount()Optional. Labels of the quota rule
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()Optional. Labels of the quota rule
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)Optional. Labels of the quota rule
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)Optional. Labels of the quota rule
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getName()
public String getName() Identifier. The resource name of the quota rule.
Format:
projects/{project_number}/locations/{location_id}/volumes/volumes/{volume_id}/quotaRules/{quota_rule_id}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Identifier. The resource name of the quota rule.
Format:
projects/{project_number}/locations/{location_id}/volumes/volumes/{volume_id}/quotaRules/{quota_rule_id}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getState()
public QuotaRule.State getState()Output only. State of the quota rule
.google.cloud.netapp.v1.QuotaRule.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
QuotaRule.State |
The state. |
getStateDetails()
public String getStateDetails()Output only. State details of the quota rule
string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The stateDetails. |
getStateDetailsBytes()
public ByteString getStateDetailsBytes()Output only. State details of the quota rule
string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for stateDetails. |
getStateValue()
public int getStateValue()Output only. State of the quota rule
.google.cloud.netapp.v1.QuotaRule.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
getTarget()
public String getTarget()Optional. The quota rule applies to the specified user or group, identified by a Unix UID/GID, Windows SID, or null for default.
string target = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The target. |
getTargetBytes()
public ByteString getTargetBytes()Optional. The quota rule applies to the specified user or group, identified by a Unix UID/GID, Windows SID, or null for default.
string target = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for target. |
getType()
public QuotaRule.Type getType()Required. The type of quota rule.
.google.cloud.netapp.v1.QuotaRule.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Type |
The type. |
getTypeValue()
public int getTypeValue()Required. The type of quota rule.
.google.cloud.netapp.v1.QuotaRule.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
hasCreateTime()
public boolean hasCreateTime()Output only. Create time of the quota rule
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public QuotaRule.Builder mergeCreateTime(Timestamp value)Output only. Create time of the quota rule
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
mergeFrom(QuotaRule other)
public QuotaRule.Builder mergeFrom(QuotaRule other)| Parameter | |
|---|---|
| Name | Description |
other |
QuotaRule |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public QuotaRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public QuotaRule.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final QuotaRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
putAllLabels(Map<String,String> values)
public QuotaRule.Builder putAllLabels(Map<String,String> values)Optional. Labels of the quota rule
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
putLabels(String key, String value)
public QuotaRule.Builder putLabels(String key, String value)Optional. Labels of the quota rule
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
removeLabels(String key)
public QuotaRule.Builder removeLabels(String key)Optional. Labels of the quota rule
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
setCreateTime(Timestamp value)
public QuotaRule.Builder setCreateTime(Timestamp value)Output only. Create time of the quota rule
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public QuotaRule.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. Create time of the quota rule
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
setDescription(String value)
public QuotaRule.Builder setDescription(String value)Optional. Description of the quota rule
string description = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public QuotaRule.Builder setDescriptionBytes(ByteString value)Optional. Description of the quota rule
string description = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
setDiskLimitMib(int value)
public QuotaRule.Builder setDiskLimitMib(int value)Required. The maximum allowed disk space in MiB.
int32 disk_limit_mib = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe diskLimitMib to set. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public QuotaRule.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
setName(String value)
public QuotaRule.Builder setName(String value) Identifier. The resource name of the quota rule.
Format:
projects/{project_number}/locations/{location_id}/volumes/volumes/{volume_id}/quotaRules/{quota_rule_id}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public QuotaRule.Builder setNameBytes(ByteString value) Identifier. The resource name of the quota rule.
Format:
projects/{project_number}/locations/{location_id}/volumes/volumes/{volume_id}/quotaRules/{quota_rule_id}.
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public QuotaRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|
setState(QuotaRule.State value)
public QuotaRule.Builder setState(QuotaRule.State value)Output only. State of the quota rule
.google.cloud.netapp.v1.QuotaRule.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
QuotaRule.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
setStateDetails(String value)
public QuotaRule.Builder setStateDetails(String value)Output only. State details of the quota rule
string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe stateDetails to set. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
setStateDetailsBytes(ByteString value)
public QuotaRule.Builder setStateDetailsBytes(ByteString value)Output only. State details of the quota rule
string state_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for stateDetails to set. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
setStateValue(int value)
public QuotaRule.Builder setStateValue(int value)Output only. State of the quota rule
.google.cloud.netapp.v1.QuotaRule.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
setTarget(String value)
public QuotaRule.Builder setTarget(String value)Optional. The quota rule applies to the specified user or group, identified by a Unix UID/GID, Windows SID, or null for default.
string target = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe target to set. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
setTargetBytes(ByteString value)
public QuotaRule.Builder setTargetBytes(ByteString value)Optional. The quota rule applies to the specified user or group, identified by a Unix UID/GID, Windows SID, or null for default.
string target = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for target to set. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
setType(QuotaRule.Type value)
public QuotaRule.Builder setType(QuotaRule.Type value)Required. The type of quota rule.
.google.cloud.netapp.v1.QuotaRule.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
QuotaRule.TypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
setTypeValue(int value)
public QuotaRule.Builder setTypeValue(int value)Required. The type of quota rule.
.google.cloud.netapp.v1.QuotaRule.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final QuotaRule.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
QuotaRule.Builder |
|