当前位置: 首页>>代码示例>>Golang>>正文


Golang proto.EnumName函数代码示例

本文整理汇总了Golang中github.com/golang/protobuf/proto.EnumName函数的典型用法代码示例。如果您正苦于以下问题:Golang EnumName函数的具体用法?Golang EnumName怎么用?Golang EnumName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了EnumName函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: String

func (x ReadOptions_ReadConsistency) String() string {
	return proto.EnumName(ReadOptions_ReadConsistency_name, int32(x))
}
开发者ID:takbok,项目名称:shared-contacts-admin,代码行数:3,代码来源:datastore.pb.go

示例2: String

func (x SystemResult_Status) String() string {
	return proto.EnumName(SystemResult_Status_name, int32(x))
}
开发者ID:bacsorg,项目名称:problem,代码行数:3,代码来源:result.pb.go

示例3: String

func (x URLFetchServiceError_ErrorCode) String() string {
	return proto.EnumName(URLFetchServiceError_ErrorCode_name, int32(x))
}
开发者ID:Celluliodio,项目名称:flannel,代码行数:3,代码来源:urlfetch_service.pb.go

示例4: String

func (x Flag) String() string {
	return proto.EnumName(Flag_name, int32(x))
}
开发者ID:aaijazi,项目名称:vitess,代码行数:3,代码来源:query.pb.go

示例5: String

func (x EGCToGCMsg) String() string {
	return proto.EnumName(EGCToGCMsg_name, int32(x))
}
开发者ID:Slacki,项目名称:go-steam,代码行数:3,代码来源:system.pb.go

示例6: String

func (x PartnerAccountType) String() string {
	return proto.EnumName(PartnerAccountType_name, int32(x))
}
开发者ID:Inkp,项目名称:go-steam,代码行数:3,代码来源:gcsdk.pb.go

示例7: String

func (x SplitLogTask_State) String() string {
	return proto1.EnumName(SplitLogTask_State_name, int32(x))
}
开发者ID:yzl11,项目名称:vessel,代码行数:3,代码来源:ZooKeeper.pb.go

示例8: String

func (x Game_FrameType) String() string {
	return proto1.EnumName(Game_FrameType_name, int32(x))
}
开发者ID:anders007,项目名称:libs,代码行数:3,代码来源:game.pb.go

示例9: String

func (x KeyspaceIdType) String() string {
	return proto.EnumName(KeyspaceIdType_name, int32(x))
}
开发者ID:richarwu,项目名称:vitess,代码行数:3,代码来源:topodata.pb.go

示例10: String

func (x HealthCheckResponse_ServingStatus) String() string {
	return proto.EnumName(HealthCheckResponse_ServingStatus_name, int32(x))
}
开发者ID:sr,项目名称:pachyderm,代码行数:3,代码来源:health.pb.go

示例11: String

func (x PresenceResponse_SHOW) String() string {
	return proto.EnumName(PresenceResponse_SHOW_name, int32(x))
}
开发者ID:David-Shibley,项目名称:goPlayground,代码行数:3,代码来源:xmpp_service.pb.go

示例12: String

func (x Table_TimestampGranularity) String() string {
	return proto.EnumName(Table_TimestampGranularity_name, int32(x))
}
开发者ID:roth1002,项目名称:gcloud-golang,代码行数:3,代码来源:bigtable_table_data.pb.go

示例13: String

func (x SyncMessage_Request_Type) String() string {
	return proto.EnumName(SyncMessage_Request_Type_name, int32(x))
}
开发者ID:elimisteve,项目名称:textsecure,代码行数:3,代码来源:TextSecure.pb.go

示例14: String

func (x NetMsgID) String() string {
	return proto.EnumName(NetMsgID_name, int32(x))
}
开发者ID:pengswift,项目名称:protocol,代码行数:3,代码来源:netmessageid.pb.go

示例15: String

func (x APIMessage_APIMessageType) String() string {
	return proto.EnumName(APIMessage_APIMessageType_name, int32(x))
}
开发者ID:krwhitney,项目名称:gauge,代码行数:3,代码来源:api.pb.go


注:本文中的github.com/golang/protobuf/proto.EnumName函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。