Class RuleOutput.Builder (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

Implements

RuleOutputOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public RuleOutput build()
Returns
Type Description
RuleOutput

buildPartial()

public RuleOutput buildPartial()
Returns
Type Description
RuleOutput

clear()

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

clearDetails()

public RuleOutput.Builder clearDetails()
Returns
Type Description
RuleOutput.Builder

clearMessage()

public RuleOutput.Builder clearMessage()

Output only. The message generated by rule.

string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RuleOutput.Builder

This builder for chaining.

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
Returns
Type Description
boolean

getDefaultInstanceForType()

public RuleOutput getDefaultInstanceForType()
Returns
Type Description
RuleOutput

getDescriptorForType()

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

getDetails() (deprecated)

public Map<String,String> getDetails()

Use #getDetailsMap() instead.

Returns
Type Description
Map<String,String>

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

Returns
Type Description
Map<String,String>

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

Parameters
Name Description
key String
defaultValue String
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.

Returns
Type Description
Map<String,String>

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(RuleOutput other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RuleOutput.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RuleOutput.Builder
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];

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

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

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

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
Returns
Type Description
RuleOutput.Builder

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.

Returns
Type Description
RuleOutput.Builder

This builder for chaining.

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.

Returns
Type Description
RuleOutput.Builder

This builder for chaining.