Class CancelBuildRequest.Builder (3.82.0)

publicstaticfinalclass CancelBuildRequest.BuilderextendsGeneratedMessageV3.Builder<CancelBuildRequest.Builder>implementsCancelBuildRequestOrBuilder

Request to cancel an ongoing build.

Protobuf type google.devtools.cloudbuild.v1.CancelBuildRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCancelBuildRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CancelBuildRequest.Builder
Overrides

build()

publicCancelBuildRequestbuild()
Returns
Type Description
CancelBuildRequest

buildPartial()

publicCancelBuildRequestbuildPartial()
Returns
Type Description
CancelBuildRequest

clear()

publicCancelBuildRequest.Builderclear()
Returns
Type Description
CancelBuildRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCancelBuildRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CancelBuildRequest.Builder
Overrides

clearId()

publicCancelBuildRequest.BuilderclearId()

Required. ID of the build.

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

Returns
Type Description
CancelBuildRequest.Builder

This builder for chaining.

clearName()

publicCancelBuildRequest.BuilderclearName()

The name of the Build to cancel. Format: projects/{project}/locations/{location}/builds/{build}

string name = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
CancelBuildRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicCancelBuildRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CancelBuildRequest.Builder
Overrides

clearProjectId()

publicCancelBuildRequest.BuilderclearProjectId()

Required. ID of the project.

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

Returns
Type Description
CancelBuildRequest.Builder

This builder for chaining.

clone()

publicCancelBuildRequest.Builderclone()
Returns
Type Description
CancelBuildRequest.Builder
Overrides

getDefaultInstanceForType()

publicCancelBuildRequestgetDefaultInstanceForType()
Returns
Type Description
CancelBuildRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getId()

publicStringgetId()

Required. ID of the build.

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

Returns
Type Description
String

The id.

getIdBytes()

publicByteStringgetIdBytes()

Required. ID of the build.

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

Returns
Type Description
ByteString

The bytes for id.

getName()

publicStringgetName()

The name of the Build to cancel. Format: projects/{project}/locations/{location}/builds/{build}

string name = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

The name of the Build to cancel. Format: projects/{project}/locations/{location}/builds/{build}

string name = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getProjectId()

publicStringgetProjectId()

Required. ID of the project.

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

Returns
Type Description
String

The projectId.

getProjectIdBytes()

publicByteStringgetProjectIdBytes()

Required. ID of the project.

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

Returns
Type Description
ByteString

The bytes for projectId.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CancelBuildRequest other)

publicCancelBuildRequest.BuildermergeFrom(CancelBuildRequestother)
Parameter
Name Description
other CancelBuildRequest
Returns
Type Description
CancelBuildRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCancelBuildRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CancelBuildRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicCancelBuildRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CancelBuildRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCancelBuildRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CancelBuildRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicCancelBuildRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CancelBuildRequest.Builder
Overrides

setId(String value)

publicCancelBuildRequest.BuildersetId(Stringvalue)

Required. ID of the build.

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

Parameter
Name Description
value String

The id to set.

Returns
Type Description
CancelBuildRequest.Builder

This builder for chaining.

setIdBytes(ByteString value)

publicCancelBuildRequest.BuildersetIdBytes(ByteStringvalue)

Required. ID of the build.

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

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
CancelBuildRequest.Builder

This builder for chaining.

setName(String value)

publicCancelBuildRequest.BuildersetName(Stringvalue)

The name of the Build to cancel. Format: projects/{project}/locations/{location}/builds/{build}

string name = 4 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
CancelBuildRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicCancelBuildRequest.BuildersetNameBytes(ByteStringvalue)

The name of the Build to cancel. Format: projects/{project}/locations/{location}/builds/{build}

string name = 4 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
CancelBuildRequest.Builder

This builder for chaining.

setProjectId(String value)

publicCancelBuildRequest.BuildersetProjectId(Stringvalue)

Required. ID of the project.

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

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
CancelBuildRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

publicCancelBuildRequest.BuildersetProjectIdBytes(ByteStringvalue)

Required. ID of the project.

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

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
CancelBuildRequest.Builder

This builder for chaining.

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

publicCancelBuildRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CancelBuildRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCancelBuildRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CancelBuildRequest.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.