// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v6.33.2
// source: google/devtools/cloudbuild/v2/cloudbuild.proto

package cloudbuildpb

import (
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"

	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

// Represents the metadata of the long-running operation.
type OperationMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Output only. The time the operation was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time the operation finished running.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Output only. Server-defined resource path for the target of the operation.
	Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
	// Output only. Name of the verb executed by the operation.
	Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
	// Output only. Human-readable status of the operation, if any.
	StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	// Output only. Identifies whether the user has requested cancellation
	// of the operation. Operations that have successfully been cancelled
	// have [Operation.error][] value with a
	// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
	// `Code.CANCELLED`.
	RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
	// Output only. API version used to start the operation.
	ApiVersion    string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *OperationMetadata) Reset() {
	*x = OperationMetadata{}
	mi := &file_google_devtools_cloudbuild_v2_cloudbuild_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *OperationMetadata) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*OperationMetadata) ProtoMessage() {}

func (x *OperationMetadata) ProtoReflect() protoreflect.Message {
	mi := &file_google_devtools_cloudbuild_v2_cloudbuild_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) Descriptor() ([]byte, []int) {
	return file_google_devtools_cloudbuild_v2_cloudbuild_proto_rawDescGZIP(), []int{0}
}

func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp {
	if x != nil {
		return x.EndTime
	}
	return nil
}

func (x *OperationMetadata) GetTarget() string {
	if x != nil {
		return x.Target
	}
	return ""
}

func (x *OperationMetadata) GetVerb() string {
	if x != nil {
		return x.Verb
	}
	return ""
}

func (x *OperationMetadata) GetStatusMessage() string {
	if x != nil {
		return x.StatusMessage
	}
	return ""
}

func (x *OperationMetadata) GetRequestedCancellation() bool {
	if x != nil {
		return x.RequestedCancellation
	}
	return false
}

func (x *OperationMetadata) GetApiVersion() string {
	if x != nil {
		return x.ApiVersion
	}
	return ""
}

