Questions tagged [proto]

Related to Google Protocol Buffers, borrows its name from the .proto file extension containing a protocol schema.

564 questions
0
votes
1 answer

How value to __proto__ is assigned in javascript?

Recently I have been playing with javaScript prototype object and came across below example. function Foo(){ } Foo.prototype=null; var fooObj=new Foo(); When I look at the fooObj from developer tools, the __proto__ property points to the global…
Akshay Naik
  • 669
  • 1
  • 6
  • 22
0
votes
0 answers

Cannot understand the outcome related to javascript "__proto__"

Below is the preparation code for explaining my concerns, function Person(name) { this.name = name; } Person.prototype.getname = function(){ return this.name; } function test(){} test.prototype = new Person('why') var p = new…
jwkoo
  • 2,393
  • 5
  • 22
  • 35
0
votes
1 answer

Protocol Buffer

I'm trying to get my head around protocol buffers. I understood the basic stuff, but now I'm trying to define the following javascript object as a .proto. Using the Node.js gRPC Library const listsSchema = new Schema({ id: { type: String,…
Tino
  • 3,340
  • 5
  • 44
  • 74
0
votes
1 answer

gRPC not generating *grpc.cs

I am trying to generate grpc .cs files using a .bat file, but the messageGRPC.cs file does not get generated. However, the message.g.cs DOES get created. There are no errors and I even tried hard coding the paths and running the command window in…
GamerDev
  • 2,006
  • 4
  • 24
  • 31
0
votes
1 answer

R package "proto" installation failing on ubuntu

I am trying to install the R package "proto" on a Ubuntu machine. However, I am getting below errors... Warning in install.packages : URL 'https://cran.rstudio.com/src/contrib/proto_0.3-10.tar.gz': status was '404 Not Found' Error in…
Harish Garg
  • 53
  • 11
0
votes
0 answers

TypeError while accessing the parent function using dunder proto in javascript

Below is my sample code, function Employee(name){ this.name = name; } Employee.prototype.getName = function(){ return this.name; } var a = new Employee("a"); function Manager(name){ this.name = name; } var b = new…
0
votes
1 answer

Javascript inheritance: subtype prototype cannot visit super type's property/function

I've got this code piece below: function me(){ this.age=30, this.say=function(){return 'hello me'} } function child(){ this.hobby='sports' } child.prototype=new me(); var son=new child(); son.prototype=new…
Troskyvs
  • 7,537
  • 7
  • 47
  • 115
0
votes
2 answers

Adding a new message with required fields to protobuf v2

Say, I have two versions of proto file: version 1.0 - initial version version 2.0 - adds a new message with required fields Is this a valid change in proto file from compatibility point of view ? IMHO since v2.0 defines a new message with…
brokenfoot
  • 11,083
  • 10
  • 59
  • 80
0
votes
1 answer

protobuf.js: print int64 Object as string in node.js

I'm using this great module: protobuf.js for protocol buffers in node.js. I've int64 field type (which supported by google-protocol) and I'm trying to print it to screen. The line: console.log(MessageTypeAck.decode(message)); Print the following: …
ItayB
  • 10,377
  • 9
  • 50
  • 77
0
votes
1 answer

How to get extension type from proto buf UDP data stream

I am reading UDP stream using java and proto buf which supports extension. At any given time i can get three different type of data which corresponds to three different types of proto files. I am using …
Ammad
  • 4,031
  • 12
  • 39
  • 62
0
votes
1 answer

Protocol buffer with node.js - failed to generate js from .proto

Trying to use google protocol buffer in my node.js web server with this documentation. When running the following command: protoc --js_out=import_style=commonjs,binary: ServiceMessage.proto I received: --js_out: : Unknown option: import_style Any…
ItayB
  • 10,377
  • 9
  • 50
  • 77
0
votes
0 answers

AngularJS arrays, proto and .length - Why can't i get a valid number?

Sometimes you need to ng-if or ng-show an item in html based on some choices made earlier. One of these for me is "Additional Item". You can enter one set of information, and also if you want, an additional set. This creates an array of 2 similar…
CarComp
  • 1,929
  • 1
  • 21
  • 47
0
votes
1 answer

view file of concatenated protocol buffers: Stanford CoreNLP

I'm trying to replicate the results of a paper which uses the stanford core NLP, in the documentation they state: the fully annotated sentences are provided in a file of concatenated protocol buffers: delimitedSentences.proto.bz This file should…
smatthewenglish
  • 2,831
  • 4
  • 36
  • 72
0
votes
1 answer

What EXACTLY is new doing?

This is going to be a tricky question. Having a constructor: var Constructor = new function(){ this.a = 'a'; this.b = 'b'; } we can create an object: var obj = new Constructor(); this in Constructor refers to window but when calling new…
-1
votes
1 answer

NYC MTA Subway API How to Get Next Trains At a Specific Station going a Specific Direction

I'm working on a raspberry pi LED Matrix to display when two specific trains are scheduled to arrive at the station near my apartment. I created a MTA developer account (https://api.mta.info/#/landing) and am accessing the APIs, but I'm not sure how…
evvanerb
  • 139
  • 1
  • 12
1 2 3
37
38