Class CreateBuildTriggerRequest.Builder (3.4.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateBuildTriggerRequest build()
Returns
TypeDescription
CreateBuildTriggerRequest

buildPartial()

public CreateBuildTriggerRequest buildPartial()
Returns
TypeDescription
CreateBuildTriggerRequest

clear()

public CreateBuildTriggerRequest.Builder clear()
Returns
TypeDescription
CreateBuildTriggerRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public CreateBuildTriggerRequest.Builder clone()
Returns
TypeDescription
CreateBuildTriggerRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateBuildTriggerRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateBuildTriggerRequest

getDescriptorForType()

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

getTriggerOrBuilder()

public BuildTriggerOrBuilder getTriggerOrBuilder()

Required. BuildTrigger to create.

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

Returns
TypeDescription
BuildTriggerOrBuilder

hasTrigger()

public boolean hasTrigger()

Required. BuildTrigger to create.

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

Returns
TypeDescription
boolean

Whether the trigger field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateBuildTriggerRequest other)

public CreateBuildTriggerRequest.Builder mergeFrom(CreateBuildTriggerRequest other)
Parameter
NameDescription
otherCreateBuildTriggerRequest
Returns
TypeDescription
CreateBuildTriggerRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateBuildTriggerRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueBuildTrigger
Returns
TypeDescription
CreateBuildTriggerRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateBuildTriggerRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateBuildTriggerRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

The projectId to set.

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

The bytes for projectId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueBuildTrigger
Returns
TypeDescription
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
NameDescription
builderForValueBuildTrigger.Builder
Returns
TypeDescription
CreateBuildTriggerRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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