Send feedback
Class CreateBuildRequest.Builder (3.5.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.5.1 keyboard_arrow_down
public static final class CreateBuildRequest . Builder extends GeneratedMessageV3 . Builder<CreateBuildRequest . Builder > implements CreateBuildRequestOrBuilder
Request to create a new build.
Protobuf type google.devtools.cloudbuild.v1.CreateBuildRequest
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateBuildRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public CreateBuildRequest build ()
Returns
buildPartial()
public CreateBuildRequest buildPartial ()
Returns
clear()
public CreateBuildRequest . Builder clear ()
Returns
Overrides
clearBuild()
public CreateBuildRequest . Builder clearBuild ()
Required. Build resource to create.
.google.devtools.cloudbuild.v1.Build build = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public CreateBuildRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateBuildRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearParent()
public CreateBuildRequest . Builder clearParent ()
The parent resource where this build will be created.
Format: projects/{project}/locations/{location}
string parent = 4 [(.google.api.resource_reference) = { ... }
Returns
clearProjectId()
public CreateBuildRequest . Builder clearProjectId ()
Required. ID of the project.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public CreateBuildRequest . Builder clone ()
Returns
Overrides
getBuild()
Required. Build resource to create.
.google.devtools.cloudbuild.v1.Build build = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description Build The build.
getBuildBuilder()
public Build . Builder getBuildBuilder ()
Required. Build resource to create.
.google.devtools.cloudbuild.v1.Build build = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getBuildOrBuilder()
public BuildOrBuilder getBuildOrBuilder ()
Required. Build resource to create.
.google.devtools.cloudbuild.v1.Build build = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getDefaultInstanceForType()
public CreateBuildRequest getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getParent()
public String getParent ()
The parent resource where this build will be created.
Format: projects/{project}/locations/{location}
string parent = 4 [(.google.api.resource_reference) = { ... }
Returns
Type Description String The parent.
getParentBytes()
public ByteString getParentBytes ()
The parent resource where this build will be created.
Format: projects/{project}/locations/{location}
string parent = 4 [(.google.api.resource_reference) = { ... }
Returns
getProjectId()
public String getProjectId ()
Required. ID of the project.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description String The projectId.
getProjectIdBytes()
public ByteString getProjectIdBytes ()
Required. ID of the project.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
hasBuild()
public boolean hasBuild ()
Required. Build resource to create.
.google.devtools.cloudbuild.v1.Build build = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description boolean Whether the build field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeBuild(Build value)
public CreateBuildRequest . Builder mergeBuild ( Build value )
Required. Build resource to create.
.google.devtools.cloudbuild.v1.Build build = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value Build
Returns
mergeFrom(CreateBuildRequest other)
public CreateBuildRequest . Builder mergeFrom ( CreateBuildRequest other )
Parameter
Returns
public CreateBuildRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateBuildRequest . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateBuildRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setBuild(Build value)
public CreateBuildRequest . Builder setBuild ( Build value )
Required. Build resource to create.
.google.devtools.cloudbuild.v1.Build build = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value Build
Returns
setBuild(Build.Builder builderForValue)
public CreateBuildRequest . Builder setBuild ( Build . Builder builderForValue )
Required. Build resource to create.
.google.devtools.cloudbuild.v1.Build build = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateBuildRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setParent(String value)
public CreateBuildRequest . Builder setParent ( String value )
The parent resource where this build will be created.
Format: projects/{project}/locations/{location}
string parent = 4 [(.google.api.resource_reference) = { ... }
Parameter
Name Description value String
The parent to set.
Returns
setParentBytes(ByteString value)
public CreateBuildRequest . Builder setParentBytes ( ByteString value )
The parent resource where this build will be created.
Format: projects/{project}/locations/{location}
string parent = 4 [(.google.api.resource_reference) = { ... }
Parameter
Name Description value ByteString
The bytes for parent to set.
Returns
setProjectId(String value)
public CreateBuildRequest . Builder setProjectId ( String value )
Required. ID of the project.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name Description value String
The projectId to set.
Returns
setProjectIdBytes(ByteString value)
public CreateBuildRequest . Builder setProjectIdBytes ( ByteString value )
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateBuildRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateBuildRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
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-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]