// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.19.6 // source: service_api_access_token.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) 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) ) // 获取AccessToken type GetAPIAccessTokenRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` AccessKeyId string `protobuf:"bytes,2,opt,name=accessKeyId,proto3" json:"accessKeyId,omitempty"` AccessKey string `protobuf:"bytes,3,opt,name=accessKey,proto3" json:"accessKey,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetAPIAccessTokenRequest) Reset() { *x = GetAPIAccessTokenRequest{} mi := &file_service_api_access_token_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetAPIAccessTokenRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetAPIAccessTokenRequest) ProtoMessage() {} func (x *GetAPIAccessTokenRequest) ProtoReflect() protoreflect.Message { mi := &file_service_api_access_token_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 GetAPIAccessTokenRequest.ProtoReflect.Descriptor instead. func (*GetAPIAccessTokenRequest) Descriptor() ([]byte, []int) { return file_service_api_access_token_proto_rawDescGZIP(), []int{0} } func (x *GetAPIAccessTokenRequest) GetType() string { if x != nil { return x.Type } return "" } func (x *GetAPIAccessTokenRequest) GetAccessKeyId() string { if x != nil { return x.AccessKeyId } return "" } func (x *GetAPIAccessTokenRequest) GetAccessKey() string { if x != nil { return x.AccessKey } return "" } type GetAPIAccessTokenResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` ExpiresAt int64 `protobuf:"varint,2,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetAPIAccessTokenResponse) Reset() { *x = GetAPIAccessTokenResponse{} mi := &file_service_api_access_token_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetAPIAccessTokenResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetAPIAccessTokenResponse) ProtoMessage() {} func (x *GetAPIAccessTokenResponse) ProtoReflect() protoreflect.Message { mi := &file_service_api_access_token_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 GetAPIAccessTokenResponse.ProtoReflect.Descriptor instead. func (*GetAPIAccessTokenResponse) Descriptor() ([]byte, []int) { return file_service_api_access_token_proto_rawDescGZIP(), []int{1} } func (x *GetAPIAccessTokenResponse) GetToken() string { if x != nil { return x.Token } return "" } func (x *GetAPIAccessTokenResponse) GetExpiresAt() int64 { if x != nil { return x.ExpiresAt } return 0 } var File_service_api_access_token_proto protoreflect.FileDescriptor const file_service_api_access_token_proto_rawDesc = "" + "\n" + "\x1eservice_api_access_token.proto\x12\x02pb\"n\n" + "\x18GetAPIAccessTokenRequest\x12\x12\n" + "\x04type\x18\x01 \x01(\tR\x04type\x12 \n" + "\vaccessKeyId\x18\x02 \x01(\tR\vaccessKeyId\x12\x1c\n" + "\taccessKey\x18\x03 \x01(\tR\taccessKey\"O\n" + "\x19GetAPIAccessTokenResponse\x12\x14\n" + "\x05token\x18\x01 \x01(\tR\x05token\x12\x1c\n" + "\texpiresAt\x18\x02 \x01(\x03R\texpiresAt2i\n" + "\x15APIAccessTokenService\x12P\n" + "\x11GetAPIAccessToken\x12\x1c.pb.GetAPIAccessTokenRequest\x1a\x1d.pb.GetAPIAccessTokenResponseB\x06Z\x04./pbb\x06proto3" var ( file_service_api_access_token_proto_rawDescOnce sync.Once file_service_api_access_token_proto_rawDescData []byte ) func file_service_api_access_token_proto_rawDescGZIP() []byte { file_service_api_access_token_proto_rawDescOnce.Do(func() { file_service_api_access_token_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_api_access_token_proto_rawDesc), len(file_service_api_access_token_proto_rawDesc))) }) return file_service_api_access_token_proto_rawDescData } var file_service_api_access_token_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_service_api_access_token_proto_goTypes = []any{ (*GetAPIAccessTokenRequest)(nil), // 0: pb.GetAPIAccessTokenRequest (*GetAPIAccessTokenResponse)(nil), // 1: pb.GetAPIAccessTokenResponse } var file_service_api_access_token_proto_depIdxs = []int32{ 0, // 0: pb.APIAccessTokenService.GetAPIAccessToken:input_type -> pb.GetAPIAccessTokenRequest 1, // 1: pb.APIAccessTokenService.GetAPIAccessToken:output_type -> pb.GetAPIAccessTokenResponse 1, // [1:2] is the sub-list for method output_type 0, // [0:1] 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_service_api_access_token_proto_init() } func file_service_api_access_token_proto_init() { if File_service_api_access_token_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_api_access_token_proto_rawDesc), len(file_service_api_access_token_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 1, }, GoTypes: file_service_api_access_token_proto_goTypes, DependencyIndexes: file_service_api_access_token_proto_depIdxs, MessageInfos: file_service_api_access_token_proto_msgTypes, }.Build() File_service_api_access_token_proto = out.File file_service_api_access_token_proto_goTypes = nil file_service_api_access_token_proto_depIdxs = nil }