Class UpdateTriggerRequest.Builder (1.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateTriggerRequest build()
Returns
TypeDescription
UpdateTriggerRequest

buildPartial()

public UpdateTriggerRequest buildPartial()
Returns
TypeDescription
UpdateTriggerRequest

clear()

public UpdateTriggerRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
UpdateTriggerRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateTriggerRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateTriggerRequest.Builder
Overrides

clearTrigger()

public UpdateTriggerRequest.Builder clearTrigger()

The trigger to be updated.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UpdateTriggerRequest.Builder

This builder for chaining.

clone()

public UpdateTriggerRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
boolean

The allowMissing.

getDefaultInstanceForType()

public UpdateTriggerRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateTriggerRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTrigger()

public Trigger getTrigger()

The trigger to be updated.

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

Returns
TypeDescription
Trigger

The trigger.

getTriggerBuilder()

public Trigger.Builder getTriggerBuilder()

The trigger to be updated.

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

Returns
TypeDescription
Trigger.Builder

getTriggerOrBuilder()

public TriggerOrBuilder getTriggerOrBuilder()

The trigger to be updated.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The validateOnly.

hasTrigger()

public boolean hasTrigger()

The trigger to be updated.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateTriggerRequest other)

public UpdateTriggerRequest.Builder mergeFrom(UpdateTriggerRequest other)
Parameter
NameDescription
otherUpdateTriggerRequest
Returns
TypeDescription
UpdateTriggerRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The allowMissing to set.

Returns
TypeDescription
UpdateTriggerRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public UpdateTriggerRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTrigger
Returns
TypeDescription
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
NameDescription
builderForValueTrigger.Builder
Returns
TypeDescription
UpdateTriggerRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

The validateOnly to set.

Returns
TypeDescription
UpdateTriggerRequest.Builder

This builder for chaining.