// 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/v1/tensorboard_time_series.proto

package aiplatformpb

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)
)

// An enum representing the value type of a TensorboardTimeSeries.
type TensorboardTimeSeries_ValueType int32

const (
	// The value type is unspecified.
	TensorboardTimeSeries_VALUE_TYPE_UNSPECIFIED TensorboardTimeSeries_ValueType = 0
	// Used for TensorboardTimeSeries that is a list of scalars.
	// E.g. accuracy of a model over epochs/time.
	TensorboardTimeSeries_SCALAR TensorboardTimeSeries_ValueType = 1
	// Used for TensorboardTimeSeries that is a list of tensors.
	// E.g. histograms of weights of layer in a model over epoch/time.
	TensorboardTimeSeries_TENSOR TensorboardTimeSeries_ValueType = 2
	// Used for TensorboardTimeSeries that is a list of blob sequences.
	// E.g. set of sample images with labels over epochs/time.
	TensorboardTimeSeries_BLOB_SEQUENCE TensorboardTimeSeries_ValueType = 3
)

// Enum value maps for TensorboardTimeSeries_ValueType.
var (
	TensorboardTimeSeries_ValueType_name = map[int32]string{
		0: "VALUE_TYPE_UNSPECIFIED",
		1: "SCALAR",
		2: "TENSOR",
		3: "BLOB_SEQUENCE",
	}
	TensorboardTimeSeries_ValueType_value = map[string]int32{
		"VALUE_TYPE_UNSPECIFIED": 0,
		"SCALAR":                 1,
		"TENSOR":                 2,
		"BLOB_SEQUENCE":          3,
	}
)

func (x TensorboardTimeSeries_ValueType) Enum() *TensorboardTimeSeries_ValueType {
	p := new(TensorboardTimeSeries_ValueType)
	*p = x
	return p
}

func (x TensorboardTimeSeries_ValueType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (TensorboardTimeSeries_ValueType) Descriptor() protoreflect.EnumDescriptor {
	return file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_enumTypes[0].Descriptor()
}

func (TensorboardTimeSeries_ValueType) Type() protoreflect.EnumType {
	return &file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_enumTypes[0]
}

func (x TensorboardTimeSeries_ValueType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use TensorboardTimeSeries_ValueType.Descriptor instead.
func (TensorboardTimeSeries_ValueType) EnumDescriptor() ([]byte, []int) {
	return file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_rawDescGZIP(), []int{0, 0}
}

// TensorboardTimeSeries maps to times series produced in training runs
type TensorboardTimeSeries struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Output only. Name of the TensorboardTimeSeries.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. User provided name of this TensorboardTimeSeries.
	// This value should be unique among all TensorboardTimeSeries resources
	// belonging to the same TensorboardRun resource (parent resource).
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Description of this TensorboardTimeSeries.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Required. Immutable. Type of TensorboardTimeSeries value.
	ValueType TensorboardTimeSeries_ValueType `protobuf:"varint,4,opt,name=value_type,json=valueType,proto3,enum=google.cloud.aiplatform.v1.TensorboardTimeSeries_ValueType" json:"value_type,omitempty"`
	// Output only. Timestamp when this TensorboardTimeSeries was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. Timestamp when this TensorboardTimeSeries was last updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Used to perform a consistent read-modify-write updates. If not set, a blind
	// "overwrite" update happens.
	Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"`
	// Immutable. Name of the plugin this time series pertain to. Such as Scalar,
	// Tensor, Blob
	PluginName string `protobuf:"bytes,8,opt,name=plugin_name,json=pluginName,proto3" json:"plugin_name,omitempty"`
	// Data of the current plugin, with the size limited to 65KB.
	PluginData []byte `protobuf:"bytes,9,opt,name=plugin_data,json=pluginData,proto3" json:"plugin_data,omitempty"`
	// Output only. Scalar, Tensor, or Blob metadata for this
	// TensorboardTimeSeries.
	Metadata      *TensorboardTimeSeries_Metadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*TensorboardTimeSeries) ProtoMessage() {}

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

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

func (x *TensorboardTimeSeries) GetDisplayName() string {
	if x != nil {
		return x.DisplayName
	}
	return ""
}

func (x *TensorboardTimeSeries) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *TensorboardTimeSeries) GetValueType() TensorboardTimeSeries_ValueType {
	if x != nil {
		return x.ValueType
	}
	return TensorboardTimeSeries_VALUE_TYPE_UNSPECIFIED
}

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

func (x *TensorboardTimeSeries) GetUpdateTime() *timestamppb.Timestamp {
	if x != nil {
		return x.UpdateTime
	}
	return nil
}

func (x *TensorboardTimeSeries) GetEtag() string {
	if x != nil {
		return x.Etag
	}
	return ""
}

func (x *TensorboardTimeSeries) GetPluginName() string {
	if x != nil {
		return x.PluginName
	}
	return ""
}

func (x *TensorboardTimeSeries) GetPluginData() []byte {
	if x != nil {
		return x.PluginData
	}
	return nil
}

func (x *TensorboardTimeSeries) GetMetadata() *TensorboardTimeSeries_Metadata {
	if x != nil {
		return x.Metadata
	}
	return nil
}

// Describes metadata for a TensorboardTimeSeries.
type TensorboardTimeSeries_Metadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Output only. Max step index of all data points within a
	// TensorboardTimeSeries.
	MaxStep int64 `protobuf:"varint,1,opt,name=max_step,json=maxStep,proto3" json:"max_step,omitempty"`
	// Output only. Max wall clock timestamp of all data points within a
	// TensorboardTimeSeries.
	MaxWallTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=max_wall_time,json=maxWallTime,proto3" json:"max_wall_time,omitempty"`
	// Output only. The largest blob sequence length (number of blobs) of all
	// data points in this time series, if its ValueType is BLOB_SEQUENCE.
	MaxBlobSequenceLength int64 `protobuf:"varint,3,opt,name=max_blob_sequence_length,json=maxBlobSequenceLength,proto3" json:"max_blob_sequence_length,omitempty"`
	unknownFields         protoimpl.UnknownFields
	sizeCache             protoimpl.SizeCache
}

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

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

func (*TensorboardTimeSeries_Metadata) ProtoMessage() {}

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

func (x *TensorboardTimeSeries_Metadata) GetMaxStep() int64 {
	if x != nil {
		return x.MaxStep
	}
	return 0
}

func (x *TensorboardTimeSeries_Metadata) GetMaxWallTime() *timestamppb.Timestamp {
	if x != nil {
		return x.MaxWallTime
	}
	return nil
}

func (x *TensorboardTimeSeries_Metadata) GetMaxBlobSequenceLength() int64 {
	if x != nil {
		return x.MaxBlobSequenceLength
	}
	return 0
}

var File_google_cloud_aiplatform_v1_tensorboard_time_series_proto protoreflect.FileDescriptor

const file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_rawDesc = "" +
	"\n" +
	"8google/cloud/aiplatform/v1/tensorboard_time_series.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd7\a\n" +
	"\x15TensorboardTimeSeries\x12\x17\n" +
	"\x04name\x18\x01 \x01(\tB\x03\xe0A\x03R\x04name\x12&\n" +
	"\fdisplay_name\x18\x02 \x01(\tB\x03\xe0A\x02R\vdisplayName\x12 \n" +
	"\vdescription\x18\x03 \x01(\tR\vdescription\x12b\n" +
	"\n" +
	"value_type\x18\x04 \x01(\x0e2;.google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueTypeB\x06\xe0A\x02\xe0A\x05R\tvalueType\x12@\n" +
	"\vcreate_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"createTime\x12@\n" +
	"\vupdate_time\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" +
	"updateTime\x12\x12\n" +
	"\x04etag\x18\a \x01(\tR\x04etag\x12$\n" +
	"\vplugin_name\x18\b \x01(\tB\x03\xe0A\x05R\n" +
	"pluginName\x12\x1f\n" +
	"\vplugin_data\x18\t \x01(\fR\n" +
	"pluginData\x12[\n" +
	"\bmetadata\x18\n" +
	" \x01(\v2:.google.cloud.aiplatform.v1.TensorboardTimeSeries.MetadataB\x03\xe0A\x03R\bmetadata\x1a\xad\x01\n" +
	"\bMetadata\x12\x1e\n" +
	"\bmax_step\x18\x01 \x01(\x03B\x03\xe0A\x03R\amaxStep\x12C\n" +
	"\rmax_wall_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\vmaxWallTime\x12<\n" +
	"\x18max_blob_sequence_length\x18\x03 \x01(\x03B\x03\xe0A\x03R\x15maxBlobSequenceLength\"R\n" +
	"\tValueType\x12\x1a\n" +
	"\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\n" +
	"\n" +
	"\x06SCALAR\x10\x01\x12\n" +
	"\n" +
	"\x06TENSOR\x10\x02\x12\x11\n" +
	"\rBLOB_SEQUENCE\x10\x03:\xb6\x01\xeaA\xb2\x01\n" +
	"/aiplatform.googleapis.com/TensorboardTimeSeries\x12\x7fprojects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}/timeSeries/{time_series}B\xd8\x01\n" +
	"\x1ecom.google.cloud.aiplatform.v1B\x1aTensorboardTimeSeriesProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"

var (
	file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_rawDescOnce sync.Once
	file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_rawDescData []byte
)

func file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_rawDescGZIP() []byte {
	file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_rawDescOnce.Do(func() {
		file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_rawDesc), len(file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_rawDesc)))
	})
	return file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_rawDescData
}

var file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_goTypes = []any{
	(TensorboardTimeSeries_ValueType)(0),   // 0: google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType
	(*TensorboardTimeSeries)(nil),          // 1: google.cloud.aiplatform.v1.TensorboardTimeSeries
	(*TensorboardTimeSeries_Metadata)(nil), // 2: google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata
	(*timestamppb.Timestamp)(nil),          // 3: google.protobuf.Timestamp
}
var file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_depIdxs = []int32{
	0, // 0: google.cloud.aiplatform.v1.TensorboardTimeSeries.value_type:type_name -> google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType
	3, // 1: google.cloud.aiplatform.v1.TensorboardTimeSeries.create_time:type_name -> google.protobuf.Timestamp
	3, // 2: google.cloud.aiplatform.v1.TensorboardTimeSeries.update_time:type_name -> google.protobuf.Timestamp
	2, // 3: google.cloud.aiplatform.v1.TensorboardTimeSeries.metadata:type_name -> google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata
	3, // 4: google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata.max_wall_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_v1_tensorboard_time_series_proto_init() }
func file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_init() {
	if File_google_cloud_aiplatform_v1_tensorboard_time_series_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_v1_tensorboard_time_series_proto_rawDesc), len(file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_goTypes,
		DependencyIndexes: file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_depIdxs,
		EnumInfos:         file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_enumTypes,
		MessageInfos:      file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_msgTypes,
	}.Build()
	File_google_cloud_aiplatform_v1_tensorboard_time_series_proto = out.File
	file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_goTypes = nil
	file_google_cloud_aiplatform_v1_tensorboard_time_series_proto_depIdxs = nil
}
