Class Replay.Builder (0.9.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Replay.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Replay.Builder
Overrides

build()

public Replay build()
Returns
TypeDescription
Replay

buildPartial()

public Replay buildPartial()
Returns
TypeDescription
Replay

clear()

public Replay.Builder clear()
Returns
TypeDescription
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
TypeDescription
Replay.Builder

clearField(Descriptors.FieldDescriptor field)

public Replay.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Replay.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Replay.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Replay.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Replay getDefaultInstanceForType()
Returns
TypeDescription
Replay

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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.

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueReplayConfig
Returns
TypeDescription
Replay.Builder

mergeFrom(Replay other)

public Replay.Builder mergeFrom(Replay other)
Parameter
NameDescription
otherReplay
Returns
TypeDescription
Replay.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Replay.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Replay.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Replay.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueReplay.ResultsSummary
Returns
TypeDescription
Replay.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Replay.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueReplayConfig
Returns
TypeDescription
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
NameDescription
builderForValueReplayConfig.Builder
Returns
TypeDescription
Replay.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Replay.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueReplay.ResultsSummary
Returns
TypeDescription
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
NameDescription
builderForValueReplay.ResultsSummary.Builder
Returns
TypeDescription
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
NameDescription
valueReplay.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Replay.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Replay.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Replay.Builder
Overrides