腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
3
回答
protobuf
时间
戳
:
使用
Java8
time.Instant
、
我
使用
的是
protobuf
,我的一条消息
使用
的是google.
protobuf
.Timestamp类型。在生成Java代码时,生成的
protobuf
类
使用
com.google.
protobuf
.Timestamp。 有没有办法告诉
protobuf
改用新的
Java8
类型(例如
time.Instant
)?我不想让类型转换弄乱我的代码,无论我在哪里
使用
protobuf
。理想情况下,它是在
浏览 5
提问于2018-01-19
得票数 8
回答已采纳
4
回答
用协议缓冲区序列化日期
、
因此,经过一些搜索,建议
使用
一个int64时代。 这一切都很好,但是当与我的模型交互时,我想要与实际的LocalDate对象交互,那么处理这个问题的策略是什么呢?
浏览 3
提问于2015-03-30
得票数 10
回答已采纳
2
回答
从.Net System.DateTime生成Google
Protobuf
TimeStamp
、
、
如何在形成
Protobuf
消息时将.Net System.DateTime转换为google
protobuf
TimeStamp?
浏览 43
提问于2019-12-12
得票数 5
回答已采纳
1
回答
使用
google.
protobuf
.Timestamp解析Go中带有时区偏移量的
时间
戳
、
、
我正在创建一个Go应用程序,它将
使用
GRPC和
protobuf
。对于google.
protobuf
.Timestamp类型的有效输入,我感到困惑。对于带有时区偏移的日期
时间
戳
,我希望
使用
以下格式。TSReply {} 问题是,当我向包含日期
时间
戳
的GRPC服务器发送消息时。google.
protobuf
.Timestamp是否接受带有+-偏移量的日期
时间
戳
浏览 0
提问于2019-08-03
得票数 2
回答已采纳
4
回答
在
protobuf
for GRPC的proto文件中导入
时间
戳
、
我正在尝试
使用
gRPC,并
使用
交换消息格式作为协议。我想在我的message.But中添加
时间
戳
字段,我不知道在proto文件中添加import语句的正确方法。我
使用
Golang,所以我需要一个输出作为.pb.go
浏览 2
提问于2017-06-10
得票数 11
1
回答
如何为Hibernate Envers修订信息保存UTC (而不是本地)
时间
戳
?
、
、
、
使用
Hibernate/Envers,如何: 获取
时间
戳
作为LocalDateTime (
Java8
)?
浏览 1
提问于2016-06-10
得票数 1
回答已采纳
1
回答
如何与google.
protobuf
.timestamp和cassandra合作
、
、
我
使用
"google/
protobuf
/timestamp.proto“来定义golang结构中的
时间
戳
类型: google.
protobuf
.Timestamp updated_at = 13; google.
浏览 1
提问于2018-06-04
得票数 2
回答已采纳
2
回答
ProtoBuf
将JSON解编组为
时间
戳
、
试图看看这样的东西是否存在: Timestamp date = 2 (layout="2018-03-07T01:00:00.000Z");当我将解析错误解编组到GRPC对象时,会得到一个解析错误。
浏览 0
提问于2018-06-22
得票数 1
回答已采纳
2
回答
如何在Golang
protobuf
v3结构中获取time.Time?
、
、
、
我现在在
protobuf
消息文件中
使用
谷歌
时间
包github.com/golang/
protobuf
/ptypes/timestamp。google.
protobuf
.Timestamp UpdateTime = 9; 但是UpdateTime属性在protoc编译后变成了golang结构中的指针*timestamp.Timestamp,它不是一个time.Time,我不能将这些属性保存到Mysql
时间
戳
列中。
浏览 0
提问于2018-10-14
得票数 20
1
回答
如何将Firestore
时间
戳
转换为Java LocalDate?
、
我正在从firestore中检索
时间
戳
,但我希望能够以以下格式显示它:June 25, 2021 有没有办法在java语言中把
时间
戳
转换成LocalDate变量,这样我就可以
使用
下面的代码:date.format
浏览 41
提问于2021-06-26
得票数 1
1
回答
无法将SystemTime转换为Prost0.10/
Protobuf
时间
戳
类型
、
、
就在一两个月前,我的团队
使用
了包含
时间
戳
的
protobuf
定义进行构建。我们
使用
众所周知的类型用tonic_build编译它们。timestamp.into()), ^^^^ the trait `From<SystemTime>` is not implemented for `
protobuf
::Timestamp>` is not implemented for `
protobuf
::Times
浏览 16
提问于2022-04-15
得票数 0
回答已采纳
2
回答
如何从C++中的
protobuf
时间
戳
重建日期
、
、
、
我试图从一个
protobuf
时间
戳
中推断出一个表示当前日期的字符串。我在文档中看到应该有一个名为DateTime的类,但我在任何地方都没有看到它。我唯一的解决方案是编写逻辑将
protobuf
时间
戳
转换回“日期”格式吗?
浏览 0
提问于2018-01-03
得票数 1
1
回答
如何查询由Bazel中的外部存储库定义的所有包
、
以https://github.com/protocolbuffers/
protobuf
定义的"com_google_
protobuf
“为例。 它应该显示如下列表 :
时间
戳
:持续
时间
。 。 。
使用
bazel query 'deps(//path/to/rule)'
浏览 17
提问于2020-11-08
得票数 0
回答已采纳
1
回答
TypeMappingException:为具有不同返回类型的操作"opName“检测到的多个方法
、
、
、
在
使用
graphql和Spring时,我试图运行该项目,但我遇到了以下情况: exception:org.springframework.beans.factory.BeanCreationExceptionTypes found: [com.google.
protobuf
.Message, com.google.
protobuf
.MessageLite].
浏览 1
提问于2020-07-09
得票数 0
回答已采纳
3
回答
如何在python中创建
protobuf
3
时间
戳
?
、
、
我看到有一个
时间
戳
对象,但它似乎不起作用。
使用
Python 3.6在python中:timestamp
浏览 0
提问于2018-03-08
得票数 10
2
回答
如何将google.
protobuf
.Timestamp设置为空?
、
、
如何在Google
ProtoBuf
中表示空
时间
戳
? google.
protobuf
.TimestampValue TransactionTime =1;不幸的是,没有像google.
protobuf
.TimestampValue
浏览 16
提问于2022-05-12
得票数 0
回答已采纳
1
回答
Protobuf
/guava依赖问题
、
、
我正在做一个
使用
protobuf
的项目。这是一个
java8
项目,所以我想充分利用toImmutableList等各种收集器的优点。dependencies { implementation 'com.google.
protobuf
:
protobuf
-java:3.11.1' } 我遇到了一个问题,
protobuf
依赖于android的guava
浏览 19
提问于2020-01-07
得票数 0
1
回答
获取原型当前
时间
戳
、
、
通过创建脚本并运行脚本,通过Google (BigQuery数据传输服务)调度作业,脚本
使用
protobuf
消息
时间
戳
类型来设置开始日期和结束日期。我无法将它更改为当前的
时间
戳
。/usr/bin/env pythonfrom google.
protobuf
.timestamp_pb2start_time,
浏览 0
提问于2019-03-25
得票数 1
1
回答
将分区
时间
戳
转换为com.google.
protobuf
.Timestamp
、
、
、
在我
使用
Swagger创建的自定义API中,我需要输入一个
时间
戳
。在YAML文件中,我将输入参数的格式定义为date-time,如Swagger网页中提到的那样Timestamp timestamp = Timestamp.valueOf(withoutTimezone)); 这些示例似乎都不起作用,因为我需要c
浏览 3
提问于2020-08-27
得票数 0
回答已采纳
1
回答
用于处理范围列表的库。
、
、
、
、
我必须处理
Java8
应用程序中的
时间
戳
(Long)列表:rangeList = [100, 200], [300,rangeList.add([150, 550])我尝试
使用
List of ,但是合并新的
时间
戳
范围却变得异常复杂。
使用
浏览 4
提问于2014-10-27
得票数 0
回答已采纳
点击加载更多
相关
资讯
使用Python进行时间戳相减
使用Java去除时间戳中的毫秒
Filecoin:使用时间戳来达成共识如何?
为什么不建议使用Date,而是使用Java8新的时间和日期API?
侠说java8-LocalDateTime时间篇,先mark后看
热门
标签
更多标签
云服务器
ICP备案
对象存储
实时音视频
云直播
活动推荐
运营活动
广告
关闭
领券