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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateBuildTriggerRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateBuildTriggerRequest build()
buildPartial()
public CreateBuildTriggerRequest buildPartial()
clear()
public CreateBuildTriggerRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateBuildTriggerRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateBuildTriggerRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
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];
clearTrigger()
public CreateBuildTriggerRequest.Builder clearTrigger()
Required. BuildTrigger
to create.
.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];
clone()
public CreateBuildTriggerRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateBuildTriggerRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
getTriggerBuilder()
public BuildTrigger.Builder getTriggerBuilder()
Required. BuildTrigger
to create.
.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];
getTriggerOrBuilder()
public BuildTriggerOrBuilder getTriggerOrBuilder()
Required. BuildTrigger
to create.
.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateBuildTriggerRequest other)
public CreateBuildTriggerRequest.Builder mergeFrom(CreateBuildTriggerRequest other)
public CreateBuildTriggerRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateBuildTriggerRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateBuildTriggerRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateBuildTriggerRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateBuildTriggerRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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];
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];
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateBuildTriggerRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides