Class Replay (0.14.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
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

RESULTS_SUMMARY_FIELD_NUMBER

public static final int RESULTS_SUMMARY_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Replay getDefaultInstance()
Returns
TypeDescription
Replay

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Replay.Builder newBuilder()
Returns
TypeDescription
Replay.Builder

newBuilder(Replay prototype)

public static Replay.Builder newBuilder(Replay prototype)
Parameter
NameDescription
prototypeReplay
Returns
TypeDescription
Replay.Builder

parseDelimitedFrom(InputStream input)

public static Replay parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Replay
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Replay parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Replay
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Replay parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Replay
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Replay parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Replay
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Replay parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Replay
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Replay parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Replay
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Replay parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Replay
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Replay parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Replay
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Replay parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Replay
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Replay parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Replay
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Replay parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Replay
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Replay parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Replay
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Replay> parser()
Returns
TypeDescription
Parser<Replay>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ReplayConfigOrBuilder

getDefaultInstanceForType()

public Replay getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Replay> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Replay.ResultsSummaryOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the resultsSummary field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Replay.Builder newBuilderForType()
Returns
TypeDescription
Replay.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Replay.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Replay.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Replay.Builder toBuilder()
Returns
TypeDescription
Replay.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException