Class RuleOutput.Builder (0.7.0)
0.7.0 (latest)
0.4.0
0.3.0
0.1.0
public static final class RuleOutput . Builder extends GeneratedMessage . Builder<RuleOutput . Builder > implements RuleOutputOrBuilder
The rule output of the violation.
Protobuf type google.cloud.workloadmanager.v1.RuleOutput
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
build()
public RuleOutput build ()
buildPartial()
public RuleOutput buildPartial ()
clear()
public RuleOutput . Builder clear ()
Overrides
clearDetails()
public RuleOutput . Builder clearDetails ()
clearMessage()
public RuleOutput . Builder clearMessage ()
Output only. The message generated by rule.
string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
containsDetails(String key)
public boolean containsDetails ( String key )
Output only. Violation details generated by rule.
map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name
Description
key
String
getDefaultInstanceForType()
public RuleOutput getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getDetails() (deprecated)
public Map<String , String > getDetails ()
getDetailsCount()
public int getDetailsCount ()
Output only. Violation details generated by rule.
map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
int
getDetailsMap()
public Map<String , String > getDetailsMap ()
Output only. Violation details generated by rule.
map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDetailsOrDefault(String key, String defaultValue)
public String getDetailsOrDefault ( String key , String defaultValue )
Output only. Violation details generated by rule.
map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
getDetailsOrThrow(String key)
public String getDetailsOrThrow ( String key )
Output only. Violation details generated by rule.
map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name
Description
key
String
Returns
Type
Description
String
getMessage()
public String getMessage ()
Output only. The message generated by rule.
string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
The message.
getMessageBytes()
public ByteString getMessageBytes ()
Output only. The message generated by rule.
string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
ByteString
The bytes for message.
getMutableDetails() (deprecated)
public Map<String , String > getMutableDetails ()
Use alternate mutation accessors instead.
internalGetFieldAccessorTable()
protected GeneratedMessage . 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.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 ()
Overrides
mergeFrom(RuleOutput other)
public RuleOutput . Builder mergeFrom ( RuleOutput other )
public RuleOutput . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public RuleOutput . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
putAllDetails(Map<String,String> values)
public RuleOutput . Builder putAllDetails ( Map<String , String > values )
Output only. Violation details generated by rule.
map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
putDetails(String key, String value)
public RuleOutput . Builder putDetails ( String key , String value )
Output only. Violation details generated by rule.
map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
removeDetails(String key)
public RuleOutput . Builder removeDetails ( String key )
Output only. Violation details generated by rule.
map<string, string> details = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name
Description
key
String
setMessage(String value)
public RuleOutput . Builder setMessage ( String value )
Output only. The message generated by rule.
string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name
Description
value
String The message to set.
setMessageBytes(ByteString value)
public RuleOutput . Builder setMessageBytes ( ByteString value )
Output only. The message generated by rule.
string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name
Description
value
ByteString The bytes for message to set.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-04-25 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-25 UTC."],[],[]]