Class RuleOutput (0.1.0)

public final class RuleOutput extends GeneratedMessage implements RuleOutputOrBuilder

The rule output of the violation.

Protobuf type google.cloud.workloadmanager.v1.RuleOutput

Implements

RuleOutputOrBuilder

Static Fields

DETAILS_FIELD_NUMBER

public static final int DETAILS_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RuleOutput getDefaultInstance()
Returns
Type Description
RuleOutput

getDescriptor()

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

newBuilder()

public static RuleOutput.Builder newBuilder()
Returns
Type Description
RuleOutput.Builder

newBuilder(RuleOutput prototype)

public static RuleOutput.Builder newBuilder(RuleOutput prototype)
Parameter
Name Description
prototype RuleOutput
Returns
Type Description
RuleOutput.Builder

parseDelimitedFrom(InputStream input)

public static RuleOutput parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RuleOutput
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RuleOutput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RuleOutput
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RuleOutput parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RuleOutput
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RuleOutput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RuleOutput
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RuleOutput parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RuleOutput
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RuleOutput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RuleOutput
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RuleOutput parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RuleOutput
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RuleOutput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RuleOutput
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RuleOutput parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RuleOutput
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RuleOutput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RuleOutput
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RuleOutput parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RuleOutput
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RuleOutput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RuleOutput
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RuleOutput> parser()
Returns
Type Description
Parser<RuleOutput>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RuleOutput getDefaultInstanceForType()
Returns
Type Description
RuleOutput

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.

getParserForType()

public Parser<RuleOutput> getParserForType()
Returns
Type Description
Parser<RuleOutput>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected RuleOutput.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RuleOutput.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException