// 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/cloud/aiplatform/v1beta1/feature_view_sync.proto

package aiplatformpb

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

	_ "google.golang.org/genproto/googleapis/api/annotations"
	status "google.golang.org/genproto/googleapis/rpc/status"
	interval "google.golang.org/genproto/googleapis/type/interval"
	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)
)

// FeatureViewSync is a representation of sync operation which copies data from
// data source to Feature View in Online Store.
type FeatureViewSync struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Identifier. Name of the FeatureViewSync. Format:
	// `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. Time when this FeatureViewSync is created. Creation of a
	// FeatureViewSync means that the job is pending / waiting for sufficient
	// resources but may not have started the actual data transfer yet.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. Time when this FeatureViewSync is finished.
	RunTime *interval.Interval `protobuf:"bytes,5,opt,name=run_time,json=runTime,proto3" json:"run_time,omitempty"`
	// Output only. Final status of the FeatureViewSync.
	FinalStatus *status.Status `protobuf:"bytes,4,opt,name=final_status,json=finalStatus,proto3" json:"final_status,omitempty"`
	// Output only. Summary of the sync job.
	SyncSummary *FeatureViewSync_SyncSummary `protobuf:"bytes,6,opt,name=sync_summary,json=syncSummary,proto3" json:"sync_summary,omitempty"`
	// Output only. Reserved for future use.
	SatisfiesPzs bool `protobuf:"varint,7,opt,name=satisfies_pzs,json=satisfiesPzs,proto3" json:"satisfies_pzs,omitempty"`
	// Output only. Reserved for future use.
	SatisfiesPzi  bool `protobuf:"varint,8,opt,name=satisfies_pzi,json=satisfiesPzi,proto3" json:"satisfies_pzi,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*FeatureViewSync) ProtoMessage() {}

func (x *FeatureViewSync) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_aiplatform_v1beta1_feature_view_sync_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 FeatureViewSync.ProtoReflect.Descriptor instead.
func (*FeatureViewSync) Descriptor() ([]byte, []int) {
	return file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_rawDescGZIP(), []int{0}
}

func (x *FeatureViewSync) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

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

func (x *FeatureViewSync) GetRunTime() *interval.Interval {
	if x != nil {
		return x.RunTime
	}
	return nil
}

func (x *FeatureViewSync) GetFinalStatus() *status.Status {
	if x != nil {
		return x.FinalStatus
	}
	return nil
}

func (x *FeatureViewSync) GetSyncSummary() *FeatureViewSync_SyncSummary {
	if x != nil {
		return x.SyncSummary
	}
	return nil
}

func (x *FeatureViewSync) GetSatisfiesPzs() bool {
	if x != nil {
		return x.SatisfiesPzs
	}
	return false
}

func (x *FeatureViewSync) GetSatisfiesPzi() bool {
	if x != nil {
		return x.SatisfiesPzi
	}
	return false
}

// Summary from the Sync job. For continuous syncs, the summary is updated
// periodically. For batch syncs, it gets updated on completion of the sync.
type FeatureViewSync_SyncSummary struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Output only. Total number of rows synced.
	RowSynced int64 `protobuf:"varint,1,opt,name=row_synced,json=rowSynced,proto3" json:"row_synced,omitempty"`
	// Output only. BigQuery slot milliseconds consumed for the sync job.
	TotalSlot int64 `protobuf:"varint,2,opt,name=total_slot,json=totalSlot,proto3" json:"total_slot,omitempty"`
	// Lower bound of the system time watermark for the sync job. This is only
	// set for continuously syncing feature views.
	SystemWatermarkTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=system_watermark_time,json=systemWatermarkTime,proto3" json:"system_watermark_time,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

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

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

func (*FeatureViewSync_SyncSummary) ProtoMessage() {}

func (x *FeatureViewSync_SyncSummary) ProtoReflect() protoreflect.Message {
	mi := &file_google_cloud_aiplatform_v1beta1_feature_view_sync_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 FeatureViewSync_SyncSummary.ProtoReflect.Descriptor instead.
func (*FeatureViewSync_SyncSummary) Descriptor() ([]byte, []int) {
	return file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_rawDescGZIP(), []int{0, 0}
}

func (x *FeatureViewSync_SyncSummary) GetRowSynced() int64 {
	if x != nil {
		return x.RowSynced
	}
	return 0
}

func (x *FeatureViewSync_SyncSummary) GetTotalSlot() int64 {
	if x != nil {
		return x.TotalSlot
	}
	return 0
}

func (x *FeatureViewSync_SyncSummary) GetSystemWatermarkTime() *timestamppb.Timestamp {
	if x != nil {
		return x.SystemWatermarkTime
	}
	return nil
}

var File_google_cloud_aiplatform_v1beta1_feature_view_sync_proto protoreflect.FileDescriptor

const file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_rawDesc = "" +
	"\n" +
	"7google/cloud/aiplatform/v1beta1/feature_view_sync.proto\x12\x1fgoogle.cloud.aiplatform.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x1agoogle/type/interval.proto\"\x87\x06\n" +
	"\x0fFeatureViewSync\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\bR\x04name\x12@\n" +
	"\vcreate_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"createTime\x125\n" +
	"\brun_time\x18\x05 \x01(\v2\x15.google.type.IntervalB\x03\xe0A\x03R\arunTime\x12:\n" +
	"\ffinal_status\x18\x04 \x01(\v2\x12.google.rpc.StatusB\x03\xe0A\x03R\vfinalStatus\x12d\n" +
	"\fsync_summary\x18\x06 \x01(\v2<.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummaryB\x03\xe0A\x03R\vsyncSummary\x12(\n" +
	"\rsatisfies_pzs\x18\a \x01(\bB\x03\xe0A\x03R\fsatisfiesPzs\x12(\n" +
	"\rsatisfies_pzi\x18\b \x01(\bB\x03\xe0A\x03R\fsatisfiesPzi\x1a\xa5\x01\n" +
	"\vSyncSummary\x12\"\n" +
	"\n" +
	"row_synced\x18\x01 \x01(\x03B\x03\xe0A\x03R\trowSynced\x12\"\n" +
	"\n" +
	"total_slot\x18\x02 \x01(\x03B\x03\xe0A\x03R\ttotalSlot\x12N\n" +
	"\x15system_watermark_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\x13systemWatermarkTime:\xc3\x01\xeaA\xbf\x01\n" +
	")aiplatform.googleapis.com/FeatureViewSync\x12\x91\x01projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_syncB\xeb\x01\n" +
	"#com.google.cloud.aiplatform.v1beta1B\x14FeatureViewSyncProtoP\x01ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb\xaa\x02\x1fGoogle.Cloud.AIPlatform.V1Beta1\xca\x02\x1fGoogle\\Cloud\\AIPlatform\\V1beta1\xea\x02\"Google::Cloud::Aiplatform::V1beta1b\x06proto3"

var (
	file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_rawDescOnce sync.Once
	file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_rawDescData []byte
)

func file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_rawDescGZIP() []byte {
	file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_rawDescOnce.Do(func() {
		file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_rawDesc), len(file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_rawDesc)))
	})
	return file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_rawDescData
}

var file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_goTypes = []any{
	(*FeatureViewSync)(nil),             // 0: google.cloud.aiplatform.v1beta1.FeatureViewSync
	(*FeatureViewSync_SyncSummary)(nil), // 1: google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary
	(*timestamppb.Timestamp)(nil),       // 2: google.protobuf.Timestamp
	(*interval.Interval)(nil),           // 3: google.type.Interval
	(*status.Status)(nil),               // 4: google.rpc.Status
}
var file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_depIdxs = []int32{
	2, // 0: google.cloud.aiplatform.v1beta1.FeatureViewSync.create_time:type_name -> google.protobuf.Timestamp
	3, // 1: google.cloud.aiplatform.v1beta1.FeatureViewSync.run_time:type_name -> google.type.Interval
	4, // 2: google.cloud.aiplatform.v1beta1.FeatureViewSync.final_status:type_name -> google.rpc.Status
	1, // 3: google.cloud.aiplatform.v1beta1.FeatureViewSync.sync_summary:type_name -> google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary
	2, // 4: google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.system_watermark_time:type_name -> google.protobuf.Timestamp
	5, // [5:5] is the sub-list for method output_type
	5, // [5:5] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() { file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_init() }
func file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_init() {
	if File_google_cloud_aiplatform_v1beta1_feature_view_sync_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_rawDesc), len(file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_goTypes,
		DependencyIndexes: file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_depIdxs,
		MessageInfos:      file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_msgTypes,
	}.Build()
	File_google_cloud_aiplatform_v1beta1_feature_view_sync_proto = out.File
	file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_goTypes = nil
	file_google_cloud_aiplatform_v1beta1_feature_view_sync_proto_depIdxs = nil
}
