Class CreateTriggerRequest.Builder (1.49.0)

public static final class CreateTriggerRequest.Builder extends GeneratedMessageV3.Builder<CreateTriggerRequest.Builder> implements CreateTriggerRequestOrBuilder

The request message for the CreateTrigger method.

Protobuf type google.cloud.eventarc.v1.CreateTriggerRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTriggerRequest build()
Returns
Type Description
CreateTriggerRequest

buildPartial()

public CreateTriggerRequest buildPartial()
Returns
Type Description
CreateTriggerRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateTriggerRequest.Builder clearParent()

Required. The parent collection in which to add this trigger.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateTriggerRequest.Builder

This builder for chaining.

clearTrigger()

public CreateTriggerRequest.Builder clearTrigger()

Required. The trigger to create.

.google.cloud.eventarc.v1.Trigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTriggerRequest.Builder

clearTriggerId()

public CreateTriggerRequest.Builder clearTriggerId()

Required. The user-provided ID to be assigned to the trigger.

string trigger_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTriggerRequest.Builder

This builder for chaining.

clearValidateOnly()

public CreateTriggerRequest.Builder clearValidateOnly()

Required. If set, validate the request and preview the review, but do not post it.

bool validate_only = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTriggerRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateTriggerRequest getDefaultInstanceForType()
Returns
Type Description
CreateTriggerRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent collection in which to add this trigger.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent collection in which to add this trigger.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getTrigger()

public Trigger getTrigger()

Required. The trigger to create.

.google.cloud.eventarc.v1.Trigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Trigger

The trigger.

getTriggerBuilder()

public Trigger.Builder getTriggerBuilder()

Required. The trigger to create.

.google.cloud.eventarc.v1.Trigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Trigger.Builder

getTriggerId()

public String getTriggerId()

Required. The user-provided ID to be assigned to the trigger.

string trigger_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The triggerId.

getTriggerIdBytes()

public ByteString getTriggerIdBytes()

Required. The user-provided ID to be assigned to the trigger.

string trigger_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for triggerId.

getTriggerOrBuilder()

public TriggerOrBuilder getTriggerOrBuilder()

Required. The trigger to create.

.google.cloud.eventarc.v1.Trigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TriggerOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Required. If set, validate the request and preview the review, but do not post it.

bool validate_only = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

The validateOnly.

hasTrigger()

public boolean hasTrigger()

Required. The trigger to create.

.google.cloud.eventarc.v1.Trigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the trigger field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateTriggerRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTrigger(Trigger value)

public CreateTriggerRequest.Builder mergeTrigger(Trigger value)

Required. The trigger to create.

.google.cloud.eventarc.v1.Trigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Trigger
Returns
Type Description
CreateTriggerRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateTriggerRequest.Builder setParent(String value)

Required. The parent collection in which to add this trigger.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateTriggerRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateTriggerRequest.Builder setParentBytes(ByteString value)

Required. The parent collection in which to add this trigger.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateTriggerRequest.Builder

This builder for chaining.

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

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

setTrigger(Trigger value)

public CreateTriggerRequest.Builder setTrigger(Trigger value)

Required. The trigger to create.

.google.cloud.eventarc.v1.Trigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Trigger
Returns
Type Description
CreateTriggerRequest.Builder

setTrigger(Trigger.Builder builderForValue)

public CreateTriggerRequest.Builder setTrigger(Trigger.Builder builderForValue)

Required. The trigger to create.

.google.cloud.eventarc.v1.Trigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Trigger.Builder
Returns
Type Description
CreateTriggerRequest.Builder

setTriggerId(String value)

public CreateTriggerRequest.Builder setTriggerId(String value)

Required. The user-provided ID to be assigned to the trigger.

string trigger_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The triggerId to set.

Returns
Type Description
CreateTriggerRequest.Builder

This builder for chaining.

setTriggerIdBytes(ByteString value)

public CreateTriggerRequest.Builder setTriggerIdBytes(ByteString value)

Required. The user-provided ID to be assigned to the trigger.

string trigger_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for triggerId to set.

Returns
Type Description
CreateTriggerRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public CreateTriggerRequest.Builder setValidateOnly(boolean value)

Required. If set, validate the request and preview the review, but do not post it.

bool validate_only = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
CreateTriggerRequest.Builder

This builder for chaining.