Class UpdateBuildTriggerRequest.Builder (3.45.0)

public static final class UpdateBuildTriggerRequest.Builder extends GeneratedMessageV3.Builder<UpdateBuildTriggerRequest.Builder> implements UpdateBuildTriggerRequestOrBuilder

Request to update an existing BuildTrigger.

Protobuf type google.devtools.cloudbuild.v1.UpdateBuildTriggerRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateBuildTriggerRequest build()
Returns
Type Description
UpdateBuildTriggerRequest

buildPartial()

public UpdateBuildTriggerRequest buildPartial()
Returns
Type Description
UpdateBuildTriggerRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public UpdateBuildTriggerRequest.Builder clearProjectId()

Required. ID of the project that owns the trigger.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateBuildTriggerRequest.Builder

This builder for chaining.

clearTrigger()

public UpdateBuildTriggerRequest.Builder clearTrigger()

Required. BuildTrigger to update.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateBuildTriggerRequest.Builder

clearTriggerId()

public UpdateBuildTriggerRequest.Builder clearTriggerId()

Required. ID of the BuildTrigger to update.

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

Returns
Type Description
UpdateBuildTriggerRequest.Builder

This builder for chaining.

clearUpdateMask()

public UpdateBuildTriggerRequest.Builder clearUpdateMask()

Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed.

.google.protobuf.FieldMask update_mask = 5;

Returns
Type Description
UpdateBuildTriggerRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateBuildTriggerRequest getDefaultInstanceForType()
Returns
Type Description
UpdateBuildTriggerRequest

getDescriptorForType()

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

getProjectId()

public String getProjectId()

Required. ID of the project that owns the trigger.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. ID of the project that owns the trigger.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for projectId.

getTrigger()

public BuildTrigger getTrigger()

Required. BuildTrigger to update.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BuildTrigger

The trigger.

getTriggerBuilder()

public BuildTrigger.Builder getTriggerBuilder()

Required. BuildTrigger to update.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BuildTrigger.Builder

getTriggerId()

public String getTriggerId()

Required. ID of the BuildTrigger to update.

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

Returns
Type Description
String

The triggerId.

getTriggerIdBytes()

public ByteString getTriggerIdBytes()

Required. ID of the BuildTrigger to update.

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

Returns
Type Description
ByteString

The bytes for triggerId.

getTriggerOrBuilder()

public BuildTriggerOrBuilder getTriggerOrBuilder()

Required. BuildTrigger to update.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BuildTriggerOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed.

.google.protobuf.FieldMask update_mask = 5;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed.

.google.protobuf.FieldMask update_mask = 5;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed.

.google.protobuf.FieldMask update_mask = 5;

Returns
Type Description
FieldMaskOrBuilder

hasTrigger()

public boolean hasTrigger()

Required. BuildTrigger to update.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the trigger field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed.

.google.protobuf.FieldMask update_mask = 5;

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTrigger(BuildTrigger value)

public UpdateBuildTriggerRequest.Builder mergeTrigger(BuildTrigger value)

Required. BuildTrigger to update.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BuildTrigger
Returns
Type Description
UpdateBuildTriggerRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateBuildTriggerRequest.Builder mergeUpdateMask(FieldMask value)

Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed.

.google.protobuf.FieldMask update_mask = 5;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateBuildTriggerRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setProjectId(String value)

public UpdateBuildTriggerRequest.Builder setProjectId(String value)

Required. ID of the project that owns the trigger.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
UpdateBuildTriggerRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public UpdateBuildTriggerRequest.Builder setProjectIdBytes(ByteString value)

Required. ID of the project that owns the trigger.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
UpdateBuildTriggerRequest.Builder

This builder for chaining.

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

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

setTrigger(BuildTrigger value)

public UpdateBuildTriggerRequest.Builder setTrigger(BuildTrigger value)

Required. BuildTrigger to update.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BuildTrigger
Returns
Type Description
UpdateBuildTriggerRequest.Builder

setTrigger(BuildTrigger.Builder builderForValue)

public UpdateBuildTriggerRequest.Builder setTrigger(BuildTrigger.Builder builderForValue)

Required. BuildTrigger to update.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue BuildTrigger.Builder
Returns
Type Description
UpdateBuildTriggerRequest.Builder

setTriggerId(String value)

public UpdateBuildTriggerRequest.Builder setTriggerId(String value)

Required. ID of the BuildTrigger to update.

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

Parameter
Name Description
value String

The triggerId to set.

Returns
Type Description
UpdateBuildTriggerRequest.Builder

This builder for chaining.

setTriggerIdBytes(ByteString value)

public UpdateBuildTriggerRequest.Builder setTriggerIdBytes(ByteString value)

Required. ID of the BuildTrigger to update.

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

Parameter
Name Description
value ByteString

The bytes for triggerId to set.

Returns
Type Description
UpdateBuildTriggerRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateBuildTriggerRequest.Builder setUpdateMask(FieldMask value)

Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed.

.google.protobuf.FieldMask update_mask = 5;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateBuildTriggerRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateBuildTriggerRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Update mask for the resource. If this is set, the server will only update the fields specified in the field mask. Otherwise, a full update of the mutable resource fields will be performed.

.google.protobuf.FieldMask update_mask = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateBuildTriggerRequest.Builder