Class CreateTriggerRequest.Builder (1.22.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateTriggerRequest build()
Returns
TypeDescription
CreateTriggerRequest

buildPartial()

public CreateTriggerRequest buildPartial()
Returns
TypeDescription
CreateTriggerRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateTriggerRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateTriggerRequest

getDescriptorForType()

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

Whether the trigger field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateTriggerRequest other)

public CreateTriggerRequest.Builder mergeFrom(CreateTriggerRequest other)
Parameter
NameDescription
otherCreateTriggerRequest
Returns
TypeDescription
CreateTriggerRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTrigger
Returns
TypeDescription
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
NameDescription
builderForValueTrigger.Builder
Returns
TypeDescription
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
NameDescription
valueString

The triggerId to set.

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

The bytes for triggerId to set.

Returns
TypeDescription
CreateTriggerRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateTriggerRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
CreateTriggerRequest.Builder

This builder for chaining.