components/resources/protobufs/binary_proto_generator.py
def _GenerateBinaryProtos(self, opts):
    """ Read the ASCII proto and generate one or more binary protos. """
    # Read the ASCII
    with open(opts.infile, 'r') as ifile:
      ascii_pb_str = ifile.read()

    # Parse it into a structured PB
    full_pb = self.EmptyProtoInstance()
    text_format.Merge(ascii_pb_str, full_pb)

    self.ValidatePb(opts, full_pb);
    self.ProcessPb(opts, full_pb)
 Read the ASCII proto and generate one or more binary protos. 
Read the ASCII proto and generate one or more binary protos.
Read the ASCII proto and generate one or more binary protos .
def _GenerateBinaryProtos(self, opts):
    with open(opts.infile, 'r') as ifile:
      ascii_pb_str = ifile.read()
    full_pb = self.EmptyProtoInstance()
    text_format.Merge(ascii_pb_str, full_pb)
    self.ValidatePb(opts, full_pb);
    self.ProcessPb(opts, full_pb)
def _GenerateBinaryProtos ( self , opts ) : with open ( opts . infile , 'r' ) as ifile : ascii_pb_str = ifile . read ( ) full_pb = self . EmptyProtoInstance ( ) text_format . Merge ( ascii_pb_str , full_pb ) self . ValidatePb ( opts , full_pb ) ; self . ProcessPb ( opts , full_pb )
Read the ASCII proto and generate one or more binary protos.
Read the ASCII proto and generate one or more binary protos .
""" Read the ASCII proto and generate one or more binary protos. """ # Read the ASCII # Parse it into a structured PB
self
opts