Class Replay.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Replay.Builder>
com.google.cloud.policysimulator.v1.Replay.Builder
All Implemented Interfaces:
ReplayOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Replay

public static final class Replay.Builder extends com.google.protobuf.GeneratedMessage.Builder<Replay.Builder> implements ReplayOrBuilder
 A resource describing a `Replay`, or simulation.
 
Protobuf type google.cloud.policysimulator.v1.Replay
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Replay.Builder>
    • clear

      public Replay.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Replay.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Replay.Builder>
    • getDefaultInstanceForType

      public Replay getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Replay build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Replay buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Replay.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Replay.Builder>
    • mergeFrom

      public Replay.Builder mergeFrom(Replay other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Replay.Builder>
    • mergeFrom

      public Replay.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Replay.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getName in interface ReplayOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface ReplayOrBuilder
      Returns:
      The bytes for name.
    • setName

      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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public Replay.Builder setNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getStateValue in interface ReplayOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      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];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getState in interface ReplayOrBuilder
      Returns:
      The state.
    • setState

      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];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • hasConfig

      public boolean hasConfig()
       Required. The configuration used for the `Replay`.
       
      .google.cloud.policysimulator.v1.ReplayConfig config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasConfig in interface ReplayOrBuilder
      Returns:
      Whether the config field is set.
    • getConfig

      public ReplayConfig getConfig()
       Required. The configuration used for the `Replay`.
       
      .google.cloud.policysimulator.v1.ReplayConfig config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConfig in interface ReplayOrBuilder
      Returns:
      The config.
    • setConfig

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

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

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

      public Replay.Builder clearConfig()
       Required. The configuration used for the `Replay`.
       
      .google.cloud.policysimulator.v1.ReplayConfig config = 3 [(.google.api.field_behavior) = REQUIRED];
    • getConfigBuilder

      public ReplayConfig.Builder getConfigBuilder()
       Required. The configuration used for the `Replay`.
       
      .google.cloud.policysimulator.v1.ReplayConfig config = 3 [(.google.api.field_behavior) = REQUIRED];
    • getConfigOrBuilder

      public ReplayConfigOrBuilder getConfigOrBuilder()
       Required. The configuration used for the `Replay`.
       
      .google.cloud.policysimulator.v1.ReplayConfig config = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConfigOrBuilder in interface ReplayOrBuilder
    • 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];
      Specified by:
      hasResultsSummary in interface ReplayOrBuilder
      Returns:
      Whether the resultsSummary field is set.
    • 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];
      Specified by:
      getResultsSummary in interface ReplayOrBuilder
      Returns:
      The resultsSummary.
    • setResultsSummary

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

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

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getResultsSummaryOrBuilder in interface ReplayOrBuilder