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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateBuildTriggerRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public UpdateBuildTriggerRequest build()
Returns
buildPartial()
public UpdateBuildTriggerRequest buildPartial()
Returns
clear()
public UpdateBuildTriggerRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public UpdateBuildTriggerRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateBuildTriggerRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clearTrigger()
public UpdateBuildTriggerRequest.Builder clearTrigger()
Required. BuildTrigger
to update.
.google.devtools.cloudbuild.v1.BuildTrigger trigger = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
clearTriggerId()
public UpdateBuildTriggerRequest.Builder clearTriggerId()
Required. ID of the BuildTrigger
to update.
string trigger_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public UpdateBuildTriggerRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public UpdateBuildTriggerRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
getTrigger()
public BuildTrigger getTrigger()
Required. BuildTrigger
to update.
.google.devtools.cloudbuild.v1.BuildTrigger trigger = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getTriggerBuilder()
public BuildTrigger.Builder getTriggerBuilder()
Required. BuildTrigger
to update.
.google.devtools.cloudbuild.v1.BuildTrigger trigger = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
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
getTriggerOrBuilder()
public BuildTriggerOrBuilder getTriggerOrBuilder()
Required. BuildTrigger
to update.
.google.devtools.cloudbuild.v1.BuildTrigger trigger = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(UpdateBuildTriggerRequest other)
public UpdateBuildTriggerRequest.Builder mergeFrom(UpdateBuildTriggerRequest other)
Parameter
Returns
public UpdateBuildTriggerRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public UpdateBuildTriggerRequest.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateBuildTriggerRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateBuildTriggerRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateBuildTriggerRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
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
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
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateBuildTriggerRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides