Class UpdateBuildTriggerRequest.Builder (3.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateBuildTriggerRequest build()
Returns
TypeDescription
UpdateBuildTriggerRequest

buildPartial()

public UpdateBuildTriggerRequest buildPartial()
Returns
TypeDescription
UpdateBuildTriggerRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTriggerId()

public UpdateBuildTriggerRequest.Builder clearTriggerId()

Required. ID of the BuildTrigger to update.

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

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

clone()

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

getDefaultInstanceForType()

public UpdateBuildTriggerRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateBuildTriggerRequest

getDescriptorForType()

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

getTriggerId()

public String getTriggerId()

Required. ID of the BuildTrigger to update.

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

Returns
TypeDescription
String

The triggerId.

getTriggerIdBytes()

public ByteString getTriggerIdBytes()

Required. ID of the BuildTrigger to update.

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

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

hasTrigger()

public boolean hasTrigger()

Required. BuildTrigger to update.

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

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

public UpdateBuildTriggerRequest.Builder mergeFrom(UpdateBuildTriggerRequest other)
Parameter
NameDescription
otherUpdateBuildTriggerRequest
Returns
TypeDescription
UpdateBuildTriggerRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The projectId to set.

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

The bytes for projectId to set.

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

The triggerId to set.

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

The bytes for triggerId to set.

Returns
TypeDescription
UpdateBuildTriggerRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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