Class Replay.Builder (0.21.0)

public static final class Replay.Builder extends GeneratedMessageV3.Builder<Replay.Builder> implements ReplayOrBuilder

A resource describing a Replay, or simulation.

Protobuf type google.cloud.policysimulator.v1.Replay

Implements

ReplayOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Replay.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Replay.Builder
Overrides

build()

public Replay build()
Returns
Type Description
Replay

buildPartial()

public Replay buildPartial()
Returns
Type Description
Replay

clear()

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

clearConfig()

public Replay.Builder clearConfig()

Required. The configuration used for the Replay.

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

Returns
Type Description
Replay.Builder

clearField(Descriptors.FieldDescriptor field)

public Replay.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Replay.Builder
Overrides

clearName()

public Replay.Builder clearName()

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
Replay.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Replay.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Replay.Builder
Overrides

clearResultsSummary()

public Replay.Builder clearResultsSummary()

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.Builder

clearState()

public Replay.Builder clearState()

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.Builder

This builder for chaining.

clone()

public Replay.Builder clone()
Returns
Type Description
Replay.Builder
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.

getConfigBuilder()

public ReplayConfig.Builder getConfigBuilder()

Required. The configuration used for the Replay.

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

Returns
Type Description
ReplayConfig.Builder

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

getDescriptorForType()

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

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.

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.

getResultsSummaryBuilder()

public Replay.ResultsSummary.Builder getResultsSummaryBuilder()

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.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConfig(ReplayConfig value)

public Replay.Builder mergeConfig(ReplayConfig value)

Required. The configuration used for the Replay.

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

Parameter
Name Description
value ReplayConfig
Returns
Type Description
Replay.Builder

mergeFrom(Replay other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Replay.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Replay.Builder
Overrides

mergeResultsSummary(Replay.ResultsSummary value)

public Replay.Builder mergeResultsSummary(Replay.ResultsSummary value)

Output only. Summary statistics about the replayed log entries.

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

Parameter
Name Description
value Replay.ResultsSummary
Returns
Type Description
Replay.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Replay.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Replay.Builder
Overrides

setConfig(ReplayConfig value)

public Replay.Builder setConfig(ReplayConfig value)

Required. The configuration used for the Replay.

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

Parameter
Name Description
value ReplayConfig
Returns
Type Description
Replay.Builder

setConfig(ReplayConfig.Builder builderForValue)

public Replay.Builder setConfig(ReplayConfig.Builder builderForValue)

Required. The configuration used for the Replay.

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

Parameter
Name Description
builderForValue ReplayConfig.Builder
Returns
Type Description
Replay.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Replay.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Replay.Builder
Overrides

setName(String value)

public Replay.Builder setName(String value)

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Replay.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Replay.Builder setNameBytes(ByteString value)

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Replay.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Replay.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Replay.Builder
Overrides

setResultsSummary(Replay.ResultsSummary value)

public Replay.Builder setResultsSummary(Replay.ResultsSummary value)

Output only. Summary statistics about the replayed log entries.

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

Parameter
Name Description
value Replay.ResultsSummary
Returns
Type Description
Replay.Builder

setResultsSummary(Replay.ResultsSummary.Builder builderForValue)

public Replay.Builder setResultsSummary(Replay.ResultsSummary.Builder builderForValue)

Output only. Summary statistics about the replayed log entries.

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

Parameter
Name Description
builderForValue Replay.ResultsSummary.Builder
Returns
Type Description
Replay.Builder

setState(Replay.State value)

public Replay.Builder setState(Replay.State value)

Output only. The current state of the Replay.

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

Parameter
Name Description
value Replay.State

The state to set.

Returns
Type Description
Replay.Builder

This builder for chaining.

setStateValue(int value)

public Replay.Builder setStateValue(int value)

Output only. The current state of the Replay.

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

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Replay.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Replay.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Replay.Builder
Overrides