Class CreateReplayRequest.Builder (0.21.0)

public static final class CreateReplayRequest.Builder extends GeneratedMessageV3.Builder<CreateReplayRequest.Builder> implements CreateReplayRequestOrBuilder

Request message for Simulator.CreateReplay.

Protobuf type google.cloud.policysimulator.v1.CreateReplayRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateReplayRequest build()
Returns
Type Description
CreateReplayRequest

buildPartial()

public CreateReplayRequest buildPartial()
Returns
Type Description
CreateReplayRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateReplayRequest.Builder clearParent()

Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location.

Example: projects/my-example-project/locations/global

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateReplayRequest.Builder

This builder for chaining.

clearReplay()

public CreateReplayRequest.Builder clearReplay()

Required. The Replay to create. Set Replay.ReplayConfig to configure the replay.

.google.cloud.policysimulator.v1.Replay replay = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateReplayRequest.Builder

clone()

public CreateReplayRequest.Builder clone()
Returns
Type Description
CreateReplayRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateReplayRequest getDefaultInstanceForType()
Returns
Type Description
CreateReplayRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location.

Example: projects/my-example-project/locations/global

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location.

Example: projects/my-example-project/locations/global

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parent.

getReplay()

public Replay getReplay()

Required. The Replay to create. Set Replay.ReplayConfig to configure the replay.

.google.cloud.policysimulator.v1.Replay replay = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Replay

The replay.

getReplayBuilder()

public Replay.Builder getReplayBuilder()

Required. The Replay to create. Set Replay.ReplayConfig to configure the replay.

.google.cloud.policysimulator.v1.Replay replay = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Replay.Builder

getReplayOrBuilder()

public ReplayOrBuilder getReplayOrBuilder()

Required. The Replay to create. Set Replay.ReplayConfig to configure the replay.

.google.cloud.policysimulator.v1.Replay replay = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ReplayOrBuilder

hasReplay()

public boolean hasReplay()

Required. The Replay to create. Set Replay.ReplayConfig to configure the replay.

.google.cloud.policysimulator.v1.Replay replay = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the replay field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateReplayRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeReplay(Replay value)

public CreateReplayRequest.Builder mergeReplay(Replay value)

Required. The Replay to create. Set Replay.ReplayConfig to configure the replay.

.google.cloud.policysimulator.v1.Replay replay = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Replay
Returns
Type Description
CreateReplayRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateReplayRequest.Builder setParent(String value)

Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location.

Example: projects/my-example-project/locations/global

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateReplayRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateReplayRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location.

Example: projects/my-example-project/locations/global

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateReplayRequest.Builder

This builder for chaining.

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

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

setReplay(Replay value)

public CreateReplayRequest.Builder setReplay(Replay value)

Required. The Replay to create. Set Replay.ReplayConfig to configure the replay.

.google.cloud.policysimulator.v1.Replay replay = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Replay
Returns
Type Description
CreateReplayRequest.Builder

setReplay(Replay.Builder builderForValue)

public CreateReplayRequest.Builder setReplay(Replay.Builder builderForValue)

Required. The Replay to create. Set Replay.ReplayConfig to configure the replay.

.google.cloud.policysimulator.v1.Replay replay = 2 [(.google.api.field_behavior) = REQUIRED];

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

setUnknownFields(UnknownFieldSet unknownFields)

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