Class CreateReplayRequest.Builder (0.16.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateReplayRequest build()
Returns
TypeDescription
CreateReplayRequest

buildPartial()

public CreateReplayRequest buildPartial()
Returns
TypeDescription
CreateReplayRequest

clear()

public CreateReplayRequest.Builder clear()
Returns
TypeDescription
CreateReplayRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateReplayRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateReplayRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public CreateReplayRequest.Builder clone()
Returns
TypeDescription
CreateReplayRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateReplayRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateReplayRequest

getDescriptorForType()

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

Whether the replay field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateReplayRequest other)

public CreateReplayRequest.Builder mergeFrom(CreateReplayRequest other)
Parameter
NameDescription
otherCreateReplayRequest
Returns
TypeDescription
CreateReplayRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateReplayRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateReplayRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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