Class UpdateBuildTriggerRequest.Builder (3.4.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.

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

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.

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

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