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 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.Builder<ViolationDetails.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ViolationDetails.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ViolationDetails.Builder>
    • clear

      public ViolationDetails.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ViolationDetails.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ViolationDetails.Builder>
    • getDefaultInstanceForType

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

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

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

      public ViolationDetails.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ViolationDetails.Builder>
    • mergeFrom

      public ViolationDetails.Builder mergeFrom(ViolationDetails other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ViolationDetails.Builder>
      Throws:
      IOException
    • 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.
    • setAsset

      public ViolationDetails.Builder setAsset(String value)
       The name of the asset.
       
      string asset = 1;
      Parameters:
      value - The asset to set.
      Returns:
      This builder for chaining.
    • clearAsset

      public ViolationDetails.Builder clearAsset()
       The name of the asset.
       
      string asset = 1;
      Returns:
      This builder for chaining.
    • setAssetBytes

      public ViolationDetails.Builder setAssetBytes(com.google.protobuf.ByteString value)
       The name of the asset.
       
      string asset = 1;
      Parameters:
      value - The bytes for asset to set.
      Returns:
      This builder for chaining.
    • 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.
    • setServiceAccount

      public ViolationDetails.Builder setServiceAccount(String value)
       The service account associated with the resource.
       
      string service_account = 2;
      Parameters:
      value - The serviceAccount to set.
      Returns:
      This builder for chaining.
    • clearServiceAccount

      public ViolationDetails.Builder clearServiceAccount()
       The service account associated with the resource.
       
      string service_account = 2;
      Returns:
      This builder for chaining.
    • setServiceAccountBytes

      public ViolationDetails.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
       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: 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
    • clearObserved

      public ViolationDetails.Builder clearObserved()
    • removeObserved

      public ViolationDetails.Builder removeObserved(String key)
       Details of the violation.
       
      map<string, string> observed = 3;
    • getMutableObserved

      @Deprecated public Map<String,String> getMutableObserved()
      Deprecated.
      Use alternate mutation accessors instead.
    • putObserved

      public ViolationDetails.Builder putObserved(String key, String value)
       Details of the violation.
       
      map<string, string> observed = 3;
    • putAllObserved

      public ViolationDetails.Builder putAllObserved(Map<String,String> values)
       Details of the violation.
       
      map<string, string> observed = 3;
    • 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
    • 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
    • setRuleOutput

      public ViolationDetails.Builder setRuleOutput(int index, RuleOutput value)
       Output only. The rule output of the violation.
       
      repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setRuleOutput

      public ViolationDetails.Builder setRuleOutput(int index, RuleOutput.Builder builderForValue)
       Output only. The rule output of the violation.
       
      repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addRuleOutput

      public ViolationDetails.Builder addRuleOutput(RuleOutput value)
       Output only. The rule output of the violation.
       
      repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addRuleOutput

      public ViolationDetails.Builder addRuleOutput(int index, RuleOutput value)
       Output only. The rule output of the violation.
       
      repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addRuleOutput

      public ViolationDetails.Builder addRuleOutput(RuleOutput.Builder builderForValue)
       Output only. The rule output of the violation.
       
      repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addRuleOutput

      public ViolationDetails.Builder addRuleOutput(int index, RuleOutput.Builder builderForValue)
       Output only. The rule output of the violation.
       
      repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllRuleOutput

      public ViolationDetails.Builder addAllRuleOutput(Iterable<? extends RuleOutput> values)
       Output only. The rule output of the violation.
       
      repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearRuleOutput

      public ViolationDetails.Builder 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

      public ViolationDetails.Builder removeRuleOutput(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];
    • getRuleOutputBuilder

      public RuleOutput.Builder getRuleOutputBuilder(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];
    • 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
    • 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
    • addRuleOutputBuilder

      public RuleOutput.Builder 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

      public RuleOutput.Builder addRuleOutputBuilder(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];
    • getRuleOutputBuilderList

      public List<RuleOutput.Builder> getRuleOutputBuilderList()
       Output only. The rule output of the violation.
       
      repeated .google.cloud.workloadmanager.v1.RuleOutput rule_output = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];