Class ViolationDetails.Builder (0.1.0)

public static final class ViolationDetails.Builder extends GeneratedMessage.Builder<ViolationDetails.Builder> implements ViolationDetailsOrBuilder

The violation in an evaluation result.

Protobuf type google.cloud.workloadmanager.v1.ViolationDetails

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllRuleOutput(Iterable<? extends RuleOutput> values)

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];

Parameter
Name Description
values Iterable<? extends com.google.cloud.workloadmanager.v1.RuleOutput>
Returns
Type Description
ViolationDetails.Builder

addRuleOutput(RuleOutput value)

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];

Parameter
Name Description
value RuleOutput
Returns
Type Description
ViolationDetails.Builder

addRuleOutput(RuleOutput.Builder builderForValue)

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];

Parameter
Name Description
builderForValue RuleOutput.Builder
Returns
Type Description
ViolationDetails.Builder

addRuleOutput(int index, RuleOutput value)

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];

Parameters
Name Description
index int
value RuleOutput
Returns
Type Description
ViolationDetails.Builder

addRuleOutput(int index, RuleOutput.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue RuleOutput.Builder
Returns
Type Description
ViolationDetails.Builder

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];

Returns
Type Description
RuleOutput.Builder

addRuleOutputBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
RuleOutput.Builder

build()

public ViolationDetails build()
Returns
Type Description
ViolationDetails

buildPartial()

public ViolationDetails buildPartial()
Returns
Type Description
ViolationDetails

clear()

public ViolationDetails.Builder clear()
Returns
Type Description
ViolationDetails.Builder
Overrides

clearAsset()

public ViolationDetails.Builder clearAsset()

The name of the asset.

string asset = 1;

Returns
Type Description
ViolationDetails.Builder

This builder for chaining.

clearObserved()

public ViolationDetails.Builder clearObserved()
Returns
Type Description
ViolationDetails.Builder

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];

Returns
Type Description
ViolationDetails.Builder

clearServiceAccount()

public ViolationDetails.Builder clearServiceAccount()

The service account associated with the resource.

string service_account = 2;

Returns
Type Description
ViolationDetails.Builder

This builder for chaining.

containsObserved(String key)

public boolean containsObserved(String key)

Details of the violation.

map<string, string> observed = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAsset()

public String getAsset()

The name of the asset.

string asset = 1;

Returns
Type Description
String

The asset.

getAssetBytes()

public ByteString getAssetBytes()

The name of the asset.

string asset = 1;

Returns
Type Description
ByteString

The bytes for asset.

getDefaultInstanceForType()

public ViolationDetails getDefaultInstanceForType()
Returns
Type Description
ViolationDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableObserved() (deprecated)

public Map<String,String> getMutableObserved()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getObserved() (deprecated)

public Map<String,String> getObserved()

Use #getObservedMap() instead.

Returns
Type Description
Map<String,String>

getObservedCount()

public int getObservedCount()

Details of the violation.

map<string, string> observed = 3;

Returns
Type Description
int

getObservedMap()

public Map<String,String> getObservedMap()

Details of the violation.

map<string, string> observed = 3;

Returns
Type Description
Map<String,String>

getObservedOrDefault(String key, String defaultValue)

public String getObservedOrDefault(String key, String defaultValue)

Details of the violation.

map<string, string> observed = 3;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getObservedOrThrow(String key)

public String getObservedOrThrow(String key)

Details of the violation.

map<string, string> observed = 3;

Parameter
Name Description
key String
Returns
Type Description
String

getRuleOutput(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
RuleOutput

getRuleOutputBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
RuleOutput.Builder

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];

Returns
Type Description
List<Builder>

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];

Returns
Type Description
int

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];

Returns
Type Description
List<RuleOutput>

getRuleOutputOrBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
RuleOutputOrBuilder

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];

Returns
Type Description
List<? extends com.google.cloud.workloadmanager.v1.RuleOutputOrBuilder>

getServiceAccount()

public String getServiceAccount()

The service account associated with the resource.

string service_account = 2;

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

The service account associated with the resource.

string service_account = 2;

Returns
Type Description
ByteString

The bytes for serviceAccount.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
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.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ViolationDetails other)

public ViolationDetails.Builder mergeFrom(ViolationDetails other)
Parameter
Name Description
other ViolationDetails
Returns
Type Description
ViolationDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ViolationDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ViolationDetails.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ViolationDetails.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ViolationDetails.Builder
Overrides

putAllObserved(Map<String,String> values)

public ViolationDetails.Builder putAllObserved(Map<String,String> values)

Details of the violation.

map<string, string> observed = 3;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
ViolationDetails.Builder

putObserved(String key, String value)

public ViolationDetails.Builder putObserved(String key, String value)

Details of the violation.

map<string, string> observed = 3;

Parameters
Name Description
key String
value String
Returns
Type Description
ViolationDetails.Builder

removeObserved(String key)

public ViolationDetails.Builder removeObserved(String key)

Details of the violation.

map<string, string> observed = 3;

Parameter
Name Description
key String
Returns
Type Description
ViolationDetails.Builder

removeRuleOutput(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
ViolationDetails.Builder

setAsset(String value)

public ViolationDetails.Builder setAsset(String value)

The name of the asset.

string asset = 1;

Parameter
Name Description
value String

The asset to set.

Returns
Type Description
ViolationDetails.Builder

This builder for chaining.

setAssetBytes(ByteString value)

public ViolationDetails.Builder setAssetBytes(ByteString value)

The name of the asset.

string asset = 1;

Parameter
Name Description
value ByteString

The bytes for asset to set.

Returns
Type Description
ViolationDetails.Builder

This builder for chaining.

setRuleOutput(int index, RuleOutput value)

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];

Parameters
Name Description
index int
value RuleOutput
Returns
Type Description
ViolationDetails.Builder

setRuleOutput(int index, RuleOutput.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue RuleOutput.Builder
Returns
Type Description
ViolationDetails.Builder

setServiceAccount(String value)

public ViolationDetails.Builder setServiceAccount(String value)

The service account associated with the resource.

string service_account = 2;

Parameter
Name Description
value String

The serviceAccount to set.

Returns
Type Description
ViolationDetails.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public ViolationDetails.Builder setServiceAccountBytes(ByteString value)

The service account associated with the resource.

string service_account = 2;

Parameter
Name Description
value ByteString

The bytes for serviceAccount to set.

Returns
Type Description
ViolationDetails.Builder

This builder for chaining.