public final class QuotaRule extends GeneratedMessageV3 implements QuotaRuleOrBuilder
QuotaRule 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DISK_LIMIT_MIB_FIELD_NUMBER
public static final int DISK_LIMIT_MIB_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
STATE_DETAILS_FIELD_NUMBER
public static final int STATE_DETAILS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TARGET_FIELD_NUMBER
public static final int TARGET_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static QuotaRule getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static QuotaRule.Builder newBuilder()
newBuilder(QuotaRule prototype)
public static QuotaRule.Builder newBuilder(QuotaRule prototype)
Parameter |
Name |
Description |
prototype |
QuotaRule
|
public static QuotaRule parseDelimitedFrom(InputStream input)
public static QuotaRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static QuotaRule parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static QuotaRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static QuotaRule parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QuotaRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static QuotaRule parseFrom(CodedInputStream input)
public static QuotaRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static QuotaRule parseFrom(InputStream input)
public static QuotaRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static QuotaRule parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static QuotaRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<QuotaRule> parser()
Methods
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
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
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.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Create time of the quota rule
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public QuotaRule getDefaultInstanceForType()
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.
|
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()
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];
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];
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 |
|
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.
|
getParserForType()
public Parser<QuotaRule> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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];
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];
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.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public QuotaRule.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected QuotaRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public QuotaRule.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides