Class Replay (0.25.0)

public final class Replay extends GeneratedMessageV3 implements ReplayOrBuilder

A resource describing a Replay, or simulation.

Protobuf type google.cloud.policysimulator.v1.Replay

Implements

ReplayOrBuilder

Static Fields

CONFIG_FIELD_NUMBER

public static final int CONFIG_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

RESULTS_SUMMARY_FIELD_NUMBER

public static final int RESULTS_SUMMARY_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Replay getDefaultInstance()
Returns
Type Description
Replay

getDescriptor()

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

newBuilder()

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

newBuilder(Replay prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getConfig()

public ReplayConfig getConfig()

Required. The configuration used for the Replay.

.google.cloud.policysimulator.v1.ReplayConfig config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReplayConfig

The config.

getConfigOrBuilder()

public ReplayConfigOrBuilder getConfigOrBuilder()

Required. The configuration used for the Replay.

.google.cloud.policysimulator.v1.ReplayConfig config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReplayConfigOrBuilder

getDefaultInstanceForType()

public Replay getDefaultInstanceForType()
Returns
Type Description
Replay

getName()

public String getName()

Output only. The resource name of the Replay, which has the following format:

{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}, where {resource-id} is the ID of the project, folder, or organization that owns the Replay.

Example: projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the Replay, which has the following format:

{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}, where {resource-id} is the ID of the project, folder, or organization that owns the Replay.

Example: projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getResultsSummary()

public Replay.ResultsSummary getResultsSummary()

Output only. Summary statistics about the replayed log entries.

.google.cloud.policysimulator.v1.Replay.ResultsSummary results_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Replay.ResultsSummary

The resultsSummary.

getResultsSummaryOrBuilder()

public Replay.ResultsSummaryOrBuilder getResultsSummaryOrBuilder()

Output only. Summary statistics about the replayed log entries.

.google.cloud.policysimulator.v1.Replay.ResultsSummary results_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Replay.ResultsSummaryOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public Replay.State getState()

Output only. The current state of the Replay.

.google.cloud.policysimulator.v1.Replay.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Replay.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the Replay.

.google.cloud.policysimulator.v1.Replay.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasConfig()

public boolean hasConfig()

Required. The configuration used for the Replay.

.google.cloud.policysimulator.v1.ReplayConfig config = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the config field is set.

hasResultsSummary()

public boolean hasResultsSummary()

Output only. Summary statistics about the replayed log entries.

.google.cloud.policysimulator.v1.Replay.ResultsSummary results_summary = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the resultsSummary field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Replay.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Replay.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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