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
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateBuildRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateBuildRequest build()
buildPartial()
public CreateBuildRequest buildPartial()
clear()
public CreateBuildRequest.Builder clear()
Overrides
clearBuild()
public CreateBuildRequest.Builder clearBuild()
Required. Build resource to create.
.google.devtools.cloudbuild.v1.Build build = 2 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public CreateBuildRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateBuildRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clearProjectId()
public CreateBuildRequest.Builder clearProjectId()
Required. ID of the project.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public CreateBuildRequest.Builder clone()
Overrides
getBuild()
Required. Build resource to create.
.google.devtools.cloudbuild.v1.Build build = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
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];
getBuildOrBuilder()
public BuildOrBuilder getBuildOrBuilder()
Required. Build resource to create.
.google.devtools.cloudbuild.v1.Build build = 2 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public CreateBuildRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
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 |
---|
Type | Description |
ByteString | The bytes for parent.
|
getProjectId()
public String getProjectId()
Required. ID of the project.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
String | The projectId.
|
getProjectIdBytes()
public ByteString getProjectIdBytes()
Required. ID of the project.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
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 |
---|
Type | Description |
boolean | Whether the build field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
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 |
---|
Name | Description |
value | Build
|
mergeFrom(CreateBuildRequest other)
public CreateBuildRequest.Builder mergeFrom(CreateBuildRequest other)
public CreateBuildRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateBuildRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateBuildRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
value | Build
|
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];
setField(Descriptors.FieldDescriptor field, Object value)
public CreateBuildRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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 |
---|
Name | Description |
value | String
The parent to set.
|
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 |
---|
Name | Description |
value | ByteString
The bytes for parent to set.
|
setProjectId(String value)
public CreateBuildRequest.Builder setProjectId(String value)
Required. ID of the project.
string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | String
The projectId to set.
|
setProjectIdBytes(ByteString value)
public CreateBuildRequest.Builder setProjectIdBytes(ByteString value)
Required. ID of the project.
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 CreateBuildRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateBuildRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides