// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        (unknown)
// source: agent/v1/webapp.proto

package agentv1

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

	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)

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

// WebAppConfig is the application configuration.
type WebAppConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// runner is the address of the runner that the application should use.
	Runner string `protobuf:"bytes,1,opt,name=runner,proto3" json:"runner,omitempty"`
	// Reconnect is a flag to enable automatic reconnecting to the runner.
	Reconnect *bool `protobuf:"varint,2,opt,name=reconnect,proto3,oneof" json:"reconnect,omitempty"`
	// InvertedOrder is a flag to invert the order of the blocks.
	InvertedOrder *bool `protobuf:"varint,3,opt,name=inverted_order,json=invertedOrder,proto3,oneof" json:"inverted_order,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*WebAppConfig) ProtoMessage() {}

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

func (x *WebAppConfig) GetRunner() string {
	if x != nil {
		return x.Runner
	}
	return ""
}

func (x *WebAppConfig) GetReconnect() bool {
	if x != nil && x.Reconnect != nil {
		return *x.Reconnect
	}
	return false
}

func (x *WebAppConfig) GetInvertedOrder() bool {
	if x != nil && x.InvertedOrder != nil {
		return *x.InvertedOrder
	}
	return false
}

var File_agent_v1_webapp_proto protoreflect.FileDescriptor

const file_agent_v1_webapp_proto_rawDesc = "" +
	"\n" +
	"\x15agent/v1/webapp.proto\x12\bagent.v1\"\x96\x01\n" +
	"\fWebAppConfig\x12\x16\n" +
	"\x06runner\x18\x01 \x01(\tR\x06runner\x12!\n" +
	"\treconnect\x18\x02 \x01(\bH\x00R\treconnect\x88\x01\x01\x12*\n" +
	"\x0einverted_order\x18\x03 \x01(\bH\x01R\rinvertedOrder\x88\x01\x01B\f\n" +
	"\n" +
	"_reconnectB\x11\n" +
	"\x0f_inverted_orderB@Z>github.com/runmedev/runme/v3/api/gen/proto/go/agent/v1;agentv1b\x06proto3"

var (
	file_agent_v1_webapp_proto_rawDescOnce sync.Once
	file_agent_v1_webapp_proto_rawDescData []byte
)

func file_agent_v1_webapp_proto_rawDescGZIP() []byte {
	file_agent_v1_webapp_proto_rawDescOnce.Do(func() {
		file_agent_v1_webapp_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_agent_v1_webapp_proto_rawDesc), len(file_agent_v1_webapp_proto_rawDesc)))
	})
	return file_agent_v1_webapp_proto_rawDescData
}

var file_agent_v1_webapp_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_agent_v1_webapp_proto_goTypes = []any{
	(*WebAppConfig)(nil), // 0: agent.v1.WebAppConfig
}
var file_agent_v1_webapp_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_agent_v1_webapp_proto_init() }
func file_agent_v1_webapp_proto_init() {
	if File_agent_v1_webapp_proto != nil {
		return
	}
	file_agent_v1_webapp_proto_msgTypes[0].OneofWrappers = []any{}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_agent_v1_webapp_proto_rawDesc), len(file_agent_v1_webapp_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_agent_v1_webapp_proto_goTypes,
		DependencyIndexes: file_agent_v1_webapp_proto_depIdxs,
		MessageInfos:      file_agent_v1_webapp_proto_msgTypes,
	}.Build()
	File_agent_v1_webapp_proto = out.File
	file_agent_v1_webapp_proto_goTypes = nil
	file_agent_v1_webapp_proto_depIdxs = nil
}
