diff --git a/buf.gen.yaml b/buf.gen.yaml index 2385f3d..c4a9d1a 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -4,7 +4,7 @@ plugins: out: proto opt: - paths=source_relative - - default_api_level=API_HYBRID + - default_api_level=API_OPAQUE - remote: buf.build/connectrpc/go:v1.17.0 out: proto opt: paths=source_relative diff --git a/proto/frontend/v1/service.pb.go b/proto/frontend/v1/service.pb.go index 94f1877..d294c1d 100644 --- a/proto/frontend/v1/service.pb.go +++ b/proto/frontend/v1/service.pb.go @@ -4,8 +4,6 @@ // protoc (unknown) // source: frontend/v1/service.proto -//go:build !protoopaque - package v1 import ( @@ -22,11 +20,11 @@ const ( ) type PutRequest struct { - state protoimpl.MessageState `protogen:"hybrid.v1"` - Key int64 `protobuf:"varint,1,opt,name=key" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Key int64 `protobuf:"varint,1,opt,name=key" json:"key,omitempty"` + xxx_hidden_Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PutRequest) Reset() { @@ -56,24 +54,24 @@ func (x *PutRequest) ProtoReflect() protoreflect.Message { func (x *PutRequest) GetKey() int64 { if x != nil { - return x.Key + return x.xxx_hidden_Key } return 0 } func (x *PutRequest) GetValue() string { if x != nil { - return x.Value + return x.xxx_hidden_Value } return "" } func (x *PutRequest) SetKey(v int64) { - x.Key = v + x.xxx_hidden_Key = v } func (x *PutRequest) SetValue(v string) { - x.Value = v + x.xxx_hidden_Value = v } type PutRequest_builder struct { @@ -87,13 +85,13 @@ func (b0 PutRequest_builder) Build() *PutRequest { m0 := &PutRequest{} b, x := &b0, m0 _, _ = b, x - x.Key = b.Key - x.Value = b.Value + x.xxx_hidden_Key = b.Key + x.xxx_hidden_Value = b.Value return m0 } type PutResponse struct { - state protoimpl.MessageState `protogen:"hybrid.v1"` + state protoimpl.MessageState `protogen:"opaque.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -136,10 +134,10 @@ func (b0 PutResponse_builder) Build() *PutResponse { } type GetRequest struct { - state protoimpl.MessageState `protogen:"hybrid.v1"` - Key int64 `protobuf:"varint,1,opt,name=key" json:"key,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Key int64 `protobuf:"varint,1,opt,name=key" json:"key,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetRequest) Reset() { @@ -169,13 +167,13 @@ func (x *GetRequest) ProtoReflect() protoreflect.Message { func (x *GetRequest) GetKey() int64 { if x != nil { - return x.Key + return x.xxx_hidden_Key } return 0 } func (x *GetRequest) SetKey(v int64) { - x.Key = v + x.xxx_hidden_Key = v } type GetRequest_builder struct { @@ -188,15 +186,15 @@ func (b0 GetRequest_builder) Build() *GetRequest { m0 := &GetRequest{} b, x := &b0, m0 _, _ = b, x - x.Key = b.Key + x.xxx_hidden_Key = b.Key return m0 } type GetResponse struct { - state protoimpl.MessageState `protogen:"hybrid.v1"` - Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetResponse) Reset() { @@ -226,13 +224,13 @@ func (x *GetResponse) ProtoReflect() protoreflect.Message { func (x *GetResponse) GetValue() string { if x != nil { - return x.Value + return x.xxx_hidden_Value } return "" } func (x *GetResponse) SetValue(v string) { - x.Value = v + x.xxx_hidden_Value = v } type GetResponse_builder struct { @@ -245,7 +243,7 @@ func (b0 GetResponse_builder) Build() *GetResponse { m0 := &GetResponse{} b, x := &b0, m0 _, _ = b, x - x.Value = b.Value + x.xxx_hidden_Value = b.Value return m0 }