Class CreateBuildRequest.Builder (3.20.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateBuildRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateBuildRequest.Builder
Overrides

build()

public CreateBuildRequest build()
Returns
TypeDescription
CreateBuildRequest

buildPartial()

public CreateBuildRequest buildPartial()
Returns
TypeDescription
CreateBuildRequest

clear()

public CreateBuildRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
CreateBuildRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public CreateBuildRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateBuildRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateBuildRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateBuildRequest.Builder

This builder for chaining.

clone()

public CreateBuildRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Build.Builder

getBuildOrBuilder()

public BuildOrBuilder getBuildOrBuilder()

Required. Build resource to create.

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

Returns
TypeDescription
BuildOrBuilder

getDefaultInstanceForType()

public CreateBuildRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateBuildRequest

getDescriptorForType()

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

The bytes for parent.

getProjectId()

public String getProjectId()

Required. ID of the project.

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

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. ID of the project.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the build field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueBuild
Returns
TypeDescription
CreateBuildRequest.Builder

mergeFrom(CreateBuildRequest other)

public CreateBuildRequest.Builder mergeFrom(CreateBuildRequest other)
Parameter
NameDescription
otherCreateBuildRequest
Returns
TypeDescription
CreateBuildRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateBuildRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateBuildRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateBuildRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateBuildRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateBuildRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueBuild
Returns
TypeDescription
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
NameDescription
builderForValueBuild.Builder
Returns
TypeDescription
CreateBuildRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateBuildRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateBuildRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateBuildRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateBuildRequest.Builder
Overrides