Class ViolationDetails.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ViolationDetails.Builder>
com.google.cloud.workloadmanager.v1.ViolationDetails.Builder
- All Implemented Interfaces:
ViolationDetailsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ViolationDetails
public static final class ViolationDetails.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ViolationDetails.Builder>
implements ViolationDetailsOrBuilder
The violation in an evaluation result.Protobuf type
google.cloud.workloadmanager.v1.ViolationDetails-
Method Summary
Modifier and TypeMethodDescriptionaddAllRuleOutput(Iterable<? extends RuleOutput> values) Output only.addRuleOutput(int index, RuleOutput value) Output only.addRuleOutput(int index, RuleOutput.Builder builderForValue) Output only.addRuleOutput(RuleOutput value) Output only.addRuleOutput(RuleOutput.Builder builderForValue) Output only.Output only.addRuleOutputBuilder(int index) Output only.build()clear()The name of the asset.Output only.The service account associated with the resource.booleancontainsObserved(String key) Details of the violation.getAsset()The name of the asset.com.google.protobuf.ByteStringThe name of the asset.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.Deprecated.intDetails of the violation.Details of the violation.getObservedOrDefault(String key, String defaultValue) Details of the violation.getObservedOrThrow(String key) Details of the violation.getRuleOutput(int index) Output only.getRuleOutputBuilder(int index) Output only.Output only.intOutput only.Output only.getRuleOutputOrBuilder(int index) Output only.List<? extends RuleOutputOrBuilder>Output only.The service account associated with the resource.com.google.protobuf.ByteStringThe service account associated with the resource.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(ViolationDetails other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllObserved(Map<String, String> values) Details of the violation.putObserved(String key, String value) Details of the violation.removeObserved(String key) Details of the violation.removeRuleOutput(int index) Output only.The name of the asset.setAssetBytes(com.google.protobuf.ByteString value) The name of the asset.setRuleOutput(int index, RuleOutput value) Output only.setRuleOutput(int index, RuleOutput.Builder builderForValue) Output only.setServiceAccount(String value) The service account associated with the resource.setServiceAccountBytes(com.google.protobuf.ByteString value) The service account associated with the resource.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ViolationDetails.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ViolationDetails.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ViolationDetails.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ViolationDetails.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ViolationDetails.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ViolationDetails.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ViolationDetails.Builder>
-
mergeFrom
public ViolationDetails.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ViolationDetails.Builder>- Throws:
IOException
-
getAsset
The name of the asset.
string asset = 1;- Specified by:
getAssetin interfaceViolationDetailsOrBuilder- Returns:
- The asset.
-
getAssetBytes
public com.google.protobuf.ByteString getAssetBytes()The name of the asset.
string asset = 1;- Specified by:
getAssetBytesin interfaceViolationDetailsOrBuilder- Returns:
- The bytes for asset.
-
setAsset
The name of the asset.
string asset = 1;- Parameters:
value- The asset to set.- Returns:
- This builder for chaining.
-
clearAsset
The name of the asset.
string asset = 1;- Returns:
- This builder for chaining.
-
setAssetBytes
The name of the asset.
string asset = 1;- Parameters:
value- The bytes for asset to set.- Returns:
- This builder for chaining.
-
getServiceAccount
The service account associated with the resource.
string service_account = 2;- Specified by:
getServiceAccountin interfaceViolationDetailsOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()The service account associated with the resource.
string service_account = 2;- Specified by:
getServiceAccountBytesin interfaceViolationDetailsOrBuilder- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
The service account associated with the resource.
string service_account = 2;- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
The service account associated with the resource.
string service_account = 2;- Returns:
- This builder for chaining.
-
setServiceAccountBytes
The service account associated with the resource.
string service_account = 2;- Parameters:
value- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-
getObservedCount
public int getObservedCount()Description copied from interface:ViolationDetailsOrBuilderDetails of the violation.
map<string, string> observed = 3;- Specified by:
getObservedCountin interfaceViolationDetailsOrBuilder
-
containsObserved
Details of the violation.
map<string, string> observed = 3;- Specified by:
containsObservedin interfaceViolationDetailsOrBuilder
-
getObserved
Deprecated.UsegetObservedMap()instead.- Specified by:
getObservedin interfaceViolationDetailsOrBuilder
-
getObservedMap
Details of the violation.
map<string, string> observed = 3;- Specified by:
getObservedMapin interfaceViolationDetailsOrBuilder
-
getObservedOrDefault
Details of the violation.
map<string, string> observed = 3;- Specified by:
getObservedOrDefaultin interfaceViolationDetailsOrBuilder
-
getObservedOrThrow
Details of the violation.
map<string, string> observed = 3;- Specified by:
getObservedOrThrowin interfaceViolationDetailsOrBuilder
-
clearObserved
-
removeObserved
Details of the violation.
map<string, string> observed = 3; -
getMutableObserved
Deprecated.Use alternate mutation accessors instead. -
putObserved
Details of the violation.
map<string, string> observed = 3; -
putAllObserved
Details of the violation.
map<string, string> observed = 3; -
getRuleOutputList
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRuleOutputListin interfaceViolationDetailsOrBuilder
-
getRuleOutputCount
public int getRuleOutputCount()Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRuleOutputCountin interfaceViolationDetailsOrBuilder
-
getRuleOutput
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRuleOutputin interfaceViolationDetailsOrBuilder
-
setRuleOutput
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setRuleOutput
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addRuleOutput
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addRuleOutput
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addRuleOutput
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addRuleOutput
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addAllRuleOutput
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearRuleOutput
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
removeRuleOutput
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRuleOutputBuilder
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRuleOutputOrBuilder
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRuleOutputOrBuilderin interfaceViolationDetailsOrBuilder
-
getRuleOutputOrBuilderList
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRuleOutputOrBuilderListin interfaceViolationDetailsOrBuilder
-
addRuleOutputBuilder
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
addRuleOutputBuilder
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getRuleOutputBuilderList
Output only. The rule output of the violation.
repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-