Class CreateBuildRequest.Builder (3.48.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateBuildRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateBuildRequest.Builder
Overrides

build()

public CreateBuildRequest build()
Returns
Type Description
CreateBuildRequest

buildPartial()

public CreateBuildRequest buildPartial()
Returns
Type Description
CreateBuildRequest

clear()

public CreateBuildRequest.Builder clear()
Returns
Type Description
CreateBuildRequest.Builder
Overrides

clearBuild()

public CreateBuildRequest.Builder clearBuild()

Required. Build resource to create.

.google.devtools.cloudbuild.v1.Build build = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateBuildRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateBuildRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateBuildRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateBuildRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateBuildRequest.Builder
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
Type Description
CreateBuildRequest.Builder

This builder for chaining.

clearProjectId()

public CreateBuildRequest.Builder clearProjectId()

Required. ID of the project.

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

Returns
Type Description
CreateBuildRequest.Builder

This builder for chaining.

clone()

public CreateBuildRequest.Builder clone()
Returns
Type Description
CreateBuildRequest.Builder
Overrides

getBuild()

public Build 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
Type Description
Build.Builder

getBuildOrBuilder()

public BuildOrBuilder getBuildOrBuilder()

Required. Build resource to create.

.google.devtools.cloudbuild.v1.Build build = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BuildOrBuilder

getDefaultInstanceForType()

public CreateBuildRequest getDefaultInstanceForType()
Returns
Type Description
CreateBuildRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
ByteString

The bytes for parent.

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
Type Description
ByteString

The bytes for projectId.

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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
Type Description
CreateBuildRequest.Builder

mergeFrom(CreateBuildRequest other)

public CreateBuildRequest.Builder mergeFrom(CreateBuildRequest other)
Parameter
Name Description
other CreateBuildRequest
Returns
Type Description
CreateBuildRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateBuildRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateBuildRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateBuildRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateBuildRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateBuildRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateBuildRequest.Builder
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
Type Description
CreateBuildRequest.Builder

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
Name Description
builderForValue Build.Builder
Returns
Type Description
CreateBuildRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateBuildRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateBuildRequest.Builder
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
Type Description
CreateBuildRequest.Builder

This builder for chaining.

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
Type Description
CreateBuildRequest.Builder

This builder for chaining.

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
Type Description
CreateBuildRequest.Builder

This builder for chaining.

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
Type Description
CreateBuildRequest.Builder

This builder for chaining.

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

public CreateBuildRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateBuildRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateBuildRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateBuildRequest.Builder
Overrides