LogRequest.isStatus -> LogRequest.ephemeral

This commit is contained in:
Alex Clemmer 2018-08-31 12:34:44 -07:00
parent 9e58fd1aaa
commit 3cc04a6f75
4 changed files with 40 additions and 39 deletions

View file

@ -65,7 +65,7 @@ proto.pulumirpc.LogRequest.toObject = function(includeInstance, msg) {
message: jspb.Message.getFieldWithDefault(msg, 2, ""),
urn: jspb.Message.getFieldWithDefault(msg, 3, ""),
streamid: jspb.Message.getFieldWithDefault(msg, 4, 0),
isstatus: jspb.Message.getFieldWithDefault(msg, 5, false)
ephemeral: jspb.Message.getFieldWithDefault(msg, 5, false)
};
if (includeInstance) {
@ -120,7 +120,7 @@ proto.pulumirpc.LogRequest.deserializeBinaryFromReader = function(msg, reader) {
break;
case 5:
var value = /** @type {boolean} */ (reader.readBool());
msg.setIsstatus(value);
msg.setEphemeral(value);
break;
default:
reader.skipField();
@ -179,7 +179,7 @@ proto.pulumirpc.LogRequest.serializeBinaryToWriter = function(message, writer) {
f
);
}
f = message.getIsstatus();
f = message.getEphemeral();
if (f) {
writer.writeBool(
5,
@ -250,18 +250,18 @@ proto.pulumirpc.LogRequest.prototype.setStreamid = function(value) {
/**
* optional bool isStatus = 5;
* optional bool ephemeral = 5;
* Note that Boolean fields may be set to 0/1 when serialized from a Java server.
* You should avoid comparisons like {@code val === true/false} in those cases.
* @return {boolean}
*/
proto.pulumirpc.LogRequest.prototype.getIsstatus = function() {
proto.pulumirpc.LogRequest.prototype.getEphemeral = function() {
return /** @type {boolean} */ (jspb.Message.getFieldWithDefault(this, 5, false));
};
/** @param {boolean} value */
proto.pulumirpc.LogRequest.prototype.setIsstatus = function(value) {
proto.pulumirpc.LogRequest.prototype.setEphemeral = function(value) {
jspb.Message.setProto3BooleanField(this, 5, value);
};

View file

@ -52,5 +52,5 @@ message LogRequest {
int32 streamId = 4;
// Optional value indicating whether this is a status message.
bool isStatus = 5;
bool ephemeral = 5;
}

View file

@ -51,7 +51,7 @@ func (x LogSeverity) String() string {
return proto.EnumName(LogSeverity_name, int32(x))
}
func (LogSeverity) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_engine_fb1173c4805c5707, []int{0}
return fileDescriptor_engine_5dfa95817201a658, []int{0}
}
type LogRequest struct {
@ -70,7 +70,7 @@ type LogRequest struct {
// 0/not-given means: do not associate with any stream.
StreamId int32 `protobuf:"varint,4,opt,name=streamId" json:"streamId,omitempty"`
// Optional value indicating whether this is a status message.
IsStatus bool `protobuf:"varint,5,opt,name=isStatus" json:"isStatus,omitempty"`
Ephemeral bool `protobuf:"varint,5,opt,name=ephemeral" json:"ephemeral,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@ -80,7 +80,7 @@ func (m *LogRequest) Reset() { *m = LogRequest{} }
func (m *LogRequest) String() string { return proto.CompactTextString(m) }
func (*LogRequest) ProtoMessage() {}
func (*LogRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_engine_fb1173c4805c5707, []int{0}
return fileDescriptor_engine_5dfa95817201a658, []int{0}
}
func (m *LogRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogRequest.Unmarshal(m, b)
@ -128,9 +128,9 @@ func (m *LogRequest) GetStreamId() int32 {
return 0
}
func (m *LogRequest) GetIsStatus() bool {
func (m *LogRequest) GetEphemeral() bool {
if m != nil {
return m.IsStatus
return m.Ephemeral
}
return false
}
@ -214,25 +214,26 @@ var _Engine_serviceDesc = grpc.ServiceDesc{
Metadata: "engine.proto",
}
func init() { proto.RegisterFile("engine.proto", fileDescriptor_engine_fb1173c4805c5707) }
func init() { proto.RegisterFile("engine.proto", fileDescriptor_engine_5dfa95817201a658) }
var fileDescriptor_engine_fb1173c4805c5707 = []byte{
// 269 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x54, 0x50, 0x4d, 0x4b, 0xc3, 0x40,
0x10, 0x6d, 0x9a, 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 0x79, 0x59, 0xf9, 0x16, 0x4e, 0x61,
0xf2, 0xfe, 0x28, 0x92, 0x38, 0x59, 0xfa, 0xc3, 0xd6, 0x11, 0x09, 0xb1, 0x12, 0xbe, 0x1d, 0x3e,
0xc0, 0x38, 0xea, 0xa6, 0xc1, 0x3b, 0xb0, 0x4d, 0x0a, 0x5e, 0x9c, 0x56, 0x3a, 0x74, 0x0f, 0x66,
0x7c, 0x3f, 0x14, 0x3f, 0x0e, 0xc5, 0xa3, 0x76, 0xa8, 0xf9, 0x60, 0x33, 0xee, 0x98, 0xdb, 0xbf,
0x00, 0x00, 0x00, 0xff, 0xff, 0x63, 0x83, 0x5a, 0xb3, 0x63, 0x01, 0x00, 0x00,
var fileDescriptor_engine_5dfa95817201a658 = []byte{
// 273 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x54, 0x90, 0x4f, 0x4b, 0xc3, 0x40,
0x10, 0xc5, 0x9b, 0xa6, 0x69, 0x93, 0xa9, 0x48, 0x18, 0xb0, 0x2c, 0xd1, 0x83, 0xf4, 0x24, 0x1e,
0xb6, 0x10, 0xc1, 0x83, 0x27, 0x15, 0x63, 0x09, 0x48, 0x0a, 0x2b, 0xe2, 0x39, 0xd5, 0x31, 0x06,
0xf2, 0xcf, 0x4d, 0x56, 0xe8, 0x17, 0xf2, 0x73, 0xba, 0x49, 0xdb, 0x68, 0x6f, 0x3b, 0xef, 0xbd,
0x7d, 0xc3, 0xfc, 0xe0, 0x88, 0x8a, 0x24, 0x2d, 0x88, 0x57, 0xb2, 0x6c, 0x4a, 0x74, 0x2a, 0x95,
0xa9, 0x3c, 0x95, 0xd5, 0x9b, 0x77, 0x9a, 0x94, 0x65, 0x92, 0xd1, 0xa2, 0x33, 0xd6, 0xea, 0x63,
0x41, 0x79, 0xd5, 0x6c, 0xb6, 0xb9, 0xf9, 0x8f, 0x01, 0xf0, 0x54, 0x26, 0x82, 0xbe, 0x14, 0xd5,
0x0d, 0xfa, 0x60, 0xd7, 0xf4, 0x4d, 0x32, 0x6d, 0x36, 0xcc, 0x38, 0x37, 0x2e, 0x8e, 0xfd, 0x19,
0xef, 0x9b, 0xb8, 0x0e, 0x3e, 0xef, 0x5c, 0xd1, 0xe7, 0x90, 0xc1, 0x24, 0xa7, 0xba, 0x8e, 0x13,
0x62, 0x43, 0xfd, 0xc5, 0x11, 0xfb, 0x11, 0x5d, 0x30, 0x95, 0x2c, 0x98, 0xd9, 0xa9, 0xed, 0x13,
0x3d, 0xdd, 0xdf, 0x48, 0x8a, 0xf3, 0xf0, 0x9d, 0x8d, 0xb4, 0x6c, 0x89, 0x7e, 0xc6, 0x33, 0x70,
0xa8, 0xfa, 0xa4, 0x9c, 0x64, 0x9c, 0x31, 0x4b, 0x9b, 0xb6, 0xf8, 0x13, 0x2e, 0x6f, 0x60, 0xfa,
0x6f, 0x3d, 0x3a, 0x60, 0x3d, 0x04, 0xf7, 0x2f, 0x4b, 0x77, 0x80, 0x36, 0x8c, 0xc2, 0xe8, 0x71,
0xe5, 0x1a, 0x38, 0x85, 0xc9, 0xeb, 0x9d, 0x88, 0xc2, 0x68, 0xe9, 0x0e, 0xdb, 0x44, 0x20, 0xc4,
0x4a, 0xb8, 0xa6, 0x7f, 0x0b, 0xe3, 0xa0, 0x83, 0x83, 0xd7, 0x60, 0xea, 0x16, 0x3c, 0x39, 0x3c,
0x6a, 0x77, 0xbd, 0x37, 0xe3, 0x5b, 0x54, 0x7c, 0x8f, 0x8a, 0x07, 0x2d, 0xaa, 0xf9, 0x60, 0x3d,
0xee, 0x94, 0xab, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc6, 0xf2, 0x12, 0xca, 0x65, 0x01, 0x00,
0x00,
}

View file

@ -21,7 +21,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
name='engine.proto',
package='pulumirpc',
syntax='proto3',
serialized_pb=_b('\n\x0c\x65ngine.proto\x12\tpulumirpc\x1a\x1bgoogle/protobuf/empty.proto\"x\n\nLogRequest\x12(\n\x08severity\x18\x01 \x01(\x0e\x32\x16.pulumirpc.LogSeverity\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x0b\n\x03urn\x18\x03 \x01(\t\x12\x10\n\x08streamId\x18\x04 \x01(\x05\x12\x10\n\x08isStatus\x18\x05 \x01(\x08*:\n\x0bLogSeverity\x12\t\n\x05\x44\x45\x42UG\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x32@\n\x06\x45ngine\x12\x36\n\x03Log\x12\x15.pulumirpc.LogRequest\x1a\x16.google.protobuf.Empty\"\x00\x62\x06proto3')
serialized_pb=_b('\n\x0c\x65ngine.proto\x12\tpulumirpc\x1a\x1bgoogle/protobuf/empty.proto\"y\n\nLogRequest\x12(\n\x08severity\x18\x01 \x01(\x0e\x32\x16.pulumirpc.LogSeverity\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x0b\n\x03urn\x18\x03 \x01(\t\x12\x10\n\x08streamId\x18\x04 \x01(\x05\x12\x11\n\tephemeral\x18\x05 \x01(\x08*:\n\x0bLogSeverity\x12\t\n\x05\x44\x45\x42UG\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x32@\n\x06\x45ngine\x12\x36\n\x03Log\x12\x15.pulumirpc.LogRequest\x1a\x16.google.protobuf.Empty\"\x00\x62\x06proto3')
,
dependencies=[google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,])
@ -50,8 +50,8 @@ _LOGSEVERITY = _descriptor.EnumDescriptor(
],
containing_type=None,
options=None,
serialized_start=178,
serialized_end=236,
serialized_start=179,
serialized_end=237,
)
_sym_db.RegisterEnumDescriptor(_LOGSEVERITY)
@ -99,7 +99,7 @@ _LOGREQUEST = _descriptor.Descriptor(
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='isStatus', full_name='pulumirpc.LogRequest.isStatus', index=4,
name='ephemeral', full_name='pulumirpc.LogRequest.ephemeral', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
@ -118,7 +118,7 @@ _LOGREQUEST = _descriptor.Descriptor(
oneofs=[
],
serialized_start=56,
serialized_end=176,
serialized_end=177,
)
_LOGREQUEST.fields_by_name['severity'].enum_type = _LOGSEVERITY
@ -141,8 +141,8 @@ _ENGINE = _descriptor.ServiceDescriptor(
file=DESCRIPTOR,
index=0,
options=None,
serialized_start=238,
serialized_end=302,
serialized_start=239,
serialized_end=303,
methods=[
_descriptor.MethodDescriptor(
name='Log',