Class CreateBuildTriggerRequest.Builder (3.48.0)

public static final class CreateBuildTriggerRequest.Builder extends GeneratedMessageV3.Builder<CreateBuildTriggerRequest.Builder> implements CreateBuildTriggerRequestOrBuilder

Request to create a new BuildTrigger.

Protobuf type google.devtools.cloudbuild.v1.CreateBuildTriggerRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateBuildTriggerRequest build()
Returns
Type Description
CreateBuildTriggerRequest

buildPartial()

public CreateBuildTriggerRequest buildPartial()
Returns
Type Description
CreateBuildTriggerRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateBuildTriggerRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateBuildTriggerRequest.Builder
Overrides

clearParent()

public CreateBuildTriggerRequest.Builder clearParent()

The parent resource where this trigger will be created. Format: projects/{project}/locations/{location}

string parent = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
CreateBuildTriggerRequest.Builder

This builder for chaining.

clearProjectId()

public CreateBuildTriggerRequest.Builder clearProjectId()

Required. ID of the project for which to configure automatic builds.

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

Returns
Type Description
CreateBuildTriggerRequest.Builder

This builder for chaining.

clearTrigger()

public CreateBuildTriggerRequest.Builder clearTrigger()

Required. BuildTrigger to create.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateBuildTriggerRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateBuildTriggerRequest getDefaultInstanceForType()
Returns
Type Description
CreateBuildTriggerRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

The parent resource where this trigger will be created. Format: projects/{project}/locations/{location}

string parent = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The parent resource where this trigger will be created. Format: projects/{project}/locations/{location}

string parent = 3 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getProjectId()

public String getProjectId()

Required. ID of the project for which to configure automatic builds.

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

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. ID of the project for which to configure automatic builds.

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

Returns
Type Description
ByteString

The bytes for projectId.

getTrigger()

public BuildTrigger getTrigger()

Required. BuildTrigger to create.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BuildTrigger

The trigger.

getTriggerBuilder()

public BuildTrigger.Builder getTriggerBuilder()

Required. BuildTrigger to create.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BuildTrigger.Builder

getTriggerOrBuilder()

public BuildTriggerOrBuilder getTriggerOrBuilder()

Required. BuildTrigger to create.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BuildTriggerOrBuilder

hasTrigger()

public boolean hasTrigger()

Required. BuildTrigger to create.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the trigger field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateBuildTriggerRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTrigger(BuildTrigger value)

public CreateBuildTriggerRequest.Builder mergeTrigger(BuildTrigger value)

Required. BuildTrigger to create.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BuildTrigger
Returns
Type Description
CreateBuildTriggerRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateBuildTriggerRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateBuildTriggerRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateBuildTriggerRequest.Builder setParent(String value)

The parent resource where this trigger will be created. Format: projects/{project}/locations/{location}

string parent = 3 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateBuildTriggerRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateBuildTriggerRequest.Builder setParentBytes(ByteString value)

The parent resource where this trigger will be created. Format: projects/{project}/locations/{location}

string parent = 3 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateBuildTriggerRequest.Builder

This builder for chaining.

setProjectId(String value)

public CreateBuildTriggerRequest.Builder setProjectId(String value)

Required. ID of the project for which to configure automatic builds.

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

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
CreateBuildTriggerRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public CreateBuildTriggerRequest.Builder setProjectIdBytes(ByteString value)

Required. ID of the project for which to configure automatic builds.

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

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
CreateBuildTriggerRequest.Builder

This builder for chaining.

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

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

setTrigger(BuildTrigger value)

public CreateBuildTriggerRequest.Builder setTrigger(BuildTrigger value)

Required. BuildTrigger to create.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value BuildTrigger
Returns
Type Description
CreateBuildTriggerRequest.Builder

setTrigger(BuildTrigger.Builder builderForValue)

public CreateBuildTriggerRequest.Builder setTrigger(BuildTrigger.Builder builderForValue)

Required. BuildTrigger to create.

.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue BuildTrigger.Builder
Returns
Type Description
CreateBuildTriggerRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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