// Represents the custom metadata of the RunWorkflow long-running operation.
type RunWorkflowCustomOperationMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Output only. The time the operation was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time the operation finished running.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Output only. Name of the verb executed by the operation.
	Verb string `protobuf:"bytes,3,opt,name=verb,proto3" json:"verb,omitempty"`
	// Output only. Identifies whether the user has requested cancellation
	// of the operation. Operations that have successfully been cancelled
	// have [Operation.error][] value with a
	// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
	// `Code.CANCELLED`.
	RequestedCancellation bool `protobuf:"varint,4,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
	// Output only. API version used to start the operation.
	ApiVersion string `protobuf:"bytes,5,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	// Output only. Server-defined resource path for the target of the operation.
	Target string `protobuf:"bytes,6,opt,name=target,proto3" json:"target,omitempty"`
	// Output only. ID of the pipeline run created by RunWorkflow.
	PipelineRunId string `protobuf:"bytes,7,opt,name=pipeline_run_id,json=pipelineRunId,proto3" json:"pipeline_run_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *RunWorkflowCustomOperationMetadata) Reset() {
	*x = RunWorkflowCustomOperationMetadata{}
	mi := &file_google_devtools_cloudbuild_v2_cloudbuild_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *RunWorkflowCustomOperationMetadata) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*RunWorkflowCustomOperationMetadata) ProtoMessage() {}

func (x *RunWorkflowCustomOperationMetadata) ProtoReflect() protoreflect.Message {
	mi := &file_google_devtools_cloudbuild_v2_cloudbuild_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use RunWorkflowCustomOperationMetadata.ProtoReflect.Descriptor instead.
func (*RunWorkflowCustomOperationMetadata) Descriptor() ([]byte, []int) {
	return file_google_devtools_cloudbuild_v2_cloudbuild_proto_rawDescGZIP(), []int{1}
}

func (x *RunWorkflowCustomOperationMetadata) GetCreateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *RunWorkflowCustomOperationMetadata) GetEndTime() *timestamppb.Timestamp {
	if x != nil {
		return x.EndTime
	}
	return nil
}

func (x *RunWorkflowCustomOperationMetadata) GetVerb() string {
	if x != nil {
		return x.Verb
	}
	return ""
}

func (x *RunWorkflowCustomOperationMetadata) GetRequestedCancellation() bool {
	if x != nil {
		return x.RequestedCancellation
	}
	return false
}

func (x *RunWorkflowCustomOperationMetadata) GetApiVersion() string {
	if x != nil {
		return x.ApiVersion
	}
	return ""
}

func (x *RunWorkflowCustomOperationMetadata) GetTarget() string {
	if x != nil {
		return x.Target
	}
	return ""
}

func (x *RunWorkflowCustomOperationMetadata) GetPipelineRunId() string {
	if x != nil {
		return x.PipelineRunId
	}
	return ""
}

var File_google_devtools_cloudbuild_v2_cloudbuild_proto protoreflect.FileDescriptor

const file_google_devtools_cloudbuild_v2_cloudbuild_proto_rawDesc = "" +
	"\n" +
	".google/devtools/cloudbuild/v2/cloudbuild.proto\x12\x1dgoogle.devtools.cloudbuild.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd5\x02\n" +
	"\x11OperationMetadata\x12@\n" +
	"\vcreate_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"createTime\x12:\n" +
	"\bend_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\aendTime\x12\x1b\n" +
	"\x06target\x18\x03 \x01(\tB\x03\xe0A\x03R\x06target\x12\x17\n" +
	"\x04verb\x18\x04 \x01(\tB\x03\xe0A\x03R\x04verb\x12*\n" +
	"\x0estatus_message\x18\x05 \x01(\tB\x03\xe0A\x03R\rstatusMessage\x12:\n" +
	"\x16requested_cancellation\x18\x06 \x01(\bB\x03\xe0A\x03R\x15requestedCancellation\x12$\n" +
	"\vapi_version\x18\a \x01(\tB\x03\xe0A\x03R\n" +
	"apiVersion\"\xe7\x02\n" +
	"\"RunWorkflowCustomOperationMetadata\x12@\n" +
	"\vcreate_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"createTime\x12:\n" +
	"\bend_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\aendTime\x12\x17\n" +
	"\x04verb\x18\x03 \x01(\tB\x03\xe0A\x03R\x04verb\x12:\n" +
	"\x16requested_cancellation\x18\x04 \x01(\bB\x03\xe0A\x03R\x15requestedCancellation\x12$\n" +
	"\vapi_version\x18\x05 \x01(\tB\x03\xe0A\x03R\n" +
	"apiVersion\x12\x1b\n" +
	"\x06target\x18\x06 \x01(\tB\x03\xe0A\x03R\x06target\x12+\n" +
	"\x0fpipeline_run_id\x18\a \x01(\tB\x03\xe0A\x03R\rpipelineRunIdB\xa3\x05\xeaAN\n" +
	"\x1ecompute.googleapis.com/Network\x12,projects/{project}/global/networks/{network}\xeaAY\n" +
	"!iam.googleapis.com/ServiceAccount\x124projects/{project}/serviceAccounts/{service_account}\xeaAJ\n" +
	"#secretmanager.googleapis.com/Secret\x12#projects/{project}/secrets/{secret}\xeaAd\n" +
	"*secretmanager.googleapis.com/SecretVersion\x126projects/{project}/secrets/{secret}/versions/{version}\xeaA|\n" +
	"0cloudbuild.googleapis.com/githubEnterpriseConfig\x12Hprojects/{project}/locations/{location}/githubEnterpriseConfigs/{config}\n" +
	"\x18com.google.cloudbuild.v2B\x0fCloudBuildProtoP\x01Z>cloud.google.com/go/cloudbuild/apiv2/cloudbuildpb;cloudbuildpb\xa2\x02\x03GCB\xaa\x02\x1aGoogle.Cloud.CloudBuild.V2\xca\x02\x15Google\\Cloud\\Build\\V2\xea\x02\x18Google::Cloud::Build::V2b\x06proto3"

var (
	file_google_devtools_cloudbuild_v2_cloudbuild_proto_rawDescOnce sync.Once
	file_google_devtools_cloudbuild_v2_cloudbuild_proto_rawDescData []byte
)

func file_google_devtools_cloudbuild_v2_cloudbuild_proto_rawDescGZIP() []byte {
	file_google_devtools_cloudbuild_v2_cloudbuild_proto_rawDescOnce.Do(func() {
		file_google_devtools_cloudbuild_v2_cloudbuild_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_devtools_cloudbuild_v2_cloudbuild_proto_rawDesc), len(file_google_devtools_cloudbuild_v2_cloudbuild_proto_rawDesc)))
	})
	return file_google_devtools_cloudbuild_v2_cloudbuild_proto_rawDescData
}

var file_google_devtools_cloudbuild_v2_cloudbuild_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_google_devtools_cloudbuild_v2_cloudbuild_proto_goTypes = []any{
	(*OperationMetadata)(nil),                  // 0: google.devtools.cloudbuild.v2.OperationMetadata
	(*RunWorkflowCustomOperationMetadata)(nil), // 1: google.devtools.cloudbuild.v2.RunWorkflowCustomOperationMetadata
	(*timestamppb.Timestamp)(nil),              // 2: google.protobuf.Timestamp
}
var file_google_devtools_cloudbuild_v2_cloudbuild_proto_depIdxs = []int32{
	2, // 0: google.devtools.cloudbuild.v2.OperationMetadata.create_time:type_name -> google.protobuf.Timestamp
	2, // 1: google.devtools.cloudbuild.v2.OperationMetadata.end_time:type_name -> google.protobuf.Timestamp
	2, // 2: google.devtools.cloudbuild.v2.RunWorkflowCustomOperationMetadata.create_time:type_name -> google.protobuf.Timestamp
	2, // 3: google.devtools.cloudbuild.v2.RunWorkflowCustomOperationMetadata.end_time:type_name -> google.protobuf.Timestamp
	4, // [4:4] is the sub-list for method output_type
	4, // [4:4] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() { file_google_devtools_cloudbuild_v2_cloudbuild_proto_init() }
func file_google_devtools_cloudbuild_v2_cloudbuild_proto_init() {
	if File_google_devtools_cloudbuild_v2_cloudbuild_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_devtools_cloudbuild_v2_cloudbuild_proto_rawDesc), len(file_google_devtools_cloudbuild_v2_cloudbuild_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_devtools_cloudbuild_v2_cloudbuild_proto_goTypes,
		DependencyIndexes: file_google_devtools_cloudbuild_v2_cloudbuild_proto_depIdxs,
		MessageInfos:      file_google_devtools_cloudbuild_v2_cloudbuild_proto_msgTypes,
	}.Build()
	File_google_devtools_cloudbuild_v2_cloudbuild_proto = out.File
	file_google_devtools_cloudbuild_v2_cloudbuild_proto_goTypes = nil
	file_google_devtools_cloudbuild_v2_cloudbuild_proto_depIdxs = nil
}
