Class UpdateTriggerRequest.Builder (1.44.0)

public static final class UpdateTriggerRequest.Builder extends GeneratedMessageV3.Builder<UpdateTriggerRequest.Builder> implements UpdateTriggerRequestOrBuilder

The request message for the UpdateTrigger method.

Protobuf type google.cloud.eventarc.v1.UpdateTriggerRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateTriggerRequest build()
Returns
Type Description
UpdateTriggerRequest

buildPartial()

public UpdateTriggerRequest buildPartial()
Returns
Type Description
UpdateTriggerRequest

clear()

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

clearAllowMissing()

public UpdateTriggerRequest.Builder clearAllowMissing()

If set to true, and the trigger is not found, a new trigger will be created. In this situation, update_mask is ignored.

bool allow_missing = 3;

Returns
Type Description
UpdateTriggerRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTrigger()

public UpdateTriggerRequest.Builder clearTrigger()

The trigger to be updated.

.google.cloud.eventarc.v1.Trigger trigger = 1;

Returns
Type Description
UpdateTriggerRequest.Builder

clearUpdateMask()

public UpdateTriggerRequest.Builder clearUpdateMask()

The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateTriggerRequest.Builder

clearValidateOnly()

public UpdateTriggerRequest.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
UpdateTriggerRequest.Builder

This builder for chaining.

clone()

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

getAllowMissing()

public boolean getAllowMissing()

If set to true, and the trigger is not found, a new trigger will be created. In this situation, update_mask is ignored.

bool allow_missing = 3;

Returns
Type Description
boolean

The allowMissing.

getDefaultInstanceForType()

public UpdateTriggerRequest getDefaultInstanceForType()
Returns
Type Description
UpdateTriggerRequest

getDescriptorForType()

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

getTrigger()

public Trigger getTrigger()

The trigger to be updated.

.google.cloud.eventarc.v1.Trigger trigger = 1;

Returns
Type Description
Trigger

The trigger.

getTriggerBuilder()

public Trigger.Builder getTriggerBuilder()

The trigger to be updated.

.google.cloud.eventarc.v1.Trigger trigger = 1;

Returns
Type Description
Trigger.Builder

getTriggerOrBuilder()

public TriggerOrBuilder getTriggerOrBuilder()

The trigger to be updated.

.google.cloud.eventarc.v1.Trigger trigger = 1;

Returns
Type Description
TriggerOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

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()

The trigger to be updated.

.google.cloud.eventarc.v1.Trigger trigger = 1;

Returns
Type Description
boolean

Whether the trigger field is set.

hasUpdateMask()

public boolean hasUpdateMask()

The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateTriggerRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTrigger(Trigger value)

public UpdateTriggerRequest.Builder mergeTrigger(Trigger value)

The trigger to be updated.

.google.cloud.eventarc.v1.Trigger trigger = 1;

Parameter
Name Description
value Trigger
Returns
Type Description
UpdateTriggerRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateTriggerRequest.Builder mergeUpdateMask(FieldMask value)

The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateTriggerRequest.Builder

setAllowMissing(boolean value)

public UpdateTriggerRequest.Builder setAllowMissing(boolean value)

If set to true, and the trigger is not found, a new trigger will be created. In this situation, update_mask is ignored.

bool allow_missing = 3;

Parameter
Name Description
value boolean

The allowMissing to set.

Returns
Type Description
UpdateTriggerRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTrigger(Trigger value)

public UpdateTriggerRequest.Builder setTrigger(Trigger value)

The trigger to be updated.

.google.cloud.eventarc.v1.Trigger trigger = 1;

Parameter
Name Description
value Trigger
Returns
Type Description
UpdateTriggerRequest.Builder

setTrigger(Trigger.Builder builderForValue)

public UpdateTriggerRequest.Builder setTrigger(Trigger.Builder builderForValue)

The trigger to be updated.

.google.cloud.eventarc.v1.Trigger trigger = 1;

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateTriggerRequest.Builder setUpdateMask(FieldMask value)

The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateTriggerRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateTriggerRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateTriggerRequest.Builder

setValidateOnly(boolean value)

public UpdateTriggerRequest.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
UpdateTriggerRequest.Builder

This builder for chaining.