Class ViolationDetails

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.workloadmanager.v1.ViolationDetails
All Implemented Interfaces:
ViolationDetailsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ViolationDetails extends com.google.protobuf.GeneratedMessage implements ViolationDetailsOrBuilder
 The violation in an evaluation result.
 
Protobuf type google.cloud.workloadmanager.v1.ViolationDetails
See Also:
  • Field Details

    • ASSET_FIELD_NUMBER

      public static final int ASSET_FIELD_NUMBER
      See Also:
    • SERVICE_ACCOUNT_FIELD_NUMBER

      public static final int SERVICE_ACCOUNT_FIELD_NUMBER
      See Also:
    • OBSERVED_FIELD_NUMBER

      public static final int OBSERVED_FIELD_NUMBER
      See Also:
    • RULE_OUTPUT_FIELD_NUMBER

      public static final int RULE_OUTPUT_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getAsset

      public String getAsset()
       The name of the asset.
       
      string asset = 1;
      Specified by:
      getAsset in interface ViolationDetailsOrBuilder
      Returns:
      The asset.
    • getAssetBytes

      public com.google.protobuf.ByteString getAssetBytes()
       The name of the asset.
       
      string asset = 1;
      Specified by:
      getAssetBytes in interface ViolationDetailsOrBuilder
      Returns:
      The bytes for asset.
    • getServiceAccount

      public String getServiceAccount()
       The service account associated with the resource.
       
      string service_account = 2;
      Specified by:
      getServiceAccount in interface ViolationDetailsOrBuilder
      Returns:
      The serviceAccount.
    • getServiceAccountBytes

      public com.google.protobuf.ByteString getServiceAccountBytes()
       The service account associated with the resource.
       
      string service_account = 2;
      Specified by:
      getServiceAccountBytes in interface ViolationDetailsOrBuilder
      Returns:
      The bytes for serviceAccount.
    • getObservedCount

      public int getObservedCount()
      Description copied from interface: ViolationDetailsOrBuilder
       Details of the violation.
       
      map<string, string> observed = 3;
      Specified by:
      getObservedCount in interface ViolationDetailsOrBuilder
    • containsObserved

      public boolean containsObserved(String key)
       Details of the violation.
       
      map<string, string> observed = 3;
      Specified by:
      containsObserved in interface ViolationDetailsOrBuilder
    • getObserved

      @Deprecated public Map<String,String> getObserved()
      Deprecated.
      Use getObservedMap() instead.
      Specified by:
      getObserved in interface ViolationDetailsOrBuilder
    • getObservedMap

      public Map<String,String> getObservedMap()
       Details of the violation.
       
      map<string, string> observed = 3;
      Specified by:
      getObservedMap in interface ViolationDetailsOrBuilder
    • getObservedOrDefault

      public String getObservedOrDefault(String key, String defaultValue)
       Details of the violation.
       
      map<string, string> observed = 3;
      Specified by:
      getObservedOrDefault in interface ViolationDetailsOrBuilder
    • getObservedOrThrow

      public String getObservedOrThrow(String key)
       Details of the violation.
       
      map<string, string> observed = 3;
      Specified by:
      getObservedOrThrow in interface ViolationDetailsOrBuilder
    • getRuleOutputList

      public List<RuleOutput> 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:
      getRuleOutputList in interface ViolationDetailsOrBuilder
    • getRuleOutputOrBuilderList

      public List<? extends RuleOutputOrBuilder> 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:
      getRuleOutputOrBuilderList in interface ViolationDetailsOrBuilder
    • 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:
      getRuleOutputCount in interface ViolationDetailsOrBuilder
    • getRuleOutput

      public RuleOutput getRuleOutput(int index)
       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:
      getRuleOutput in interface ViolationDetailsOrBuilder
    • getRuleOutputOrBuilder

      public RuleOutputOrBuilder getRuleOutputOrBuilder(int index)
       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:
      getRuleOutputOrBuilder in interface ViolationDetailsOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ViolationDetails parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ViolationDetails parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ViolationDetails parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ViolationDetails parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ViolationDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ViolationDetails parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ViolationDetails parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ViolationDetails parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ViolationDetails parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ViolationDetails parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ViolationDetails parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ViolationDetails parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ViolationDetails.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ViolationDetails.Builder newBuilder()
    • newBuilder

      public static ViolationDetails.Builder newBuilder(ViolationDetails prototype)
    • toBuilder

      public ViolationDetails.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ViolationDetails.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ViolationDetails getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ViolationDetails> parser()
    • getParserForType

      public com.google.protobuf.Parser<ViolationDetails> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ViolationDetails getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder