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.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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateBuildTriggerRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateBuildTriggerRequest build()
Returns
buildPartial()
public CreateBuildTriggerRequest buildPartial()
Returns
clear()
public CreateBuildTriggerRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateBuildTriggerRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateBuildTriggerRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clearTrigger()
public CreateBuildTriggerRequest.Builder clearTrigger()
Required. BuildTrigger
to create.
.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public CreateBuildTriggerRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateBuildTriggerRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
getTrigger()
public BuildTrigger getTrigger()
Required. BuildTrigger
to create.
.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getTriggerBuilder()
public BuildTrigger.Builder getTriggerBuilder()
Required. BuildTrigger
to create.
.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getTriggerOrBuilder()
public BuildTriggerOrBuilder getTriggerOrBuilder()
Required. BuildTrigger
to create.
.google.devtools.cloudbuild.v1.BuildTrigger trigger = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateBuildTriggerRequest other)
public CreateBuildTriggerRequest.Builder mergeFrom(CreateBuildTriggerRequest other)
Parameter
Returns
public CreateBuildTriggerRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateBuildTriggerRequest.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateBuildTriggerRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateBuildTriggerRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateBuildTriggerRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateBuildTriggerRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides