diff --git a/googleapis/api/configchange/config_change.pb.go b/googleapis/api/configchange/config_change.pb.go index e9fbfe0226a6831f01320c0b836b712ac0505c96..2fe4bb9c919122bbc685740a9afdf0d84f655e90 100644 --- a/googleapis/api/configchange/config_change.pb.go +++ b/googleapis/api/configchange/config_change.pb.go @@ -197,9 +197,9 @@ func (m *Advice) GetDescription() string { } func init() { + proto.RegisterEnum("google.api.ChangeType", ChangeType_name, ChangeType_value) proto.RegisterType((*ConfigChange)(nil), "google.api.ConfigChange") proto.RegisterType((*Advice)(nil), "google.api.Advice") - proto.RegisterEnum("google.api.ChangeType", ChangeType_name, ChangeType_value) } func init() { proto.RegisterFile("google/api/config_change.proto", fileDescriptor_5c5c17e3f260da51) } diff --git a/googleapis/api/expr/v1alpha1/cel_service.pb.go b/googleapis/api/expr/v1alpha1/cel_service.pb.go index 94377f798ac386d8bedfde158b7d75348bfbf98f..c894c1871dff157f719a679caef430a1e7702996 100644 --- a/googleapis/api/expr/v1alpha1/cel_service.pb.go +++ b/googleapis/api/expr/v1alpha1/cel_service.pb.go @@ -587,6 +587,7 @@ func (m *IssueDetails) GetId() int64 { } func init() { + proto.RegisterEnum("google.api.expr.v1alpha1.IssueDetails_Severity", IssueDetails_Severity_name, IssueDetails_Severity_value) proto.RegisterType((*ParseRequest)(nil), "google.api.expr.v1alpha1.ParseRequest") proto.RegisterType((*ParseResponse)(nil), "google.api.expr.v1alpha1.ParseResponse") proto.RegisterType((*CheckRequest)(nil), "google.api.expr.v1alpha1.CheckRequest") @@ -595,7 +596,6 @@ func init() { proto.RegisterMapType((map[string]*ExprValue)(nil), "google.api.expr.v1alpha1.EvalRequest.BindingsEntry") proto.RegisterType((*EvalResponse)(nil), "google.api.expr.v1alpha1.EvalResponse") proto.RegisterType((*IssueDetails)(nil), "google.api.expr.v1alpha1.IssueDetails") - proto.RegisterEnum("google.api.expr.v1alpha1.IssueDetails_Severity", IssueDetails_Severity_name, IssueDetails_Severity_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/api/expr/v1alpha1/checked.pb.go b/googleapis/api/expr/v1alpha1/checked.pb.go index d8144db666156dd65809667657151792a422cb58..f82485fcf4d2a4a331a72b339cd639dac951e105 100644 --- a/googleapis/api/expr/v1alpha1/checked.pb.go +++ b/googleapis/api/expr/v1alpha1/checked.pb.go @@ -1060,7 +1060,7 @@ type Decl_IdentDecl struct { Type *Type `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // The constant value of the identifier. If not specified, the identifier // must be supplied at evaluation time. - Value *Literal `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Value *Constant `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // Documentation string for the identifier. Doc string `protobuf:"bytes,3,opt,name=doc,proto3" json:"doc,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1100,7 +1100,7 @@ func (m *Decl_IdentDecl) GetType() *Type { return nil } -func (m *Decl_IdentDecl) GetValue() *Literal { +func (m *Decl_IdentDecl) GetValue() *Constant { if m != nil { return m.Value } @@ -1294,10 +1294,10 @@ type Reference struct { OverloadId []string `protobuf:"bytes,3,rep,name=overload_id,json=overloadId,proto3" json:"overload_id,omitempty"` // For references to constants, this may contain the value of the // constant if known at compile time. - Value *Literal `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Value *Constant `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Reference) Reset() { *m = Reference{} } @@ -1339,7 +1339,7 @@ func (m *Reference) GetOverloadId() []string { return nil } -func (m *Reference) GetValue() *Literal { +func (m *Reference) GetValue() *Constant { if m != nil { return m.Value } @@ -1347,6 +1347,8 @@ func (m *Reference) GetValue() *Literal { } func init() { + proto.RegisterEnum("google.api.expr.v1alpha1.Type_PrimitiveType", Type_PrimitiveType_name, Type_PrimitiveType_value) + proto.RegisterEnum("google.api.expr.v1alpha1.Type_WellKnownType", Type_WellKnownType_name, Type_WellKnownType_value) proto.RegisterType((*CheckedExpr)(nil), "google.api.expr.v1alpha1.CheckedExpr") proto.RegisterMapType((map[int64]*Reference)(nil), "google.api.expr.v1alpha1.CheckedExpr.ReferenceMapEntry") proto.RegisterMapType((map[int64]*Type)(nil), "google.api.expr.v1alpha1.CheckedExpr.TypeMapEntry") @@ -1360,8 +1362,6 @@ func init() { proto.RegisterType((*Decl_FunctionDecl)(nil), "google.api.expr.v1alpha1.Decl.FunctionDecl") proto.RegisterType((*Decl_FunctionDecl_Overload)(nil), "google.api.expr.v1alpha1.Decl.FunctionDecl.Overload") proto.RegisterType((*Reference)(nil), "google.api.expr.v1alpha1.Reference") - proto.RegisterEnum("google.api.expr.v1alpha1.Type_PrimitiveType", Type_PrimitiveType_name, Type_PrimitiveType_value) - proto.RegisterEnum("google.api.expr.v1alpha1.Type_WellKnownType", Type_WellKnownType_name, Type_WellKnownType_value) } func init() { @@ -1369,77 +1369,77 @@ func init() { } var fileDescriptor_30a741de3e790389 = []byte{ - // 1142 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x5d, 0x6f, 0xdb, 0x36, - 0x14, 0x8d, 0x2c, 0xd9, 0x96, 0xae, 0x9c, 0xcc, 0x23, 0x86, 0x41, 0x50, 0x8b, 0x26, 0x4b, 0xb7, - 0x2e, 0xd8, 0x06, 0xb9, 0xf5, 0x82, 0x76, 0x5d, 0x37, 0x6c, 0x71, 0xa2, 0x24, 0x42, 0xfd, 0x05, - 0xc5, 0x49, 0x90, 0x62, 0x80, 0xc1, 0xc8, 0x8c, 0x2b, 0x58, 0x96, 0x04, 0x4a, 0x4e, 0xe2, 0xe7, - 0x3d, 0x6d, 0xd8, 0xaf, 0xd9, 0xaf, 0xd8, 0xaf, 0xd9, 0xeb, 0xf6, 0x58, 0x90, 0x92, 0x1c, 0xe7, - 0xc3, 0xb5, 0xfd, 0x76, 0x45, 0x9e, 0x73, 0x78, 0x79, 0x79, 0x2e, 0x29, 0x78, 0xd6, 0x0f, 0x82, - 0xbe, 0x47, 0x2a, 0x38, 0x74, 0x2b, 0xe4, 0x3a, 0xa4, 0x95, 0xcb, 0x17, 0xd8, 0x0b, 0xdf, 0xe3, - 0x17, 0x15, 0xe7, 0x3d, 0x71, 0x06, 0xa4, 0x67, 0x84, 0x34, 0x88, 0x03, 0xa4, 0x25, 0x38, 0x03, - 0x87, 0xae, 0xc1, 0x70, 0x46, 0x86, 0xd3, 0xbf, 0x9a, 0xa9, 0x10, 0x8d, 0xfd, 0x18, 0x5f, 0x27, - 0x02, 0xfa, 0xa3, 0x14, 0xc6, 0xbf, 0xce, 0x47, 0x17, 0x15, 0x32, 0x0c, 0xe3, 0x71, 0x3a, 0xf9, - 0xf8, 0xee, 0x64, 0x14, 0xd3, 0x91, 0x13, 0x27, 0xb3, 0x9b, 0xff, 0x89, 0xa0, 0xee, 0x26, 0xd9, - 0x98, 0xd7, 0x21, 0x45, 0xbf, 0xc1, 0x2a, 0x25, 0x17, 0x84, 0x12, 0xdf, 0x21, 0xdd, 0x21, 0x0e, - 0xb5, 0xdc, 0x86, 0xb8, 0xa5, 0x56, 0x5f, 0x19, 0xb3, 0x72, 0x34, 0xa6, 0xd8, 0x86, 0x9d, 0x51, - 0x1b, 0x38, 0x34, 0xfd, 0x98, 0x8e, 0xed, 0x12, 0x9d, 0x1a, 0x42, 0x0d, 0x90, 0xe3, 0x71, 0x98, - 0x08, 0x8b, 0x5c, 0xb8, 0xba, 0x98, 0x70, 0x67, 0x1c, 0xde, 0x68, 0x16, 0xe3, 0xe4, 0x0b, 0x99, - 0xa0, 0x46, 0xc1, 0x88, 0x3a, 0xa4, 0xeb, 0xfa, 0x17, 0x81, 0x96, 0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4, 0x6c, 0xa6, 0xeb, 0xf6, 0xd2, 0x63, 0x82, 0x6c, 0xc8, 0xea, 0xa1, 0x97, - 0x50, 0xe0, 0xae, 0x5d, 0xd4, 0xe3, 0x29, 0x9a, 0x09, 0xdf, 0xdc, 0xc0, 0x11, 0xff, 0xb7, 0x52, - 0x6c, 0x98, 0x5c, 0xc0, 0xd1, 0xdd, 0x3e, 0x97, 0x96, 0xee, 0xf3, 0xe7, 0xf0, 0x99, 0x1b, 0x75, - 0x5d, 0x3f, 0x8a, 0x31, 0xfb, 0x35, 0x9c, 0x18, 0x82, 0xbd, 0x9c, 0xb2, 0x8d, 0xdc, 0xc8, 0x4a, - 0xa7, 0xb2, 0x8a, 0x64, 0x05, 0x2f, 0x4c, 0x0a, 0xce, 0x4c, 0xdb, 0x23, 0x8e, 0x97, 0x98, 0x76, - 0x0c, 0xca, 0xe4, 0x9f, 0xe7, 0x41, 0xe3, 0xde, 0x29, 0x56, 0xba, 0xa7, 0xa9, 0x62, 0x4d, 0xac, - 0x20, 0x2d, 0x67, 0x85, 0x9a, 0x07, 0x8f, 0x9d, 0x60, 0x38, 0x13, 0x5e, 0x53, 0xd8, 0x69, 0xb6, - 0xd9, 0x2b, 0xd3, 0x16, 0xde, 0xfd, 0x94, 0xc2, 0xfa, 0x81, 0x87, 0xfd, 0xbe, 0x11, 0xd0, 0x7e, - 0xa5, 0x4f, 0x7c, 0xfe, 0x06, 0x55, 0x92, 0x29, 0x1c, 0xba, 0xd1, 0xfd, 0x5f, 0xf4, 0x37, 0xec, - 0xeb, 0x7f, 0x41, 0x38, 0x2f, 0x70, 0xec, 0xf7, 0x1f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xa6, 0xfb, - 0xf6, 0x58, 0x0f, 0x0c, 0x00, 0x00, + // 1144 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x5f, 0x6f, 0xdb, 0xb6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0, 0x36, 0x20, 0x3e, 0x7f, 0x85, 0x6a, 0xc9, 0x14, 0x0e, 0xdd, 0xe8, 0xee, 0x4f, 0xfa, + 0x3b, 0xf6, 0xf5, 0xaf, 0x20, 0x9c, 0x15, 0x39, 0xf6, 0x9b, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, + 0xee, 0x02, 0xe6, 0x8f, 0x11, 0x0c, 0x00, 0x00, } diff --git a/googleapis/api/expr/v1alpha1/syntax.pb.go b/googleapis/api/expr/v1alpha1/syntax.pb.go index 67ec867ce4c9a96f14e82f7788e4a16953afb7b5..3a4dc4ca387df2cbeb30df565bfaee86b828366a 100644 --- a/googleapis/api/expr/v1alpha1/syntax.pb.go +++ b/googleapis/api/expr/v1alpha1/syntax.pb.go @@ -6,9 +6,9 @@ package expr import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - _ "github.com/golang/protobuf/ptypes/duration" + duration "github.com/golang/protobuf/ptypes/duration" _struct "github.com/golang/protobuf/ptypes/struct" - _ "github.com/golang/protobuf/ptypes/timestamp" + timestamp "github.com/golang/protobuf/ptypes/timestamp" math "math" ) @@ -148,7 +148,7 @@ type isExpr_ExprKind interface { } type Expr_ConstExpr struct { - ConstExpr *Literal `protobuf:"bytes,3,opt,name=const_expr,json=constExpr,proto3,oneof"` + ConstExpr *Constant `protobuf:"bytes,3,opt,name=const_expr,json=constExpr,proto3,oneof"` } type Expr_IdentExpr struct { @@ -196,7 +196,7 @@ func (m *Expr) GetExprKind() isExpr_ExprKind { return nil } -func (m *Expr) GetConstExpr() *Literal { +func (m *Expr) GetConstExpr() *Constant { if x, ok := m.GetExprKind().(*Expr_ConstExpr); ok { return x.ConstExpr } @@ -311,7 +311,7 @@ func _Expr_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) ( if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } - msg := new(Literal) + msg := new(Constant) err := b.DecodeMessage(msg) m.ExprKind = &Expr_ConstExpr{msg} return true, err @@ -981,6 +981,8 @@ func (m *Expr_Comprehension) GetResult() *Expr { // Represents a primitive literal. // +// Named 'Constant' here for backwards compatibility. +// // This is similar as the primitives supported in the well-known type // `google.protobuf.Value`, but richer so it can represent CEL's full range of // primitives. @@ -991,283 +993,349 @@ func (m *Expr_Comprehension) GetResult() *Expr { // // Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`, // `true`, `null`. -type Literal struct { +type Constant struct { // Required. The valid constant kinds. // // Types that are valid to be assigned to ConstantKind: - // *Literal_NullValue - // *Literal_BoolValue - // *Literal_Int64Value - // *Literal_Uint64Value - // *Literal_DoubleValue - // *Literal_StringValue - // *Literal_BytesValue - ConstantKind isLiteral_ConstantKind `protobuf_oneof:"constant_kind"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Literal) Reset() { *m = Literal{} } -func (m *Literal) String() string { return proto.CompactTextString(m) } -func (*Literal) ProtoMessage() {} -func (*Literal) Descriptor() ([]byte, []int) { + // *Constant_NullValue + // *Constant_BoolValue + // *Constant_Int64Value + // *Constant_Uint64Value + // *Constant_DoubleValue + // *Constant_StringValue + // *Constant_BytesValue + // *Constant_DurationValue + // *Constant_TimestampValue + ConstantKind isConstant_ConstantKind `protobuf_oneof:"constant_kind"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Constant) Reset() { *m = Constant{} } +func (m *Constant) String() string { return proto.CompactTextString(m) } +func (*Constant) ProtoMessage() {} +func (*Constant) Descriptor() ([]byte, []int) { return fileDescriptor_d4e2be48009c83cb, []int{2} } -func (m *Literal) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Literal.Unmarshal(m, b) +func (m *Constant) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Constant.Unmarshal(m, b) } -func (m *Literal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Literal.Marshal(b, m, deterministic) +func (m *Constant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Constant.Marshal(b, m, deterministic) } -func (m *Literal) XXX_Merge(src proto.Message) { - xxx_messageInfo_Literal.Merge(m, src) +func (m *Constant) XXX_Merge(src proto.Message) { + xxx_messageInfo_Constant.Merge(m, src) } -func (m *Literal) XXX_Size() int { - return xxx_messageInfo_Literal.Size(m) +func (m *Constant) XXX_Size() int { + return xxx_messageInfo_Constant.Size(m) } -func (m *Literal) XXX_DiscardUnknown() { - xxx_messageInfo_Literal.DiscardUnknown(m) +func (m *Constant) XXX_DiscardUnknown() { + xxx_messageInfo_Constant.DiscardUnknown(m) } -var xxx_messageInfo_Literal proto.InternalMessageInfo +var xxx_messageInfo_Constant proto.InternalMessageInfo -type isLiteral_ConstantKind interface { - isLiteral_ConstantKind() +type isConstant_ConstantKind interface { + isConstant_ConstantKind() } -type Literal_NullValue struct { +type Constant_NullValue struct { NullValue _struct.NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"` } -type Literal_BoolValue struct { +type Constant_BoolValue struct { BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"` } -type Literal_Int64Value struct { +type Constant_Int64Value struct { Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"` } -type Literal_Uint64Value struct { +type Constant_Uint64Value struct { Uint64Value uint64 `protobuf:"varint,4,opt,name=uint64_value,json=uint64Value,proto3,oneof"` } -type Literal_DoubleValue struct { +type Constant_DoubleValue struct { DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"` } -type Literal_StringValue struct { +type Constant_StringValue struct { StringValue string `protobuf:"bytes,6,opt,name=string_value,json=stringValue,proto3,oneof"` } -type Literal_BytesValue struct { +type Constant_BytesValue struct { BytesValue []byte `protobuf:"bytes,7,opt,name=bytes_value,json=bytesValue,proto3,oneof"` } -func (*Literal_NullValue) isLiteral_ConstantKind() {} +type Constant_DurationValue struct { + DurationValue *duration.Duration `protobuf:"bytes,8,opt,name=duration_value,json=durationValue,proto3,oneof"` +} + +type Constant_TimestampValue struct { + TimestampValue *timestamp.Timestamp `protobuf:"bytes,9,opt,name=timestamp_value,json=timestampValue,proto3,oneof"` +} + +func (*Constant_NullValue) isConstant_ConstantKind() {} -func (*Literal_BoolValue) isLiteral_ConstantKind() {} +func (*Constant_BoolValue) isConstant_ConstantKind() {} -func (*Literal_Int64Value) isLiteral_ConstantKind() {} +func (*Constant_Int64Value) isConstant_ConstantKind() {} -func (*Literal_Uint64Value) isLiteral_ConstantKind() {} +func (*Constant_Uint64Value) isConstant_ConstantKind() {} -func (*Literal_DoubleValue) isLiteral_ConstantKind() {} +func (*Constant_DoubleValue) isConstant_ConstantKind() {} -func (*Literal_StringValue) isLiteral_ConstantKind() {} +func (*Constant_StringValue) isConstant_ConstantKind() {} -func (*Literal_BytesValue) isLiteral_ConstantKind() {} +func (*Constant_BytesValue) isConstant_ConstantKind() {} -func (m *Literal) GetConstantKind() isLiteral_ConstantKind { +func (*Constant_DurationValue) isConstant_ConstantKind() {} + +func (*Constant_TimestampValue) isConstant_ConstantKind() {} + +func (m *Constant) GetConstantKind() isConstant_ConstantKind { if m != nil { return m.ConstantKind } return nil } -func (m *Literal) GetNullValue() _struct.NullValue { - if x, ok := m.GetConstantKind().(*Literal_NullValue); ok { +func (m *Constant) GetNullValue() _struct.NullValue { + if x, ok := m.GetConstantKind().(*Constant_NullValue); ok { return x.NullValue } return _struct.NullValue_NULL_VALUE } -func (m *Literal) GetBoolValue() bool { - if x, ok := m.GetConstantKind().(*Literal_BoolValue); ok { +func (m *Constant) GetBoolValue() bool { + if x, ok := m.GetConstantKind().(*Constant_BoolValue); ok { return x.BoolValue } return false } -func (m *Literal) GetInt64Value() int64 { - if x, ok := m.GetConstantKind().(*Literal_Int64Value); ok { +func (m *Constant) GetInt64Value() int64 { + if x, ok := m.GetConstantKind().(*Constant_Int64Value); ok { return x.Int64Value } return 0 } -func (m *Literal) GetUint64Value() uint64 { - if x, ok := m.GetConstantKind().(*Literal_Uint64Value); ok { +func (m *Constant) GetUint64Value() uint64 { + if x, ok := m.GetConstantKind().(*Constant_Uint64Value); ok { return x.Uint64Value } return 0 } -func (m *Literal) GetDoubleValue() float64 { - if x, ok := m.GetConstantKind().(*Literal_DoubleValue); ok { +func (m *Constant) GetDoubleValue() float64 { + if x, ok := m.GetConstantKind().(*Constant_DoubleValue); ok { return x.DoubleValue } return 0 } -func (m *Literal) GetStringValue() string { - if x, ok := m.GetConstantKind().(*Literal_StringValue); ok { +func (m *Constant) GetStringValue() string { + if x, ok := m.GetConstantKind().(*Constant_StringValue); ok { return x.StringValue } return "" } -func (m *Literal) GetBytesValue() []byte { - if x, ok := m.GetConstantKind().(*Literal_BytesValue); ok { +func (m *Constant) GetBytesValue() []byte { + if x, ok := m.GetConstantKind().(*Constant_BytesValue); ok { return x.BytesValue } return nil } +func (m *Constant) GetDurationValue() *duration.Duration { + if x, ok := m.GetConstantKind().(*Constant_DurationValue); ok { + return x.DurationValue + } + return nil +} + +func (m *Constant) GetTimestampValue() *timestamp.Timestamp { + if x, ok := m.GetConstantKind().(*Constant_TimestampValue); ok { + return x.TimestampValue + } + return nil +} + // XXX_OneofFuncs is for the internal use of the proto package. -func (*Literal) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _Literal_OneofMarshaler, _Literal_OneofUnmarshaler, _Literal_OneofSizer, []interface{}{ - (*Literal_NullValue)(nil), - (*Literal_BoolValue)(nil), - (*Literal_Int64Value)(nil), - (*Literal_Uint64Value)(nil), - (*Literal_DoubleValue)(nil), - (*Literal_StringValue)(nil), - (*Literal_BytesValue)(nil), +func (*Constant) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Constant_OneofMarshaler, _Constant_OneofUnmarshaler, _Constant_OneofSizer, []interface{}{ + (*Constant_NullValue)(nil), + (*Constant_BoolValue)(nil), + (*Constant_Int64Value)(nil), + (*Constant_Uint64Value)(nil), + (*Constant_DoubleValue)(nil), + (*Constant_StringValue)(nil), + (*Constant_BytesValue)(nil), + (*Constant_DurationValue)(nil), + (*Constant_TimestampValue)(nil), } } -func _Literal_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*Literal) +func _Constant_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Constant) // constant_kind switch x := m.ConstantKind.(type) { - case *Literal_NullValue: + case *Constant_NullValue: b.EncodeVarint(1<<3 | proto.WireVarint) b.EncodeVarint(uint64(x.NullValue)) - case *Literal_BoolValue: + case *Constant_BoolValue: t := uint64(0) if x.BoolValue { t = 1 } b.EncodeVarint(2<<3 | proto.WireVarint) b.EncodeVarint(t) - case *Literal_Int64Value: + case *Constant_Int64Value: b.EncodeVarint(3<<3 | proto.WireVarint) b.EncodeVarint(uint64(x.Int64Value)) - case *Literal_Uint64Value: + case *Constant_Uint64Value: b.EncodeVarint(4<<3 | proto.WireVarint) b.EncodeVarint(uint64(x.Uint64Value)) - case *Literal_DoubleValue: + case *Constant_DoubleValue: b.EncodeVarint(5<<3 | proto.WireFixed64) b.EncodeFixed64(math.Float64bits(x.DoubleValue)) - case *Literal_StringValue: + case *Constant_StringValue: b.EncodeVarint(6<<3 | proto.WireBytes) b.EncodeStringBytes(x.StringValue) - case *Literal_BytesValue: + case *Constant_BytesValue: b.EncodeVarint(7<<3 | proto.WireBytes) b.EncodeRawBytes(x.BytesValue) + case *Constant_DurationValue: + b.EncodeVarint(8<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.DurationValue); err != nil { + return err + } + case *Constant_TimestampValue: + b.EncodeVarint(9<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.TimestampValue); err != nil { + return err + } case nil: default: - return fmt.Errorf("Literal.ConstantKind has unexpected type %T", x) + return fmt.Errorf("Constant.ConstantKind has unexpected type %T", x) } return nil } -func _Literal_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*Literal) +func _Constant_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Constant) switch tag { case 1: // constant_kind.null_value if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() - m.ConstantKind = &Literal_NullValue{_struct.NullValue(x)} + m.ConstantKind = &Constant_NullValue{_struct.NullValue(x)} return true, err case 2: // constant_kind.bool_value if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() - m.ConstantKind = &Literal_BoolValue{x != 0} + m.ConstantKind = &Constant_BoolValue{x != 0} return true, err case 3: // constant_kind.int64_value if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() - m.ConstantKind = &Literal_Int64Value{int64(x)} + m.ConstantKind = &Constant_Int64Value{int64(x)} return true, err case 4: // constant_kind.uint64_value if wire != proto.WireVarint { return true, proto.ErrInternalBadWireType } x, err := b.DecodeVarint() - m.ConstantKind = &Literal_Uint64Value{x} + m.ConstantKind = &Constant_Uint64Value{x} return true, err case 5: // constant_kind.double_value if wire != proto.WireFixed64 { return true, proto.ErrInternalBadWireType } x, err := b.DecodeFixed64() - m.ConstantKind = &Literal_DoubleValue{math.Float64frombits(x)} + m.ConstantKind = &Constant_DoubleValue{math.Float64frombits(x)} return true, err case 6: // constant_kind.string_value if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeStringBytes() - m.ConstantKind = &Literal_StringValue{x} + m.ConstantKind = &Constant_StringValue{x} return true, err case 7: // constant_kind.bytes_value if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } x, err := b.DecodeRawBytes(true) - m.ConstantKind = &Literal_BytesValue{x} + m.ConstantKind = &Constant_BytesValue{x} + return true, err + case 8: // constant_kind.duration_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(duration.Duration) + err := b.DecodeMessage(msg) + m.ConstantKind = &Constant_DurationValue{msg} + return true, err + case 9: // constant_kind.timestamp_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(timestamp.Timestamp) + err := b.DecodeMessage(msg) + m.ConstantKind = &Constant_TimestampValue{msg} return true, err default: return false, nil } } -func _Literal_OneofSizer(msg proto.Message) (n int) { - m := msg.(*Literal) +func _Constant_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Constant) // constant_kind switch x := m.ConstantKind.(type) { - case *Literal_NullValue: + case *Constant_NullValue: n += 1 // tag and wire n += proto.SizeVarint(uint64(x.NullValue)) - case *Literal_BoolValue: + case *Constant_BoolValue: n += 1 // tag and wire n += 1 - case *Literal_Int64Value: + case *Constant_Int64Value: n += 1 // tag and wire n += proto.SizeVarint(uint64(x.Int64Value)) - case *Literal_Uint64Value: + case *Constant_Uint64Value: n += 1 // tag and wire n += proto.SizeVarint(uint64(x.Uint64Value)) - case *Literal_DoubleValue: + case *Constant_DoubleValue: n += 1 // tag and wire n += 8 - case *Literal_StringValue: + case *Constant_StringValue: n += 1 // tag and wire n += proto.SizeVarint(uint64(len(x.StringValue))) n += len(x.StringValue) - case *Literal_BytesValue: + case *Constant_BytesValue: n += 1 // tag and wire n += proto.SizeVarint(uint64(len(x.BytesValue))) n += len(x.BytesValue) + case *Constant_DurationValue: + s := proto.Size(x.DurationValue) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Constant_TimestampValue: + s := proto.Size(x.TimestampValue) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s case nil: default: panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) @@ -1432,7 +1500,7 @@ func init() { proto.RegisterType((*Expr_CreateStruct)(nil), "google.api.expr.v1alpha1.Expr.CreateStruct") proto.RegisterType((*Expr_CreateStruct_Entry)(nil), "google.api.expr.v1alpha1.Expr.CreateStruct.Entry") proto.RegisterType((*Expr_Comprehension)(nil), "google.api.expr.v1alpha1.Expr.Comprehension") - proto.RegisterType((*Literal)(nil), "google.api.expr.v1alpha1.Literal") + proto.RegisterType((*Constant)(nil), "google.api.expr.v1alpha1.Constant") proto.RegisterType((*SourceInfo)(nil), "google.api.expr.v1alpha1.SourceInfo") proto.RegisterMapType((map[int64]int32)(nil), "google.api.expr.v1alpha1.SourceInfo.PositionsEntry") proto.RegisterType((*SourcePosition)(nil), "google.api.expr.v1alpha1.SourcePosition") @@ -1443,73 +1511,76 @@ func init() { } var fileDescriptor_d4e2be48009c83cb = []byte{ - // 1085 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x4b, 0x6f, 0x1b, 0x37, - 0x10, 0xf6, 0xea, 0xbd, 0x23, 0x5b, 0x6d, 0x89, 0xa2, 0x50, 0x37, 0x69, 0x1e, 0x4e, 0x03, 0xa4, - 0x68, 0x21, 0x21, 0x0f, 0x04, 0x69, 0x9c, 0x5e, 0x14, 0x18, 0x90, 0x91, 0xc0, 0x71, 0xd7, 0x80, - 0x0f, 0x05, 0x0a, 0x81, 0x5e, 0x51, 0x0a, 0x61, 0x8a, 0x5c, 0x2c, 0xb9, 0x86, 0x75, 0xee, 0xa1, - 0xb7, 0xfe, 0x93, 0x9e, 0xda, 0x7f, 0xd3, 0x3f, 0xd2, 0x4b, 0x81, 0x62, 0x86, 0x5c, 0xf9, 0x51, - 0x18, 0x52, 0x6f, 0xcb, 0x99, 0xef, 0xfb, 0x38, 0x9c, 0x19, 0x0e, 0x17, 0x1e, 0xcf, 0x8d, 0x99, - 0x2b, 0x31, 0xe4, 0xb9, 0x1c, 0x8a, 0x8b, 0xbc, 0x18, 0x9e, 0x3f, 0xe5, 0x2a, 0xff, 0xc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0xe1, 0x6e, 0x66, - 0x16, 0xb7, 0x1e, 0x7a, 0xd4, 0x3d, 0xa6, 0x84, 0x1f, 0x61, 0x97, 0x1e, 0x45, 0x3f, 0xbd, 0x09, - 0xc0, 0xb9, 0x51, 0x5c, 0xcf, 0x07, 0xa6, 0x98, 0x0f, 0xe7, 0x42, 0x53, 0x0f, 0x0f, 0xbd, 0x8b, - 0xe7, 0xd2, 0xfe, 0xf7, 0xef, 0x73, 0x0f, 0x57, 0x7f, 0x47, 0xd1, 0x69, 0x8b, 0xb0, 0xcf, 0xff, - 0x0d, 0x00, 0x00, 0xff, 0xff, 0x9c, 0xa3, 0x50, 0xa2, 0xa8, 0x0a, 0x00, 0x00, + // 1134 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xcf, 0x6e, 0x1b, 0xb7, + 0x13, 0xd6, 0xea, 0x9f, 0xb5, 0x23, 0x5b, 0xf9, 0xfd, 0x88, 0xa2, 0x50, 0x36, 0x69, 0xe2, 0x38, + 0x35, 0x90, 0xa2, 0x85, 0x04, 0x3b, 0x41, 0x90, 0xc6, 0xe9, 0x45, 0xae, 0x0b, 0x19, 0x29, 0x1c, + 0x77, 0x5d, 0xf8, 0x50, 0xa0, 0x10, 0xe8, 0x15, 0xa5, 0x2c, 0x4c, 0x91, 0x8b, 0x25, 0xd7, 0xb0, + 0xce, 0x3d, 0xf4, 0xd6, 0x97, 0x69, 0x5f, 0xa0, 0xef, 0xd1, 0x07, 0xe9, 0xa5, 0x40, 0x31, 0x43, + 0xae, 0xfc, 0x0f, 0x86, 0xd4, 0x1b, 0x39, 0xfc, 0xbe, 0x8f, 0xc3, 0x99, 0xe1, 0x90, 0xb0, 0x3d, + 0xd5, 0x7a, 0x2a, 0x45, 0x9f, 0x67, 0x69, 0x5f, 0x5c, 0x66, 0x79, 0xff, 0x62, 0x87, 0xcb, 0xec, + 0x23, 0xdf, 0x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, 0x5b, 0x7d, 0x13, 0x6c, 0x65, 0xd0, 0x71, 0xbb, 0x94, 0x1a, 0x37, 0x4e, 0x18, 0xdc, 0x3a, + 0xe1, 0xa7, 0xd0, 0x74, 0x87, 0xf3, 0x42, 0x7e, 0x86, 0x2f, 0x27, 0x9e, 0x92, 0xaa, 0xb3, 0x11, + 0xd3, 0x18, 0xb1, 0x89, 0x96, 0xc5, 0x4c, 0x51, 0x3d, 0x36, 0x62, 0x3f, 0x1b, 0x28, 0x78, 0x9c, + 0xe8, 0xd9, 0xbd, 0x87, 0x1e, 0xb4, 0x4f, 0x28, 0xe0, 0xc7, 0x98, 0xd8, 0xe3, 0xe0, 0xa7, 0x77, + 0x1e, 0x38, 0xd5, 0x92, 0xab, 0x69, 0x4f, 0xe7, 0xd3, 0xfe, 0x54, 0x28, 0x4a, 0x7b, 0xdf, 0x2d, + 0xf1, 0x2c, 0x35, 0x77, 0xbf, 0xc4, 0x7b, 0x38, 0xfb, 0x3b, 0x08, 0xce, 0x9a, 0x84, 0x7d, 0xf9, + 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x25, 0xe3, 0xe8, 0x3d, 0x0b, 0x00, 0x00, } diff --git a/googleapis/api/expr/v1alpha1/value.pb.go b/googleapis/api/expr/v1alpha1/value.pb.go index 8a07dac6411f7b96e11dd3edba0870ab34d884eb..8a95b7d7f13eda25fcc686c2d99257c62f4567c6 100644 --- a/googleapis/api/expr/v1alpha1/value.pb.go +++ b/googleapis/api/expr/v1alpha1/value.pb.go @@ -22,76 +22,6 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package -// Builtin type designators for CEL primitive types. -type TypeValue_BasicType int32 - -const ( - // Unspecified type. - TypeValue_BASIC_TYPE_UNSPECIFIED TypeValue_BasicType = 0 - // The null type. - TypeValue_NULL_TYPE TypeValue_BasicType = 1 - // The boolean type. - TypeValue_BOOL_TYPE TypeValue_BasicType = 2 - // The signed integer type. - // - // Proto-based integer values are widened to int64. - TypeValue_INT_TYPE TypeValue_BasicType = 3 - // The unsigned integer type. - // - // Proto-based unsigned integer values are widened to uint64. - TypeValue_UINT_TYPE TypeValue_BasicType = 4 - // The double type. - // - // Proto-based float values are widened to double values. - TypeValue_DOUBLE_TYPE TypeValue_BasicType = 5 - // The string type. - TypeValue_STRING_TYPE TypeValue_BasicType = 6 - // The bytes type. - TypeValue_BYTES_TYPE TypeValue_BasicType = 7 - // The type type. - TypeValue_TYPE_TYPE TypeValue_BasicType = 8 - // The map type. - TypeValue_MAP_TYPE TypeValue_BasicType = 9 - // The list type. - TypeValue_LIST_TYPE TypeValue_BasicType = 10 -) - -var TypeValue_BasicType_name = map[int32]string{ - 0: "BASIC_TYPE_UNSPECIFIED", - 1: "NULL_TYPE", - 2: "BOOL_TYPE", - 3: "INT_TYPE", - 4: "UINT_TYPE", - 5: "DOUBLE_TYPE", - 6: "STRING_TYPE", - 7: "BYTES_TYPE", - 8: "TYPE_TYPE", - 9: "MAP_TYPE", - 10: "LIST_TYPE", -} - -var TypeValue_BasicType_value = map[string]int32{ - "BASIC_TYPE_UNSPECIFIED": 0, - "NULL_TYPE": 1, - "BOOL_TYPE": 2, - "INT_TYPE": 3, - "UINT_TYPE": 4, - "DOUBLE_TYPE": 5, - "STRING_TYPE": 6, - "BYTES_TYPE": 7, - "TYPE_TYPE": 8, - "MAP_TYPE": 9, - "LIST_TYPE": 10, -} - -func (x TypeValue_BasicType) String() string { - return proto.EnumName(TypeValue_BasicType_name, int32(x)) -} - -func (TypeValue_BasicType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_24bee359d1e5798a, []int{3, 0} -} - // Represents a CEL value. // // This is similar to `google.protobuf.Value`, but can represent CEL's full @@ -107,6 +37,7 @@ type Value struct { // *Value_DoubleValue // *Value_StringValue // *Value_BytesValue + // *Value_EnumValue // *Value_ObjectValue // *Value_MapValue // *Value_ListValue @@ -174,6 +105,10 @@ type Value_BytesValue struct { BytesValue []byte `protobuf:"bytes,7,opt,name=bytes_value,json=bytesValue,proto3,oneof"` } +type Value_EnumValue struct { + EnumValue *EnumValue `protobuf:"bytes,9,opt,name=enum_value,json=enumValue,proto3,oneof"` +} + type Value_ObjectValue struct { ObjectValue *any.Any `protobuf:"bytes,10,opt,name=object_value,json=objectValue,proto3,oneof"` } @@ -187,7 +122,7 @@ type Value_ListValue struct { } type Value_TypeValue struct { - TypeValue *TypeValue `protobuf:"bytes,15,opt,name=type_value,json=typeValue,proto3,oneof"` + TypeValue string `protobuf:"bytes,15,opt,name=type_value,json=typeValue,proto3,oneof"` } func (*Value_NullValue) isValue_Kind() {} @@ -204,6 +139,8 @@ func (*Value_StringValue) isValue_Kind() {} func (*Value_BytesValue) isValue_Kind() {} +func (*Value_EnumValue) isValue_Kind() {} + func (*Value_ObjectValue) isValue_Kind() {} func (*Value_MapValue) isValue_Kind() {} @@ -268,6 +205,13 @@ func (m *Value) GetBytesValue() []byte { return nil } +func (m *Value) GetEnumValue() *EnumValue { + if x, ok := m.GetKind().(*Value_EnumValue); ok { + return x.EnumValue + } + return nil +} + func (m *Value) GetObjectValue() *any.Any { if x, ok := m.GetKind().(*Value_ObjectValue); ok { return x.ObjectValue @@ -289,11 +233,11 @@ func (m *Value) GetListValue() *ListValue { return nil } -func (m *Value) GetTypeValue() *TypeValue { +func (m *Value) GetTypeValue() string { if x, ok := m.GetKind().(*Value_TypeValue); ok { return x.TypeValue } - return nil + return "" } // XXX_OneofFuncs is for the internal use of the proto package. @@ -306,6 +250,7 @@ func (*Value) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, (*Value_DoubleValue)(nil), (*Value_StringValue)(nil), (*Value_BytesValue)(nil), + (*Value_EnumValue)(nil), (*Value_ObjectValue)(nil), (*Value_MapValue)(nil), (*Value_ListValue)(nil), @@ -342,6 +287,11 @@ func _Value_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { case *Value_BytesValue: b.EncodeVarint(7<<3 | proto.WireBytes) b.EncodeRawBytes(x.BytesValue) + case *Value_EnumValue: + b.EncodeVarint(9<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.EnumValue); err != nil { + return err + } case *Value_ObjectValue: b.EncodeVarint(10<<3 | proto.WireBytes) if err := b.EncodeMessage(x.ObjectValue); err != nil { @@ -359,9 +309,7 @@ func _Value_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { } case *Value_TypeValue: b.EncodeVarint(15<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.TypeValue); err != nil { - return err - } + b.EncodeStringBytes(x.TypeValue) case nil: default: return fmt.Errorf("Value.Kind has unexpected type %T", x) @@ -421,6 +369,14 @@ func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) x, err := b.DecodeRawBytes(true) m.Kind = &Value_BytesValue{x} return true, err + case 9: // kind.enum_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(EnumValue) + err := b.DecodeMessage(msg) + m.Kind = &Value_EnumValue{msg} + return true, err case 10: // kind.object_value if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType @@ -449,9 +405,8 @@ func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } - msg := new(TypeValue) - err := b.DecodeMessage(msg) - m.Kind = &Value_TypeValue{msg} + x, err := b.DecodeStringBytes() + m.Kind = &Value_TypeValue{x} return true, err default: return false, nil @@ -485,6 +440,11 @@ func _Value_OneofSizer(msg proto.Message) (n int) { n += 1 // tag and wire n += proto.SizeVarint(uint64(len(x.BytesValue))) n += len(x.BytesValue) + case *Value_EnumValue: + s := proto.Size(x.EnumValue) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s case *Value_ObjectValue: s := proto.Size(x.ObjectValue) n += 1 // tag and wire @@ -501,10 +461,9 @@ func _Value_OneofSizer(msg proto.Message) (n int) { n += proto.SizeVarint(uint64(s)) n += s case *Value_TypeValue: - s := proto.Size(x.TypeValue) n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s + n += proto.SizeVarint(uint64(len(x.TypeValue))) + n += len(x.TypeValue) case nil: default: panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) @@ -512,6 +471,56 @@ func _Value_OneofSizer(msg proto.Message) (n int) { return n } +// An enum value. +type EnumValue struct { + // The fully qualified name of the enum type. + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + // The value of the enum. + Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EnumValue) Reset() { *m = EnumValue{} } +func (m *EnumValue) String() string { return proto.CompactTextString(m) } +func (*EnumValue) ProtoMessage() {} +func (*EnumValue) Descriptor() ([]byte, []int) { + return fileDescriptor_24bee359d1e5798a, []int{1} +} + +func (m *EnumValue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EnumValue.Unmarshal(m, b) +} +func (m *EnumValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EnumValue.Marshal(b, m, deterministic) +} +func (m *EnumValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_EnumValue.Merge(m, src) +} +func (m *EnumValue) XXX_Size() int { + return xxx_messageInfo_EnumValue.Size(m) +} +func (m *EnumValue) XXX_DiscardUnknown() { + xxx_messageInfo_EnumValue.DiscardUnknown(m) +} + +var xxx_messageInfo_EnumValue proto.InternalMessageInfo + +func (m *EnumValue) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *EnumValue) GetValue() int32 { + if m != nil { + return m.Value + } + return 0 +} + // A list. // // Wrapped in a message so 'not set' and empty can be differentiated, which is @@ -528,7 +537,7 @@ func (m *ListValue) Reset() { *m = ListValue{} } func (m *ListValue) String() string { return proto.CompactTextString(m) } func (*ListValue) ProtoMessage() {} func (*ListValue) Descriptor() ([]byte, []int) { - return fileDescriptor_24bee359d1e5798a, []int{1} + return fileDescriptor_24bee359d1e5798a, []int{2} } func (m *ListValue) XXX_Unmarshal(b []byte) error { @@ -575,7 +584,7 @@ func (m *MapValue) Reset() { *m = MapValue{} } func (m *MapValue) String() string { return proto.CompactTextString(m) } func (*MapValue) ProtoMessage() {} func (*MapValue) Descriptor() ([]byte, []int) { - return fileDescriptor_24bee359d1e5798a, []int{2} + return fileDescriptor_24bee359d1e5798a, []int{3} } func (m *MapValue) XXX_Unmarshal(b []byte) error { @@ -621,7 +630,7 @@ func (m *MapValue_Entry) Reset() { *m = MapValue_Entry{} } func (m *MapValue_Entry) String() string { return proto.CompactTextString(m) } func (*MapValue_Entry) ProtoMessage() {} func (*MapValue_Entry) Descriptor() ([]byte, []int) { - return fileDescriptor_24bee359d1e5798a, []int{2, 0} + return fileDescriptor_24bee359d1e5798a, []int{3, 0} } func (m *MapValue_Entry) XXX_Unmarshal(b []byte) error { @@ -656,158 +665,12 @@ func (m *MapValue_Entry) GetValue() *Value { return nil } -// A type value. -// -// TypeValue is trivially derivable from a Value. -type TypeValue struct { - // The type designator. - // - // Type designators are split into two categories due to representational - // and ease of use considerations. This split has no semantic implications. - // - // Types that are valid to be assigned to DesignatorKind: - // *TypeValue_BasicType_ - // *TypeValue_ObjectType - DesignatorKind isTypeValue_DesignatorKind `protobuf_oneof:"designator_kind"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TypeValue) Reset() { *m = TypeValue{} } -func (m *TypeValue) String() string { return proto.CompactTextString(m) } -func (*TypeValue) ProtoMessage() {} -func (*TypeValue) Descriptor() ([]byte, []int) { - return fileDescriptor_24bee359d1e5798a, []int{3} -} - -func (m *TypeValue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TypeValue.Unmarshal(m, b) -} -func (m *TypeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TypeValue.Marshal(b, m, deterministic) -} -func (m *TypeValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_TypeValue.Merge(m, src) -} -func (m *TypeValue) XXX_Size() int { - return xxx_messageInfo_TypeValue.Size(m) -} -func (m *TypeValue) XXX_DiscardUnknown() { - xxx_messageInfo_TypeValue.DiscardUnknown(m) -} - -var xxx_messageInfo_TypeValue proto.InternalMessageInfo - -type isTypeValue_DesignatorKind interface { - isTypeValue_DesignatorKind() -} - -type TypeValue_BasicType_ struct { - BasicType TypeValue_BasicType `protobuf:"varint,1,opt,name=basic_type,json=basicType,proto3,enum=google.api.expr.v1alpha1.TypeValue_BasicType,oneof"` -} - -type TypeValue_ObjectType struct { - ObjectType string `protobuf:"bytes,6,opt,name=object_type,json=objectType,proto3,oneof"` -} - -func (*TypeValue_BasicType_) isTypeValue_DesignatorKind() {} - -func (*TypeValue_ObjectType) isTypeValue_DesignatorKind() {} - -func (m *TypeValue) GetDesignatorKind() isTypeValue_DesignatorKind { - if m != nil { - return m.DesignatorKind - } - return nil -} - -func (m *TypeValue) GetBasicType() TypeValue_BasicType { - if x, ok := m.GetDesignatorKind().(*TypeValue_BasicType_); ok { - return x.BasicType - } - return TypeValue_BASIC_TYPE_UNSPECIFIED -} - -func (m *TypeValue) GetObjectType() string { - if x, ok := m.GetDesignatorKind().(*TypeValue_ObjectType); ok { - return x.ObjectType - } - return "" -} - -// XXX_OneofFuncs is for the internal use of the proto package. -func (*TypeValue) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _TypeValue_OneofMarshaler, _TypeValue_OneofUnmarshaler, _TypeValue_OneofSizer, []interface{}{ - (*TypeValue_BasicType_)(nil), - (*TypeValue_ObjectType)(nil), - } -} - -func _TypeValue_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*TypeValue) - // designator_kind - switch x := m.DesignatorKind.(type) { - case *TypeValue_BasicType_: - b.EncodeVarint(1<<3 | proto.WireVarint) - b.EncodeVarint(uint64(x.BasicType)) - case *TypeValue_ObjectType: - b.EncodeVarint(6<<3 | proto.WireBytes) - b.EncodeStringBytes(x.ObjectType) - case nil: - default: - return fmt.Errorf("TypeValue.DesignatorKind has unexpected type %T", x) - } - return nil -} - -func _TypeValue_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*TypeValue) - switch tag { - case 1: // designator_kind.basic_type - if wire != proto.WireVarint { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeVarint() - m.DesignatorKind = &TypeValue_BasicType_{TypeValue_BasicType(x)} - return true, err - case 6: // designator_kind.object_type - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.DesignatorKind = &TypeValue_ObjectType{x} - return true, err - default: - return false, nil - } -} - -func _TypeValue_OneofSizer(msg proto.Message) (n int) { - m := msg.(*TypeValue) - // designator_kind - switch x := m.DesignatorKind.(type) { - case *TypeValue_BasicType_: - n += 1 // tag and wire - n += proto.SizeVarint(uint64(x.BasicType)) - case *TypeValue_ObjectType: - n += 1 // tag and wire - n += proto.SizeVarint(uint64(len(x.ObjectType))) - n += len(x.ObjectType) - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - func init() { proto.RegisterType((*Value)(nil), "google.api.expr.v1alpha1.Value") + proto.RegisterType((*EnumValue)(nil), "google.api.expr.v1alpha1.EnumValue") proto.RegisterType((*ListValue)(nil), "google.api.expr.v1alpha1.ListValue") proto.RegisterType((*MapValue)(nil), "google.api.expr.v1alpha1.MapValue") proto.RegisterType((*MapValue_Entry)(nil), "google.api.expr.v1alpha1.MapValue.Entry") - proto.RegisterType((*TypeValue)(nil), "google.api.expr.v1alpha1.TypeValue") - proto.RegisterEnum("google.api.expr.v1alpha1.TypeValue_BasicType", TypeValue_BasicType_name, TypeValue_BasicType_value) } func init() { @@ -815,46 +678,38 @@ func init() { } var fileDescriptor_24bee359d1e5798a = []byte{ - // 656 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xcb, 0x6e, 0xd3, 0x40, - 0x14, 0x86, 0x33, 0xcd, 0xa5, 0xf1, 0x49, 0x68, 0xcb, 0x08, 0xa1, 0x12, 0x55, 0xaa, 0x49, 0x59, - 0x78, 0x83, 0xad, 0x96, 0x9b, 0x50, 0xd9, 0xc4, 0x4d, 0xa0, 0x91, 0xd2, 0x34, 0x72, 0x12, 0xa4, - 0xb2, 0x89, 0xec, 0xd4, 0x18, 0x53, 0xc7, 0x63, 0xec, 0x71, 0x85, 0xdf, 0x89, 0x87, 0x80, 0x77, - 0xe0, 0x61, 0x58, 0xa2, 0xb9, 0x99, 0x4b, 0x15, 0xb5, 0xbb, 0xfe, 0xe7, 0x7c, 0xff, 0x3f, 0xd3, - 0xe3, 0x33, 0x81, 0x27, 0x01, 0x21, 0x41, 0xe4, 0x5b, 0x6e, 0x12, 0x5a, 0xfe, 0xd7, 0x24, 0xb5, - 0xae, 0x0f, 0xdd, 0x28, 0xf9, 0xe4, 0x1e, 0x5a, 0xd7, 0x6e, 0x94, 0xfb, 0x66, 0x92, 0x12, 0x4a, - 0xf0, 0xae, 0xa0, 0x4c, 0x37, 0x09, 0x4d, 0x46, 0x99, 0x8a, 0xea, 0x3c, 0x92, 0x7e, 0xce, 0x79, - 0xf9, 0x47, 0xcb, 0x8d, 0x0b, 0x61, 0xea, 0xec, 0xfd, 0xdf, 0xca, 0x68, 0x9a, 0x2f, 0xa9, 0xe8, - 0x76, 0xbf, 0xd5, 0xa0, 0xfe, 0x9e, 0x1d, 0x81, 0x8f, 0x01, 0xe2, 0x3c, 0x8a, 0x16, 0xfc, 0xc0, - 0x5d, 0xa4, 0x23, 0x63, 0xeb, 0xa8, 0x63, 0xca, 0x13, 0x95, 0xd9, 0x1c, 0xe7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, 0x3e, 0xb7, 0x47, 0x03, 0x51, 0xa8, 0xb3, 0xc2, - 0x74, 0xe6, 0x0c, 0xc7, 0xef, 0x44, 0xa1, 0x81, 0xb7, 0x00, 0xec, 0x8b, 0xd9, 0x60, 0x2a, 0xf4, - 0x26, 0x0b, 0xe0, 0x57, 0xe0, 0xb2, 0xc9, 0xd2, 0xcf, 0x7a, 0x13, 0xa1, 0x34, 0xd6, 0x1c, 0x0d, - 0xa7, 0x32, 0x1d, 0xec, 0xfb, 0xb0, 0x7d, 0xe9, 0x67, 0x61, 0x10, 0xbb, 0x94, 0xa4, 0x0b, 0xb6, - 0x60, 0xf6, 0x0a, 0xf6, 0x96, 0x64, 0xb5, 0x76, 0x72, 0x36, 0xf0, 0xb1, 0x4d, 0xd8, 0xcb, 0x9b, - 0xa0, 0x0f, 0x6f, 0x24, 0x17, 0x90, 0xc8, 0x8d, 0x03, 0x93, 0xa4, 0x81, 0x15, 0xf8, 0x31, 0x7f, - 0x97, 0x96, 0x68, 0xb9, 0x49, 0x98, 0xdd, 0xfc, 0x55, 0x3d, 0x66, 0xea, 0x17, 0x42, 0x5e, 0x83, - 0xb3, 0xcf, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0x69, 0xe4, 0x15, 0x03, 0x80, 0x05, 0x00, 0x00, + // 518 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xcb, 0x6e, 0xd4, 0x30, + 0x14, 0x86, 0x6b, 0xe6, 0xd2, 0xc9, 0x99, 0x11, 0x48, 0x56, 0x17, 0xc3, 0xa8, 0x52, 0x43, 0xca, + 0x22, 0xab, 0x44, 0x33, 0x50, 0x10, 0x2a, 0x9b, 0x8e, 0x5a, 0x69, 0x16, 0x80, 0xaa, 0x2c, 0x58, + 0xb0, 0x41, 0xce, 0xd4, 0x84, 0x50, 0xc7, 0x0e, 0x89, 0x5d, 0x91, 0xc7, 0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xc9, 0x25, 0x17, 0x5c, 0x36, 0x5d, 0xe6, + 0x8d, 0x8b, 0xef, 0x30, 0x32, 0x0a, 0x5e, 0xc2, 0xe0, 0x9a, 0x76, 0xa6, 0x91, 0x07, 0xd4, 0xa3, + 0x59, 0x7c, 0x72, 0xbb, 0xd1, 0x07, 0x98, 0x2c, 0xbd, 0xae, 0xe0, 0x70, 0x2b, 0xaa, 0x9d, 0xf0, + 0x1a, 0x0c, 0x7d, 0xa9, 0x97, 0xe6, 0x12, 0x7d, 0x7a, 0xeb, 0xb8, 0x42, 0x30, 0xc2, 0x8b, 0x44, + 0x34, 0x45, 0x5a, 0x50, 0x6e, 0x56, 0x2a, 0xb5, 0x47, 0xa4, 0x2e, 0xdb, 0xbb, 0xbf, 0x95, 0x53, + 0x1d, 0xfd, 0x46, 0x28, 0x1f, 0x1b, 0xf6, 0xc5, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x53, + 0x8e, 0x99, 0x81, 0x04, 0x00, 0x00, } diff --git a/googleapis/api/expr/v1beta/value.pb.go b/googleapis/api/expr/v1beta/value.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..278815217f801b7130d72fc50778c90b5eb38fc8 --- /dev/null +++ b/googleapis/api/expr/v1beta/value.pb.go @@ -0,0 +1,715 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/api/expr/v1beta1/value.proto + +package expr + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + _struct "github.com/golang/protobuf/ptypes/struct" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Represents a CEL value. +// +// This is similar to `google.protobuf.Value`, but can represent CEL's full +// range of values. +type Value struct { + // Required. The valid kinds of values. + // + // Types that are valid to be assigned to Kind: + // *Value_NullValue + // *Value_BoolValue + // *Value_Int64Value + // *Value_Uint64Value + // *Value_DoubleValue + // *Value_StringValue + // *Value_BytesValue + // *Value_EnumValue + // *Value_ObjectValue + // *Value_MapValue + // *Value_ListValue + // *Value_TypeValue + Kind isValue_Kind `protobuf_oneof:"kind"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Value) Reset() { *m = Value{} } +func (m *Value) String() string { return proto.CompactTextString(m) } +func (*Value) ProtoMessage() {} +func (*Value) Descriptor() ([]byte, []int) { + return fileDescriptor_6677b81498dbb8ef, []int{0} +} + +func (m *Value) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Value.Unmarshal(m, b) +} +func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Value.Marshal(b, m, deterministic) +} +func (m *Value) XXX_Merge(src proto.Message) { + xxx_messageInfo_Value.Merge(m, src) +} +func (m *Value) XXX_Size() int { + return xxx_messageInfo_Value.Size(m) +} +func (m *Value) XXX_DiscardUnknown() { + xxx_messageInfo_Value.DiscardUnknown(m) +} + +var xxx_messageInfo_Value proto.InternalMessageInfo + +type isValue_Kind interface { + isValue_Kind() +} + +type Value_NullValue struct { + NullValue _struct.NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"` +} + +type Value_BoolValue struct { + BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"` +} + +type Value_Int64Value struct { + Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"` +} + +type Value_Uint64Value struct { + Uint64Value uint64 `protobuf:"varint,4,opt,name=uint64_value,json=uint64Value,proto3,oneof"` +} + +type Value_DoubleValue struct { + DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"` +} + +type Value_StringValue struct { + StringValue string `protobuf:"bytes,6,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type Value_BytesValue struct { + BytesValue []byte `protobuf:"bytes,7,opt,name=bytes_value,json=bytesValue,proto3,oneof"` +} + +type Value_EnumValue struct { + EnumValue *EnumValue `protobuf:"bytes,9,opt,name=enum_value,json=enumValue,proto3,oneof"` +} + +type Value_ObjectValue struct { + ObjectValue *any.Any `protobuf:"bytes,10,opt,name=object_value,json=objectValue,proto3,oneof"` +} + +type Value_MapValue struct { + MapValue *MapValue `protobuf:"bytes,11,opt,name=map_value,json=mapValue,proto3,oneof"` +} + +type Value_ListValue struct { + ListValue *ListValue `protobuf:"bytes,12,opt,name=list_value,json=listValue,proto3,oneof"` +} + +type Value_TypeValue struct { + TypeValue string `protobuf:"bytes,15,opt,name=type_value,json=typeValue,proto3,oneof"` +} + +func (*Value_NullValue) isValue_Kind() {} + +func (*Value_BoolValue) isValue_Kind() {} + +func (*Value_Int64Value) isValue_Kind() {} + +func (*Value_Uint64Value) isValue_Kind() {} + +func (*Value_DoubleValue) isValue_Kind() {} + +func (*Value_StringValue) isValue_Kind() {} + +func (*Value_BytesValue) isValue_Kind() {} + +func (*Value_EnumValue) isValue_Kind() {} + +func (*Value_ObjectValue) isValue_Kind() {} + +func (*Value_MapValue) isValue_Kind() {} + +func (*Value_ListValue) isValue_Kind() {} + +func (*Value_TypeValue) isValue_Kind() {} + +func (m *Value) GetKind() isValue_Kind { + if m != nil { + return m.Kind + } + return nil +} + +func (m *Value) GetNullValue() _struct.NullValue { + if x, ok := m.GetKind().(*Value_NullValue); ok { + return x.NullValue + } + return _struct.NullValue_NULL_VALUE +} + +func (m *Value) GetBoolValue() bool { + if x, ok := m.GetKind().(*Value_BoolValue); ok { + return x.BoolValue + } + return false +} + +func (m *Value) GetInt64Value() int64 { + if x, ok := m.GetKind().(*Value_Int64Value); ok { + return x.Int64Value + } + return 0 +} + +func (m *Value) GetUint64Value() uint64 { + if x, ok := m.GetKind().(*Value_Uint64Value); ok { + return x.Uint64Value + } + return 0 +} + +func (m *Value) GetDoubleValue() float64 { + if x, ok := m.GetKind().(*Value_DoubleValue); ok { + return x.DoubleValue + } + return 0 +} + +func (m *Value) GetStringValue() string { + if x, ok := m.GetKind().(*Value_StringValue); ok { + return x.StringValue + } + return "" +} + +func (m *Value) GetBytesValue() []byte { + if x, ok := m.GetKind().(*Value_BytesValue); ok { + return x.BytesValue + } + return nil +} + +func (m *Value) GetEnumValue() *EnumValue { + if x, ok := m.GetKind().(*Value_EnumValue); ok { + return x.EnumValue + } + return nil +} + +func (m *Value) GetObjectValue() *any.Any { + if x, ok := m.GetKind().(*Value_ObjectValue); ok { + return x.ObjectValue + } + return nil +} + +func (m *Value) GetMapValue() *MapValue { + if x, ok := m.GetKind().(*Value_MapValue); ok { + return x.MapValue + } + return nil +} + +func (m *Value) GetListValue() *ListValue { + if x, ok := m.GetKind().(*Value_ListValue); ok { + return x.ListValue + } + return nil +} + +func (m *Value) GetTypeValue() string { + if x, ok := m.GetKind().(*Value_TypeValue); ok { + return x.TypeValue + } + return "" +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Value) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Value_OneofMarshaler, _Value_OneofUnmarshaler, _Value_OneofSizer, []interface{}{ + (*Value_NullValue)(nil), + (*Value_BoolValue)(nil), + (*Value_Int64Value)(nil), + (*Value_Uint64Value)(nil), + (*Value_DoubleValue)(nil), + (*Value_StringValue)(nil), + (*Value_BytesValue)(nil), + (*Value_EnumValue)(nil), + (*Value_ObjectValue)(nil), + (*Value_MapValue)(nil), + (*Value_ListValue)(nil), + (*Value_TypeValue)(nil), + } +} + +func _Value_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Value) + // kind + switch x := m.Kind.(type) { + case *Value_NullValue: + b.EncodeVarint(1<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.NullValue)) + case *Value_BoolValue: + t := uint64(0) + if x.BoolValue { + t = 1 + } + b.EncodeVarint(2<<3 | proto.WireVarint) + b.EncodeVarint(t) + case *Value_Int64Value: + b.EncodeVarint(3<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.Int64Value)) + case *Value_Uint64Value: + b.EncodeVarint(4<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.Uint64Value)) + case *Value_DoubleValue: + b.EncodeVarint(5<<3 | proto.WireFixed64) + b.EncodeFixed64(math.Float64bits(x.DoubleValue)) + case *Value_StringValue: + b.EncodeVarint(6<<3 | proto.WireBytes) + b.EncodeStringBytes(x.StringValue) + case *Value_BytesValue: + b.EncodeVarint(7<<3 | proto.WireBytes) + b.EncodeRawBytes(x.BytesValue) + case *Value_EnumValue: + b.EncodeVarint(9<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.EnumValue); err != nil { + return err + } + case *Value_ObjectValue: + b.EncodeVarint(10<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ObjectValue); err != nil { + return err + } + case *Value_MapValue: + b.EncodeVarint(11<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.MapValue); err != nil { + return err + } + case *Value_ListValue: + b.EncodeVarint(12<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ListValue); err != nil { + return err + } + case *Value_TypeValue: + b.EncodeVarint(15<<3 | proto.WireBytes) + b.EncodeStringBytes(x.TypeValue) + case nil: + default: + return fmt.Errorf("Value.Kind has unexpected type %T", x) + } + return nil +} + +func _Value_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Value) + switch tag { + case 1: // kind.null_value + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Kind = &Value_NullValue{_struct.NullValue(x)} + return true, err + case 2: // kind.bool_value + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Kind = &Value_BoolValue{x != 0} + return true, err + case 3: // kind.int64_value + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Kind = &Value_Int64Value{int64(x)} + return true, err + case 4: // kind.uint64_value + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Kind = &Value_Uint64Value{x} + return true, err + case 5: // kind.double_value + if wire != proto.WireFixed64 { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeFixed64() + m.Kind = &Value_DoubleValue{math.Float64frombits(x)} + return true, err + case 6: // kind.string_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Kind = &Value_StringValue{x} + return true, err + case 7: // kind.bytes_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.Kind = &Value_BytesValue{x} + return true, err + case 9: // kind.enum_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(EnumValue) + err := b.DecodeMessage(msg) + m.Kind = &Value_EnumValue{msg} + return true, err + case 10: // kind.object_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(any.Any) + err := b.DecodeMessage(msg) + m.Kind = &Value_ObjectValue{msg} + return true, err + case 11: // kind.map_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(MapValue) + err := b.DecodeMessage(msg) + m.Kind = &Value_MapValue{msg} + return true, err + case 12: // kind.list_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ListValue) + err := b.DecodeMessage(msg) + m.Kind = &Value_ListValue{msg} + return true, err + case 15: // kind.type_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.Kind = &Value_TypeValue{x} + return true, err + default: + return false, nil + } +} + +func _Value_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Value) + // kind + switch x := m.Kind.(type) { + case *Value_NullValue: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.NullValue)) + case *Value_BoolValue: + n += 1 // tag and wire + n += 1 + case *Value_Int64Value: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.Int64Value)) + case *Value_Uint64Value: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.Uint64Value)) + case *Value_DoubleValue: + n += 1 // tag and wire + n += 8 + case *Value_StringValue: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.StringValue))) + n += len(x.StringValue) + case *Value_BytesValue: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.BytesValue))) + n += len(x.BytesValue) + case *Value_EnumValue: + s := proto.Size(x.EnumValue) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Value_ObjectValue: + s := proto.Size(x.ObjectValue) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Value_MapValue: + s := proto.Size(x.MapValue) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Value_ListValue: + s := proto.Size(x.ListValue) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Value_TypeValue: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.TypeValue))) + n += len(x.TypeValue) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// An enum value. +type EnumValue struct { + // The fully qualified name of the enum type. + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + // The value of the enum. + Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EnumValue) Reset() { *m = EnumValue{} } +func (m *EnumValue) String() string { return proto.CompactTextString(m) } +func (*EnumValue) ProtoMessage() {} +func (*EnumValue) Descriptor() ([]byte, []int) { + return fileDescriptor_6677b81498dbb8ef, []int{1} +} + +func (m *EnumValue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EnumValue.Unmarshal(m, b) +} +func (m *EnumValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EnumValue.Marshal(b, m, deterministic) +} +func (m *EnumValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_EnumValue.Merge(m, src) +} +func (m *EnumValue) XXX_Size() int { + return xxx_messageInfo_EnumValue.Size(m) +} +func (m *EnumValue) XXX_DiscardUnknown() { + xxx_messageInfo_EnumValue.DiscardUnknown(m) +} + +var xxx_messageInfo_EnumValue proto.InternalMessageInfo + +func (m *EnumValue) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *EnumValue) GetValue() int32 { + if m != nil { + return m.Value + } + return 0 +} + +// A list. +// +// Wrapped in a message so 'not set' and empty can be differentiated, which is +// required for use in a 'oneof'. +type ListValue struct { + // The ordered values in the list. + Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListValue) Reset() { *m = ListValue{} } +func (m *ListValue) String() string { return proto.CompactTextString(m) } +func (*ListValue) ProtoMessage() {} +func (*ListValue) Descriptor() ([]byte, []int) { + return fileDescriptor_6677b81498dbb8ef, []int{2} +} + +func (m *ListValue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListValue.Unmarshal(m, b) +} +func (m *ListValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListValue.Marshal(b, m, deterministic) +} +func (m *ListValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListValue.Merge(m, src) +} +func (m *ListValue) XXX_Size() int { + return xxx_messageInfo_ListValue.Size(m) +} +func (m *ListValue) XXX_DiscardUnknown() { + xxx_messageInfo_ListValue.DiscardUnknown(m) +} + +var xxx_messageInfo_ListValue proto.InternalMessageInfo + +func (m *ListValue) GetValues() []*Value { + if m != nil { + return m.Values + } + return nil +} + +// A map. +// +// Wrapped in a message so 'not set' and empty can be differentiated, which is +// required for use in a 'oneof'. +type MapValue struct { + // The set of map entries. + // + // CEL has fewer restrictions on keys, so a protobuf map represenation + // cannot be used. + Entries []*MapValue_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MapValue) Reset() { *m = MapValue{} } +func (m *MapValue) String() string { return proto.CompactTextString(m) } +func (*MapValue) ProtoMessage() {} +func (*MapValue) Descriptor() ([]byte, []int) { + return fileDescriptor_6677b81498dbb8ef, []int{3} +} + +func (m *MapValue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MapValue.Unmarshal(m, b) +} +func (m *MapValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MapValue.Marshal(b, m, deterministic) +} +func (m *MapValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_MapValue.Merge(m, src) +} +func (m *MapValue) XXX_Size() int { + return xxx_messageInfo_MapValue.Size(m) +} +func (m *MapValue) XXX_DiscardUnknown() { + xxx_messageInfo_MapValue.DiscardUnknown(m) +} + +var xxx_messageInfo_MapValue proto.InternalMessageInfo + +func (m *MapValue) GetEntries() []*MapValue_Entry { + if m != nil { + return m.Entries + } + return nil +} + +// An entry in the map. +type MapValue_Entry struct { + // The key. + // + // Must be unique with in the map. + // Currently only boolean, int, uint, and string values can be keys. + Key *Value `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // The value. + Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *MapValue_Entry) Reset() { *m = MapValue_Entry{} } +func (m *MapValue_Entry) String() string { return proto.CompactTextString(m) } +func (*MapValue_Entry) ProtoMessage() {} +func (*MapValue_Entry) Descriptor() ([]byte, []int) { + return fileDescriptor_6677b81498dbb8ef, []int{3, 0} +} + +func (m *MapValue_Entry) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_MapValue_Entry.Unmarshal(m, b) +} +func (m *MapValue_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_MapValue_Entry.Marshal(b, m, deterministic) +} +func (m *MapValue_Entry) XXX_Merge(src proto.Message) { + xxx_messageInfo_MapValue_Entry.Merge(m, src) +} +func (m *MapValue_Entry) XXX_Size() int { + return xxx_messageInfo_MapValue_Entry.Size(m) +} +func (m *MapValue_Entry) XXX_DiscardUnknown() { + xxx_messageInfo_MapValue_Entry.DiscardUnknown(m) +} + +var xxx_messageInfo_MapValue_Entry proto.InternalMessageInfo + +func (m *MapValue_Entry) GetKey() *Value { + if m != nil { + return m.Key + } + return nil +} + +func (m *MapValue_Entry) GetValue() *Value { + if m != nil { + return m.Value + } + return nil +} + +func init() { + proto.RegisterType((*Value)(nil), "google.api.expr.v1beta1.Value") + proto.RegisterType((*EnumValue)(nil), "google.api.expr.v1beta1.EnumValue") + proto.RegisterType((*ListValue)(nil), "google.api.expr.v1beta1.ListValue") + proto.RegisterType((*MapValue)(nil), "google.api.expr.v1beta1.MapValue") + proto.RegisterType((*MapValue_Entry)(nil), "google.api.expr.v1beta1.MapValue.Entry") +} + +func init() { + proto.RegisterFile("google/api/expr/v1beta1/value.proto", fileDescriptor_6677b81498dbb8ef) +} + +var fileDescriptor_6677b81498dbb8ef = []byte{ + // 518 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0xcb, 0x6e, 0xd4, 0x3c, + 0x14, 0xc7, 0xc7, 0xdf, 0x5c, 0x3a, 0x39, 0x33, 0xfa, 0x90, 0xac, 0x4a, 0x94, 0x01, 0x41, 0x9a, + 0x2e, 0xc8, 0xca, 0xa1, 0x43, 0xa9, 0x04, 0xdd, 0xd0, 0xa9, 0x2a, 0xcd, 0x02, 0x50, 0x95, 0x05, + 0x0b, 0x36, 0x28, 0x99, 0x9a, 0x28, 0xad, 0x63, 0x47, 0x89, 0x5d, 0x91, 0x97, 0xe3, 0x01, 0x78, + 0x22, 0x96, 0xc8, 0xb7, 0x50, 0x8a, 0x46, 0xb3, 0xf3, 0xf9, 0xfb, 0xf7, 0xf7, 0xb9, 0xe4, 0x28, + 0x70, 0x54, 0x08, 0x51, 0x30, 0x9a, 0x64, 0x75, 0x99, 0xd0, 0xef, 0x75, 0x93, 0xdc, 0x1d, 0xe7, + 0x54, 0x66, 0xc7, 0xc9, 0x5d, 0xc6, 0x14, 0x25, 0x75, 0x23, 0xa4, 0xc0, 0x8f, 0x2d, 0x44, 0xb2, + 0xba, 0x24, 0x1a, 0x22, 0x0e, 0x5a, 0x3c, 0x71, 0x6e, 0x83, 0xe5, 0xea, 0x5b, 0x92, 0xf1, 0xce, + 0x7a, 0x16, 0xcf, 0x1e, 0x5e, 0xb5, 0xb2, 0x51, 0x1b, 0x69, 0x6f, 0xa3, 0x9f, 0x23, 0x18, 0x7f, + 0xd6, 0x19, 0xf0, 0x19, 0x00, 0x57, 0x8c, 0x7d, 0x35, 0xf9, 0x0e, 0x50, 0x88, 0xe2, 0xff, 0x97, + 0x0b, 0xe2, 0x12, 0x7a, 0x33, 0xf9, 0xa4, 0x18, 0x33, 0xfc, 0x7a, 0x90, 0x06, 0xdc, 0x07, 0xf8, + 0x05, 0x40, 0x2e, 0x84, 0x37, 0xff, 0x17, 0xa2, 0x78, 0xaa, 0x01, 0xad, 0x59, 0xe0, 0x10, 0x66, + 0x25, 0x97, 0xa7, 0x27, 0x8e, 0x18, 0x86, 0x28, 0x1e, 0xae, 0x07, 0x29, 0x18, 0xd1, 0x22, 0x47, + 0x30, 0x57, 0xf7, 0x99,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, 0xa3, 0xb6, 0x07, 0x28, 0x1c, 0xc6, + 0xb3, 0xe5, 0xf3, 0xad, 0xd5, 0x1a, 0x3e, 0x75, 0x74, 0xf4, 0x03, 0xc1, 0xd4, 0x8f, 0x00, 0x9f, + 0xc3, 0x1e, 0xe5, 0xb2, 0x29, 0xfb, 0x57, 0x5e, 0xee, 0x1c, 0x1b, 0xb9, 0xe4, 0xb2, 0xe9, 0x52, + 0xef, 0x5b, 0x08, 0x18, 0x1b, 0x05, 0xbf, 0x82, 0xe1, 0x2d, 0xed, 0x4c, 0x1b, 0xbb, 0xab, 0xd1, + 0x28, 0x3e, 0xb9, 0xdf, 0xe5, 0x6e, 0x8f, 0x85, 0x57, 0x37, 0xf0, 0x74, 0x23, 0xaa, 0x6d, 0xec, + 0x0a, 0x0c, 0x7c, 0xa5, 0xb7, 0xe5, 0x0a, 0x7d, 0x79, 0xe7, 0xb0, 0x42, 0xb0, 0x8c, 0x17, 0x44, + 0x34, 0x45, 0x52, 0x50, 0x6e, 0x76, 0x29, 0xb1, 0x57, 0x59, 0x5d, 0xb6, 0x0f, 0x7f, 0x26, 0x67, + 0xfa, 0xfc, 0x0b, 0xa1, 0x7c, 0x62, 0xc8, 0xd7, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb4, 0x21, + 0xa3, 0x4c, 0x75, 0x04, 0x00, 0x00, +} diff --git a/googleapis/api/expr/v1beta1/decl.pb.go b/googleapis/api/expr/v1beta1/decl.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..5a193e6f96a66362fe0d8d017af7f57005319d58 --- /dev/null +++ b/googleapis/api/expr/v1beta1/decl.pb.go @@ -0,0 +1,407 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/api/expr/v1beta1/decl.proto + +package expr + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// A declaration. +type Decl struct { + // The id of the declaration. + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // The name of the declaration. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // The documentation string for the declaration. + Doc string `protobuf:"bytes,3,opt,name=doc,proto3" json:"doc,omitempty"` + // The kind of declaration. + // + // Types that are valid to be assigned to Kind: + // *Decl_Ident + // *Decl_Function + Kind isDecl_Kind `protobuf_oneof:"kind"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Decl) Reset() { *m = Decl{} } +func (m *Decl) String() string { return proto.CompactTextString(m) } +func (*Decl) ProtoMessage() {} +func (*Decl) Descriptor() ([]byte, []int) { + return fileDescriptor_7b13a6b7649d2726, []int{0} +} + +func (m *Decl) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Decl.Unmarshal(m, b) +} +func (m *Decl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Decl.Marshal(b, m, deterministic) +} +func (m *Decl) XXX_Merge(src proto.Message) { + xxx_messageInfo_Decl.Merge(m, src) +} +func (m *Decl) XXX_Size() int { + return xxx_messageInfo_Decl.Size(m) +} +func (m *Decl) XXX_DiscardUnknown() { + xxx_messageInfo_Decl.DiscardUnknown(m) +} + +var xxx_messageInfo_Decl proto.InternalMessageInfo + +func (m *Decl) GetId() int32 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *Decl) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *Decl) GetDoc() string { + if m != nil { + return m.Doc + } + return "" +} + +type isDecl_Kind interface { + isDecl_Kind() +} + +type Decl_Ident struct { + Ident *IdentDecl `protobuf:"bytes,4,opt,name=ident,proto3,oneof"` +} + +type Decl_Function struct { + Function *FunctionDecl `protobuf:"bytes,5,opt,name=function,proto3,oneof"` +} + +func (*Decl_Ident) isDecl_Kind() {} + +func (*Decl_Function) isDecl_Kind() {} + +func (m *Decl) GetKind() isDecl_Kind { + if m != nil { + return m.Kind + } + return nil +} + +func (m *Decl) GetIdent() *IdentDecl { + if x, ok := m.GetKind().(*Decl_Ident); ok { + return x.Ident + } + return nil +} + +func (m *Decl) GetFunction() *FunctionDecl { + if x, ok := m.GetKind().(*Decl_Function); ok { + return x.Function + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Decl) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Decl_OneofMarshaler, _Decl_OneofUnmarshaler, _Decl_OneofSizer, []interface{}{ + (*Decl_Ident)(nil), + (*Decl_Function)(nil), + } +} + +func _Decl_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Decl) + // kind + switch x := m.Kind.(type) { + case *Decl_Ident: + b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Ident); err != nil { + return err + } + case *Decl_Function: + b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Function); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Decl.Kind has unexpected type %T", x) + } + return nil +} + +func _Decl_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Decl) + switch tag { + case 4: // kind.ident + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(IdentDecl) + err := b.DecodeMessage(msg) + m.Kind = &Decl_Ident{msg} + return true, err + case 5: // kind.function + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(FunctionDecl) + err := b.DecodeMessage(msg) + m.Kind = &Decl_Function{msg} + return true, err + default: + return false, nil + } +} + +func _Decl_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Decl) + // kind + switch x := m.Kind.(type) { + case *Decl_Ident: + s := proto.Size(x.Ident) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Decl_Function: + s := proto.Size(x.Function) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// The declared type of a variable. +// +// Extends runtime type values with extra information used for type checking +// and dispatching. +type DeclType struct { + // The expression id of the declared type, if applicable. + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // The type name, e.g. 'int', 'my.type.Type' or 'T' + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + // An ordered list of type parameters, e.g. `<string, int>`. + // Only applies to a subset of types, e.g. `map`, `list`. + TypeParams []*DeclType `protobuf:"bytes,4,rep,name=type_params,json=typeParams,proto3" json:"type_params,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeclType) Reset() { *m = DeclType{} } +func (m *DeclType) String() string { return proto.CompactTextString(m) } +func (*DeclType) ProtoMessage() {} +func (*DeclType) Descriptor() ([]byte, []int) { + return fileDescriptor_7b13a6b7649d2726, []int{1} +} + +func (m *DeclType) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeclType.Unmarshal(m, b) +} +func (m *DeclType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeclType.Marshal(b, m, deterministic) +} +func (m *DeclType) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeclType.Merge(m, src) +} +func (m *DeclType) XXX_Size() int { + return xxx_messageInfo_DeclType.Size(m) +} +func (m *DeclType) XXX_DiscardUnknown() { + xxx_messageInfo_DeclType.DiscardUnknown(m) +} + +var xxx_messageInfo_DeclType proto.InternalMessageInfo + +func (m *DeclType) GetId() int32 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *DeclType) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *DeclType) GetTypeParams() []*DeclType { + if m != nil { + return m.TypeParams + } + return nil +} + +// An identifier declaration. +type IdentDecl struct { + // Optional type of the identifier. + Type *DeclType `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + // Optional value of the identifier. + Value *Expr `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IdentDecl) Reset() { *m = IdentDecl{} } +func (m *IdentDecl) String() string { return proto.CompactTextString(m) } +func (*IdentDecl) ProtoMessage() {} +func (*IdentDecl) Descriptor() ([]byte, []int) { + return fileDescriptor_7b13a6b7649d2726, []int{2} +} + +func (m *IdentDecl) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IdentDecl.Unmarshal(m, b) +} +func (m *IdentDecl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IdentDecl.Marshal(b, m, deterministic) +} +func (m *IdentDecl) XXX_Merge(src proto.Message) { + xxx_messageInfo_IdentDecl.Merge(m, src) +} +func (m *IdentDecl) XXX_Size() int { + return xxx_messageInfo_IdentDecl.Size(m) +} +func (m *IdentDecl) XXX_DiscardUnknown() { + xxx_messageInfo_IdentDecl.DiscardUnknown(m) +} + +var xxx_messageInfo_IdentDecl proto.InternalMessageInfo + +func (m *IdentDecl) GetType() *DeclType { + if m != nil { + return m.Type + } + return nil +} + +func (m *IdentDecl) GetValue() *Expr { + if m != nil { + return m.Value + } + return nil +} + +// A function declaration. +type FunctionDecl struct { + // The function arguments. + Args []*IdentDecl `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"` + // Optional declared return type. + ReturnType *DeclType `protobuf:"bytes,2,opt,name=return_type,json=returnType,proto3" json:"return_type,omitempty"` + // If the first argument of the function is the receiver. + ReceiverFunction bool `protobuf:"varint,3,opt,name=receiver_function,json=receiverFunction,proto3" json:"receiver_function,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FunctionDecl) Reset() { *m = FunctionDecl{} } +func (m *FunctionDecl) String() string { return proto.CompactTextString(m) } +func (*FunctionDecl) ProtoMessage() {} +func (*FunctionDecl) Descriptor() ([]byte, []int) { + return fileDescriptor_7b13a6b7649d2726, []int{3} +} + +func (m *FunctionDecl) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FunctionDecl.Unmarshal(m, b) +} +func (m *FunctionDecl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FunctionDecl.Marshal(b, m, deterministic) +} +func (m *FunctionDecl) XXX_Merge(src proto.Message) { + xxx_messageInfo_FunctionDecl.Merge(m, src) +} +func (m *FunctionDecl) XXX_Size() int { + return xxx_messageInfo_FunctionDecl.Size(m) +} +func (m *FunctionDecl) XXX_DiscardUnknown() { + xxx_messageInfo_FunctionDecl.DiscardUnknown(m) +} + +var xxx_messageInfo_FunctionDecl proto.InternalMessageInfo + +func (m *FunctionDecl) GetArgs() []*IdentDecl { + if m != nil { + return m.Args + } + return nil +} + +func (m *FunctionDecl) GetReturnType() *DeclType { + if m != nil { + return m.ReturnType + } + return nil +} + +func (m *FunctionDecl) GetReceiverFunction() bool { + if m != nil { + return m.ReceiverFunction + } + return false +} + +func init() { + proto.RegisterType((*Decl)(nil), "google.api.expr.v1beta1.Decl") + proto.RegisterType((*DeclType)(nil), "google.api.expr.v1beta1.DeclType") + proto.RegisterType((*IdentDecl)(nil), "google.api.expr.v1beta1.IdentDecl") + proto.RegisterType((*FunctionDecl)(nil), "google.api.expr.v1beta1.FunctionDecl") +} + +func init() { proto.RegisterFile("google/api/expr/v1beta1/decl.proto", fileDescriptor_7b13a6b7649d2726) } + +var fileDescriptor_7b13a6b7649d2726 = []byte{ + // 398 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcd, 0x4a, 0xeb, 0x40, + 0x14, 0xc7, 0xef, 0x34, 0x49, 0x69, 0x4f, 0x2f, 0x97, 0xde, 0xd9, 0xdc, 0x70, 0x45, 0x88, 0x01, + 0x21, 0x20, 0x24, 0xb4, 0x45, 0x17, 0x76, 0x17, 0x3f, 0xd0, 0x5d, 0x09, 0xae, 0xdc, 0x94, 0x69, + 0x32, 0x86, 0xd1, 0x74, 0x66, 0x98, 0xa6, 0xb5, 0x7d, 0x32, 0x9f, 0xc0, 0x77, 0x72, 0x29, 0x33, + 0x49, 0x83, 0xa0, 0x81, 0xae, 0x7a, 0x9a, 0xf3, 0xff, 0x9d, 0x8f, 0xff, 0x1c, 0xf0, 0x73, 0x21, + 0xf2, 0x82, 0x46, 0x44, 0xb2, 0x88, 0x6e, 0xa5, 0x8a, 0x36, 0xa3, 0x05, 0x2d, 0xc9, 0x28, 0xca, + 0x68, 0x5a, 0x84, 0x52, 0x89, 0x52, 0xe0, 0x7f, 0x95, 0x26, 0x24, 0x92, 0x85, 0x5a, 0x13, 0xd6, + 0x9a, 0xff, 0xad, 0xb0, 0x51, 0x19, 0xd8, 0x7f, 0x47, 0x60, 0x5f, 0xd3, 0xb4, 0xc0, 0x7f, 0xa0, + 0xc3, 0x32, 0x17, 0x79, 0x28, 0x70, 0x92, 0x0e, 0xcb, 0x30, 0x06, 0x9b, 0x93, 0x25, 0x75, 0x3b, + 0x1e, 0x0a, 0xfa, 0x89, 0x89, 0xf1, 0x10, 0xac, 0x4c, 0xa4, 0xae, 0x65, 0x3e, 0xe9, 0x10, 0x5f, + 0x82, 0xc3, 0x32, 0xca, 0x4b, 0xd7, 0xf6, 0x50, 0x30, 0x18, 0xfb, 0x61, 0xcb, 0x2c, 0xe1, 0xbd, + 0x56, 0xe9, 0x46, 0x77, 0xbf, 0x92, 0x0a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, 0x72, 0xca, 0xcd, 0xd9, 0x46, + 0x55, 0x8a, 0x48, 0xb6, 0xfa, 0x76, 0xdd, 0x53, 0xfd, 0xe7, 0x03, 0xa1, 0x45, 0xd7, 0x48, 0x27, + 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x10, 0x20, 0xb6, 0xbc, 0x44, 0x03, 0x00, 0x00, +} diff --git a/googleapis/api/expr/v1beta1/eval.pb.go b/googleapis/api/expr/v1beta1/eval.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..1f2f22ec8d5aa964a5c3f9edaa70eed369bc6d7e --- /dev/null +++ b/googleapis/api/expr/v1beta1/eval.pb.go @@ -0,0 +1,477 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/api/expr/v1beta1/eval.proto + +package expr + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + v1beta "google.golang.org/genproto/googleapis/api/expr/v1beta" + status "google.golang.org/genproto/googleapis/rpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// The state of an evaluation. +// +// Can represent an initial, partial, or completed state of evaluation. +type EvalState struct { + // The unique values referenced in this message. + Values []*ExprValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` + // An ordered list of results. + // + // Tracks the flow of evaluation through the expression. + // May be sparse. + Results []*EvalState_Result `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EvalState) Reset() { *m = EvalState{} } +func (m *EvalState) String() string { return proto.CompactTextString(m) } +func (*EvalState) ProtoMessage() {} +func (*EvalState) Descriptor() ([]byte, []int) { + return fileDescriptor_5cf79b1c58929ac8, []int{0} +} + +func (m *EvalState) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EvalState.Unmarshal(m, b) +} +func (m *EvalState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EvalState.Marshal(b, m, deterministic) +} +func (m *EvalState) XXX_Merge(src proto.Message) { + xxx_messageInfo_EvalState.Merge(m, src) +} +func (m *EvalState) XXX_Size() int { + return xxx_messageInfo_EvalState.Size(m) +} +func (m *EvalState) XXX_DiscardUnknown() { + xxx_messageInfo_EvalState.DiscardUnknown(m) +} + +var xxx_messageInfo_EvalState proto.InternalMessageInfo + +func (m *EvalState) GetValues() []*ExprValue { + if m != nil { + return m.Values + } + return nil +} + +func (m *EvalState) GetResults() []*EvalState_Result { + if m != nil { + return m.Results + } + return nil +} + +// A single evaluation result. +type EvalState_Result struct { + // The expression this result is for. + Expr *IdRef `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"` + // The index in `values` of the resulting value. + Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *EvalState_Result) Reset() { *m = EvalState_Result{} } +func (m *EvalState_Result) String() string { return proto.CompactTextString(m) } +func (*EvalState_Result) ProtoMessage() {} +func (*EvalState_Result) Descriptor() ([]byte, []int) { + return fileDescriptor_5cf79b1c58929ac8, []int{0, 0} +} + +func (m *EvalState_Result) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_EvalState_Result.Unmarshal(m, b) +} +func (m *EvalState_Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_EvalState_Result.Marshal(b, m, deterministic) +} +func (m *EvalState_Result) XXX_Merge(src proto.Message) { + xxx_messageInfo_EvalState_Result.Merge(m, src) +} +func (m *EvalState_Result) XXX_Size() int { + return xxx_messageInfo_EvalState_Result.Size(m) +} +func (m *EvalState_Result) XXX_DiscardUnknown() { + xxx_messageInfo_EvalState_Result.DiscardUnknown(m) +} + +var xxx_messageInfo_EvalState_Result proto.InternalMessageInfo + +func (m *EvalState_Result) GetExpr() *IdRef { + if m != nil { + return m.Expr + } + return nil +} + +func (m *EvalState_Result) GetValue() int32 { + if m != nil { + return m.Value + } + return 0 +} + +// The value of an evaluated expression. +type ExprValue struct { + // An expression can resolve to a value, error or unknown. + // + // Types that are valid to be assigned to Kind: + // *ExprValue_Value + // *ExprValue_Error + // *ExprValue_Unknown + Kind isExprValue_Kind `protobuf_oneof:"kind"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ExprValue) Reset() { *m = ExprValue{} } +func (m *ExprValue) String() string { return proto.CompactTextString(m) } +func (*ExprValue) ProtoMessage() {} +func (*ExprValue) Descriptor() ([]byte, []int) { + return fileDescriptor_5cf79b1c58929ac8, []int{1} +} + +func (m *ExprValue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ExprValue.Unmarshal(m, b) +} +func (m *ExprValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ExprValue.Marshal(b, m, deterministic) +} +func (m *ExprValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExprValue.Merge(m, src) +} +func (m *ExprValue) XXX_Size() int { + return xxx_messageInfo_ExprValue.Size(m) +} +func (m *ExprValue) XXX_DiscardUnknown() { + xxx_messageInfo_ExprValue.DiscardUnknown(m) +} + +var xxx_messageInfo_ExprValue proto.InternalMessageInfo + +type isExprValue_Kind interface { + isExprValue_Kind() +} + +type ExprValue_Value struct { + Value *v1beta.Value `protobuf:"bytes,1,opt,name=value,proto3,oneof"` +} + +type ExprValue_Error struct { + Error *ErrorSet `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +} + +type ExprValue_Unknown struct { + Unknown *UnknownSet `protobuf:"bytes,3,opt,name=unknown,proto3,oneof"` +} + +func (*ExprValue_Value) isExprValue_Kind() {} + +func (*ExprValue_Error) isExprValue_Kind() {} + +func (*ExprValue_Unknown) isExprValue_Kind() {} + +func (m *ExprValue) GetKind() isExprValue_Kind { + if m != nil { + return m.Kind + } + return nil +} + +func (m *ExprValue) GetValue() *v1beta.Value { + if x, ok := m.GetKind().(*ExprValue_Value); ok { + return x.Value + } + return nil +} + +func (m *ExprValue) GetError() *ErrorSet { + if x, ok := m.GetKind().(*ExprValue_Error); ok { + return x.Error + } + return nil +} + +func (m *ExprValue) GetUnknown() *UnknownSet { + if x, ok := m.GetKind().(*ExprValue_Unknown); ok { + return x.Unknown + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*ExprValue) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _ExprValue_OneofMarshaler, _ExprValue_OneofUnmarshaler, _ExprValue_OneofSizer, []interface{}{ + (*ExprValue_Value)(nil), + (*ExprValue_Error)(nil), + (*ExprValue_Unknown)(nil), + } +} + +func _ExprValue_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*ExprValue) + // kind + switch x := m.Kind.(type) { + case *ExprValue_Value: + b.EncodeVarint(1<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Value); err != nil { + return err + } + case *ExprValue_Error: + b.EncodeVarint(2<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Error); err != nil { + return err + } + case *ExprValue_Unknown: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.Unknown); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("ExprValue.Kind has unexpected type %T", x) + } + return nil +} + +func _ExprValue_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*ExprValue) + switch tag { + case 1: // kind.value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(v1beta.Value) + err := b.DecodeMessage(msg) + m.Kind = &ExprValue_Value{msg} + return true, err + case 2: // kind.error + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(ErrorSet) + err := b.DecodeMessage(msg) + m.Kind = &ExprValue_Error{msg} + return true, err + case 3: // kind.unknown + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(UnknownSet) + err := b.DecodeMessage(msg) + m.Kind = &ExprValue_Unknown{msg} + return true, err + default: + return false, nil + } +} + +func _ExprValue_OneofSizer(msg proto.Message) (n int) { + m := msg.(*ExprValue) + // kind + switch x := m.Kind.(type) { + case *ExprValue_Value: + s := proto.Size(x.Value) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *ExprValue_Error: + s := proto.Size(x.Error) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *ExprValue_Unknown: + s := proto.Size(x.Unknown) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// A set of errors. +// +// The errors included depend on the context. See `ExprValue.error`. +type ErrorSet struct { + // The errors in the set. + Errors []*status.Status `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ErrorSet) Reset() { *m = ErrorSet{} } +func (m *ErrorSet) String() string { return proto.CompactTextString(m) } +func (*ErrorSet) ProtoMessage() {} +func (*ErrorSet) Descriptor() ([]byte, []int) { + return fileDescriptor_5cf79b1c58929ac8, []int{2} +} + +func (m *ErrorSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ErrorSet.Unmarshal(m, b) +} +func (m *ErrorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ErrorSet.Marshal(b, m, deterministic) +} +func (m *ErrorSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_ErrorSet.Merge(m, src) +} +func (m *ErrorSet) XXX_Size() int { + return xxx_messageInfo_ErrorSet.Size(m) +} +func (m *ErrorSet) XXX_DiscardUnknown() { + xxx_messageInfo_ErrorSet.DiscardUnknown(m) +} + +var xxx_messageInfo_ErrorSet proto.InternalMessageInfo + +func (m *ErrorSet) GetErrors() []*status.Status { + if m != nil { + return m.Errors + } + return nil +} + +// A set of expressions for which the value is unknown. +// +// The unknowns included depend on the context. See `ExprValue.unknown`. +type UnknownSet struct { + // The ids of the expressions with unknown values. + Exprs []*IdRef `protobuf:"bytes,1,rep,name=exprs,proto3" json:"exprs,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnknownSet) Reset() { *m = UnknownSet{} } +func (m *UnknownSet) String() string { return proto.CompactTextString(m) } +func (*UnknownSet) ProtoMessage() {} +func (*UnknownSet) Descriptor() ([]byte, []int) { + return fileDescriptor_5cf79b1c58929ac8, []int{3} +} + +func (m *UnknownSet) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnknownSet.Unmarshal(m, b) +} +func (m *UnknownSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnknownSet.Marshal(b, m, deterministic) +} +func (m *UnknownSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnknownSet.Merge(m, src) +} +func (m *UnknownSet) XXX_Size() int { + return xxx_messageInfo_UnknownSet.Size(m) +} +func (m *UnknownSet) XXX_DiscardUnknown() { + xxx_messageInfo_UnknownSet.DiscardUnknown(m) +} + +var xxx_messageInfo_UnknownSet proto.InternalMessageInfo + +func (m *UnknownSet) GetExprs() []*IdRef { + if m != nil { + return m.Exprs + } + return nil +} + +// A reference to an expression id. +type IdRef struct { + // The expression id. + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IdRef) Reset() { *m = IdRef{} } +func (m *IdRef) String() string { return proto.CompactTextString(m) } +func (*IdRef) ProtoMessage() {} +func (*IdRef) Descriptor() ([]byte, []int) { + return fileDescriptor_5cf79b1c58929ac8, []int{4} +} + +func (m *IdRef) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IdRef.Unmarshal(m, b) +} +func (m *IdRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IdRef.Marshal(b, m, deterministic) +} +func (m *IdRef) XXX_Merge(src proto.Message) { + xxx_messageInfo_IdRef.Merge(m, src) +} +func (m *IdRef) XXX_Size() int { + return xxx_messageInfo_IdRef.Size(m) +} +func (m *IdRef) XXX_DiscardUnknown() { + xxx_messageInfo_IdRef.DiscardUnknown(m) +} + +var xxx_messageInfo_IdRef proto.InternalMessageInfo + +func (m *IdRef) GetId() int32 { + if m != nil { + return m.Id + } + return 0 +} + +func init() { + proto.RegisterType((*EvalState)(nil), "google.api.expr.v1beta1.EvalState") + proto.RegisterType((*EvalState_Result)(nil), "google.api.expr.v1beta1.EvalState.Result") + proto.RegisterType((*ExprValue)(nil), "google.api.expr.v1beta1.ExprValue") + proto.RegisterType((*ErrorSet)(nil), "google.api.expr.v1beta1.ErrorSet") + proto.RegisterType((*UnknownSet)(nil), "google.api.expr.v1beta1.UnknownSet") + proto.RegisterType((*IdRef)(nil), "google.api.expr.v1beta1.IdRef") +} + +func init() { proto.RegisterFile("google/api/expr/v1beta1/eval.proto", fileDescriptor_5cf79b1c58929ac8) } + +var fileDescriptor_5cf79b1c58929ac8 = []byte{ + // 392 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcf, 0x8b, 0xd4, 0x30, + 0x14, 0xc7, 0xcd, 0xcc, 0xb6, 0x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0x33, 0xb5, 0xd5, 0x2b, 0x31, 0x03, 0x00, 0x00, +} diff --git a/googleapis/api/expr/v1beta1/expr.pb.go b/googleapis/api/expr/v1beta1/expr.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..2f571e59df9cd3f2144aa458f26db37191576577 --- /dev/null +++ b/googleapis/api/expr/v1beta1/expr.pb.go @@ -0,0 +1,1361 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/api/expr/v1beta1/expr.proto + +package expr + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _struct "github.com/golang/protobuf/ptypes/struct" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// An expression together with source information as returned by the parser. +type ParsedExpr struct { + // The parsed expression. + Expr *Expr `protobuf:"bytes,2,opt,name=expr,proto3" json:"expr,omitempty"` + // The source info derived from input that generated the parsed `expr`. + SourceInfo *SourceInfo `protobuf:"bytes,3,opt,name=source_info,json=sourceInfo,proto3" json:"source_info,omitempty"` + // The syntax version of the source, e.g. `cel1`. + SyntaxVersion string `protobuf:"bytes,4,opt,name=syntax_version,json=syntaxVersion,proto3" json:"syntax_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ParsedExpr) Reset() { *m = ParsedExpr{} } +func (m *ParsedExpr) String() string { return proto.CompactTextString(m) } +func (*ParsedExpr) ProtoMessage() {} +func (*ParsedExpr) Descriptor() ([]byte, []int) { + return fileDescriptor_fb180304f2777248, []int{0} +} + +func (m *ParsedExpr) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ParsedExpr.Unmarshal(m, b) +} +func (m *ParsedExpr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ParsedExpr.Marshal(b, m, deterministic) +} +func (m *ParsedExpr) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParsedExpr.Merge(m, src) +} +func (m *ParsedExpr) XXX_Size() int { + return xxx_messageInfo_ParsedExpr.Size(m) +} +func (m *ParsedExpr) XXX_DiscardUnknown() { + xxx_messageInfo_ParsedExpr.DiscardUnknown(m) +} + +var xxx_messageInfo_ParsedExpr proto.InternalMessageInfo + +func (m *ParsedExpr) GetExpr() *Expr { + if m != nil { + return m.Expr + } + return nil +} + +func (m *ParsedExpr) GetSourceInfo() *SourceInfo { + if m != nil { + return m.SourceInfo + } + return nil +} + +func (m *ParsedExpr) GetSyntaxVersion() string { + if m != nil { + return m.SyntaxVersion + } + return "" +} + +// An abstract representation of a common expression. +// +// Expressions are abstractly represented as a collection of identifiers, +// select statements, function calls, literals, and comprehensions. All +// operators with the exception of the '.' operator are modelled as function +// calls. This makes it easy to represent new operators into the existing AST. +// +// All references within expressions must resolve to a +// [Decl][google.api.expr.v1beta1.Decl] provided at type-check for an expression +// to be valid. A reference may either be a bare identifier `name` or a +// qualified identifier `google.api.name`. References may either refer to a +// value or a function declaration. +// +// For example, the expression `google.api.name.startsWith('expr')` references +// the declaration `google.api.name` within a +// [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression, and the +// function declaration `startsWith`. +type Expr struct { + // Required. An id assigned to this node by the parser which is unique in a + // given expression tree. This is used to associate type information and other + // attributes to a node in the parse tree. + Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + // Required. Variants of expressions. + // + // Types that are valid to be assigned to ExprKind: + // *Expr_LiteralExpr + // *Expr_IdentExpr + // *Expr_SelectExpr + // *Expr_CallExpr + // *Expr_ListExpr + // *Expr_StructExpr + // *Expr_ComprehensionExpr + ExprKind isExpr_ExprKind `protobuf_oneof:"expr_kind"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Expr) Reset() { *m = Expr{} } +func (m *Expr) String() string { return proto.CompactTextString(m) } +func (*Expr) ProtoMessage() {} +func (*Expr) Descriptor() ([]byte, []int) { + return fileDescriptor_fb180304f2777248, []int{1} +} + +func (m *Expr) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Expr.Unmarshal(m, b) +} +func (m *Expr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Expr.Marshal(b, m, deterministic) +} +func (m *Expr) XXX_Merge(src proto.Message) { + xxx_messageInfo_Expr.Merge(m, src) +} +func (m *Expr) XXX_Size() int { + return xxx_messageInfo_Expr.Size(m) +} +func (m *Expr) XXX_DiscardUnknown() { + xxx_messageInfo_Expr.DiscardUnknown(m) +} + +var xxx_messageInfo_Expr proto.InternalMessageInfo + +func (m *Expr) GetId() int32 { + if m != nil { + return m.Id + } + return 0 +} + +type isExpr_ExprKind interface { + isExpr_ExprKind() +} + +type Expr_LiteralExpr struct { + LiteralExpr *Literal `protobuf:"bytes,3,opt,name=literal_expr,json=literalExpr,proto3,oneof"` +} + +type Expr_IdentExpr struct { + IdentExpr *Expr_Ident `protobuf:"bytes,4,opt,name=ident_expr,json=identExpr,proto3,oneof"` +} + +type Expr_SelectExpr struct { + SelectExpr *Expr_Select `protobuf:"bytes,5,opt,name=select_expr,json=selectExpr,proto3,oneof"` +} + +type Expr_CallExpr struct { + CallExpr *Expr_Call `protobuf:"bytes,6,opt,name=call_expr,json=callExpr,proto3,oneof"` +} + +type Expr_ListExpr struct { + ListExpr *Expr_CreateList `protobuf:"bytes,7,opt,name=list_expr,json=listExpr,proto3,oneof"` +} + +type Expr_StructExpr struct { + StructExpr *Expr_CreateStruct `protobuf:"bytes,8,opt,name=struct_expr,json=structExpr,proto3,oneof"` +} + +type Expr_ComprehensionExpr struct { + ComprehensionExpr *Expr_Comprehension `protobuf:"bytes,9,opt,name=comprehension_expr,json=comprehensionExpr,proto3,oneof"` +} + +func (*Expr_LiteralExpr) isExpr_ExprKind() {} + +func (*Expr_IdentExpr) isExpr_ExprKind() {} + +func (*Expr_SelectExpr) isExpr_ExprKind() {} + +func (*Expr_CallExpr) isExpr_ExprKind() {} + +func (*Expr_ListExpr) isExpr_ExprKind() {} + +func (*Expr_StructExpr) isExpr_ExprKind() {} + +func (*Expr_ComprehensionExpr) isExpr_ExprKind() {} + +func (m *Expr) GetExprKind() isExpr_ExprKind { + if m != nil { + return m.ExprKind + } + return nil +} + +func (m *Expr) GetLiteralExpr() *Literal { + if x, ok := m.GetExprKind().(*Expr_LiteralExpr); ok { + return x.LiteralExpr + } + return nil +} + +func (m *Expr) GetIdentExpr() *Expr_Ident { + if x, ok := m.GetExprKind().(*Expr_IdentExpr); ok { + return x.IdentExpr + } + return nil +} + +func (m *Expr) GetSelectExpr() *Expr_Select { + if x, ok := m.GetExprKind().(*Expr_SelectExpr); ok { + return x.SelectExpr + } + return nil +} + +func (m *Expr) GetCallExpr() *Expr_Call { + if x, ok := m.GetExprKind().(*Expr_CallExpr); ok { + return x.CallExpr + } + return nil +} + +func (m *Expr) GetListExpr() *Expr_CreateList { + if x, ok := m.GetExprKind().(*Expr_ListExpr); ok { + return x.ListExpr + } + return nil +} + +func (m *Expr) GetStructExpr() *Expr_CreateStruct { + if x, ok := m.GetExprKind().(*Expr_StructExpr); ok { + return x.StructExpr + } + return nil +} + +func (m *Expr) GetComprehensionExpr() *Expr_Comprehension { + if x, ok := m.GetExprKind().(*Expr_ComprehensionExpr); ok { + return x.ComprehensionExpr + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Expr) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Expr_OneofMarshaler, _Expr_OneofUnmarshaler, _Expr_OneofSizer, []interface{}{ + (*Expr_LiteralExpr)(nil), + (*Expr_IdentExpr)(nil), + (*Expr_SelectExpr)(nil), + (*Expr_CallExpr)(nil), + (*Expr_ListExpr)(nil), + (*Expr_StructExpr)(nil), + (*Expr_ComprehensionExpr)(nil), + } +} + +func _Expr_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Expr) + // expr_kind + switch x := m.ExprKind.(type) { + case *Expr_LiteralExpr: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.LiteralExpr); err != nil { + return err + } + case *Expr_IdentExpr: + b.EncodeVarint(4<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.IdentExpr); err != nil { + return err + } + case *Expr_SelectExpr: + b.EncodeVarint(5<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.SelectExpr); err != nil { + return err + } + case *Expr_CallExpr: + b.EncodeVarint(6<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.CallExpr); err != nil { + return err + } + case *Expr_ListExpr: + b.EncodeVarint(7<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ListExpr); err != nil { + return err + } + case *Expr_StructExpr: + b.EncodeVarint(8<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.StructExpr); err != nil { + return err + } + case *Expr_ComprehensionExpr: + b.EncodeVarint(9<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.ComprehensionExpr); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Expr.ExprKind has unexpected type %T", x) + } + return nil +} + +func _Expr_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Expr) + switch tag { + case 3: // expr_kind.literal_expr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Literal) + err := b.DecodeMessage(msg) + m.ExprKind = &Expr_LiteralExpr{msg} + return true, err + case 4: // expr_kind.ident_expr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Expr_Ident) + err := b.DecodeMessage(msg) + m.ExprKind = &Expr_IdentExpr{msg} + return true, err + case 5: // expr_kind.select_expr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Expr_Select) + err := b.DecodeMessage(msg) + m.ExprKind = &Expr_SelectExpr{msg} + return true, err + case 6: // expr_kind.call_expr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Expr_Call) + err := b.DecodeMessage(msg) + m.ExprKind = &Expr_CallExpr{msg} + return true, err + case 7: // expr_kind.list_expr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Expr_CreateList) + err := b.DecodeMessage(msg) + m.ExprKind = &Expr_ListExpr{msg} + return true, err + case 8: // expr_kind.struct_expr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Expr_CreateStruct) + err := b.DecodeMessage(msg) + m.ExprKind = &Expr_StructExpr{msg} + return true, err + case 9: // expr_kind.comprehension_expr + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Expr_Comprehension) + err := b.DecodeMessage(msg) + m.ExprKind = &Expr_ComprehensionExpr{msg} + return true, err + default: + return false, nil + } +} + +func _Expr_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Expr) + // expr_kind + switch x := m.ExprKind.(type) { + case *Expr_LiteralExpr: + s := proto.Size(x.LiteralExpr) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Expr_IdentExpr: + s := proto.Size(x.IdentExpr) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Expr_SelectExpr: + s := proto.Size(x.SelectExpr) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Expr_CallExpr: + s := proto.Size(x.CallExpr) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Expr_ListExpr: + s := proto.Size(x.ListExpr) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Expr_StructExpr: + s := proto.Size(x.StructExpr) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case *Expr_ComprehensionExpr: + s := proto.Size(x.ComprehensionExpr) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// An identifier expression. e.g. `request`. +type Expr_Ident struct { + // Required. Holds a single, unqualified identifier, possibly preceded by a + // '.'. + // + // Qualified names are represented by the + // [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Expr_Ident) Reset() { *m = Expr_Ident{} } +func (m *Expr_Ident) String() string { return proto.CompactTextString(m) } +func (*Expr_Ident) ProtoMessage() {} +func (*Expr_Ident) Descriptor() ([]byte, []int) { + return fileDescriptor_fb180304f2777248, []int{1, 0} +} + +func (m *Expr_Ident) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Expr_Ident.Unmarshal(m, b) +} +func (m *Expr_Ident) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Expr_Ident.Marshal(b, m, deterministic) +} +func (m *Expr_Ident) XXX_Merge(src proto.Message) { + xxx_messageInfo_Expr_Ident.Merge(m, src) +} +func (m *Expr_Ident) XXX_Size() int { + return xxx_messageInfo_Expr_Ident.Size(m) +} +func (m *Expr_Ident) XXX_DiscardUnknown() { + xxx_messageInfo_Expr_Ident.DiscardUnknown(m) +} + +var xxx_messageInfo_Expr_Ident proto.InternalMessageInfo + +func (m *Expr_Ident) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +// A field selection expression. e.g. `request.auth`. +type Expr_Select struct { + // Required. The target of the selection expression. + // + // For example, in the select expression `request.auth`, the `request` + // portion of the expression is the `operand`. + Operand *Expr `protobuf:"bytes,1,opt,name=operand,proto3" json:"operand,omitempty"` + // Required. The name of the field to select. + // + // For example, in the select expression `request.auth`, the `auth` portion + // of the expression would be the `field`. + Field string `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"` + // Whether the select is to be interpreted as a field presence test. + // + // This results from the macro `has(request.auth)`. + TestOnly bool `protobuf:"varint,3,opt,name=test_only,json=testOnly,proto3" json:"test_only,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Expr_Select) Reset() { *m = Expr_Select{} } +func (m *Expr_Select) String() string { return proto.CompactTextString(m) } +func (*Expr_Select) ProtoMessage() {} +func (*Expr_Select) Descriptor() ([]byte, []int) { + return fileDescriptor_fb180304f2777248, []int{1, 1} +} + +func (m *Expr_Select) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Expr_Select.Unmarshal(m, b) +} +func (m *Expr_Select) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Expr_Select.Marshal(b, m, deterministic) +} +func (m *Expr_Select) XXX_Merge(src proto.Message) { + xxx_messageInfo_Expr_Select.Merge(m, src) +} +func (m *Expr_Select) XXX_Size() int { + return xxx_messageInfo_Expr_Select.Size(m) +} +func (m *Expr_Select) XXX_DiscardUnknown() { + xxx_messageInfo_Expr_Select.DiscardUnknown(m) +} + +var xxx_messageInfo_Expr_Select proto.InternalMessageInfo + +func (m *Expr_Select) GetOperand() *Expr { + if m != nil { + return m.Operand + } + return nil +} + +func (m *Expr_Select) GetField() string { + if m != nil { + return m.Field + } + return "" +} + +func (m *Expr_Select) GetTestOnly() bool { + if m != nil { + return m.TestOnly + } + return false +} + +// A call expression, including calls to predefined functions and operators. +// +// For example, `value == 10`, `size(map_value)`. +type Expr_Call struct { + // The target of an method call-style expression. For example, `x` in + // `x.f()`. + Target *Expr `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` + // Required. The name of the function or method being called. + Function string `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty"` + // The arguments. + Args []*Expr `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Expr_Call) Reset() { *m = Expr_Call{} } +func (m *Expr_Call) String() string { return proto.CompactTextString(m) } +func (*Expr_Call) ProtoMessage() {} +func (*Expr_Call) Descriptor() ([]byte, []int) { + return fileDescriptor_fb180304f2777248, []int{1, 2} +} + +func (m *Expr_Call) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Expr_Call.Unmarshal(m, b) +} +func (m *Expr_Call) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Expr_Call.Marshal(b, m, deterministic) +} +func (m *Expr_Call) XXX_Merge(src proto.Message) { + xxx_messageInfo_Expr_Call.Merge(m, src) +} +func (m *Expr_Call) XXX_Size() int { + return xxx_messageInfo_Expr_Call.Size(m) +} +func (m *Expr_Call) XXX_DiscardUnknown() { + xxx_messageInfo_Expr_Call.DiscardUnknown(m) +} + +var xxx_messageInfo_Expr_Call proto.InternalMessageInfo + +func (m *Expr_Call) GetTarget() *Expr { + if m != nil { + return m.Target + } + return nil +} + +func (m *Expr_Call) GetFunction() string { + if m != nil { + return m.Function + } + return "" +} + +func (m *Expr_Call) GetArgs() []*Expr { + if m != nil { + return m.Args + } + return nil +} + +// A list creation expression. +// +// Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogenous, e.g. +// `dyn([1, 'hello', 2.0])` +type Expr_CreateList struct { + // The elements part of the list. + Elements []*Expr `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Expr_CreateList) Reset() { *m = Expr_CreateList{} } +func (m *Expr_CreateList) String() string { return proto.CompactTextString(m) } +func (*Expr_CreateList) ProtoMessage() {} +func (*Expr_CreateList) Descriptor() ([]byte, []int) { + return fileDescriptor_fb180304f2777248, []int{1, 3} +} + +func (m *Expr_CreateList) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Expr_CreateList.Unmarshal(m, b) +} +func (m *Expr_CreateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Expr_CreateList.Marshal(b, m, deterministic) +} +func (m *Expr_CreateList) XXX_Merge(src proto.Message) { + xxx_messageInfo_Expr_CreateList.Merge(m, src) +} +func (m *Expr_CreateList) XXX_Size() int { + return xxx_messageInfo_Expr_CreateList.Size(m) +} +func (m *Expr_CreateList) XXX_DiscardUnknown() { + xxx_messageInfo_Expr_CreateList.DiscardUnknown(m) +} + +var xxx_messageInfo_Expr_CreateList proto.InternalMessageInfo + +func (m *Expr_CreateList) GetElements() []*Expr { + if m != nil { + return m.Elements + } + return nil +} + +// A map or message creation expression. +// +// Maps are constructed as `{'key_name': 'value'}`. Message construction is +// similar, but prefixed with a type name and composed of field ids: +// `types.MyType{field_id: 'value'}`. +type Expr_CreateStruct struct { + // The type name of the message to be created, empty when creating map + // literals. + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + // The entries in the creation expression. + Entries []*Expr_CreateStruct_Entry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Expr_CreateStruct) Reset() { *m = Expr_CreateStruct{} } +func (m *Expr_CreateStruct) String() string { return proto.CompactTextString(m) } +func (*Expr_CreateStruct) ProtoMessage() {} +func (*Expr_CreateStruct) Descriptor() ([]byte, []int) { + return fileDescriptor_fb180304f2777248, []int{1, 4} +} + +func (m *Expr_CreateStruct) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Expr_CreateStruct.Unmarshal(m, b) +} +func (m *Expr_CreateStruct) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Expr_CreateStruct.Marshal(b, m, deterministic) +} +func (m *Expr_CreateStruct) XXX_Merge(src proto.Message) { + xxx_messageInfo_Expr_CreateStruct.Merge(m, src) +} +func (m *Expr_CreateStruct) XXX_Size() int { + return xxx_messageInfo_Expr_CreateStruct.Size(m) +} +func (m *Expr_CreateStruct) XXX_DiscardUnknown() { + xxx_messageInfo_Expr_CreateStruct.DiscardUnknown(m) +} + +var xxx_messageInfo_Expr_CreateStruct proto.InternalMessageInfo + +func (m *Expr_CreateStruct) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *Expr_CreateStruct) GetEntries() []*Expr_CreateStruct_Entry { + if m != nil { + return m.Entries + } + return nil +} + +// Represents an entry. +type Expr_CreateStruct_Entry struct { + // Required. An id assigned to this node by the parser which is unique + // in a given expression tree. This is used to associate type + // information and other attributes to the node. + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + // The `Entry` key kinds. + // + // Types that are valid to be assigned to KeyKind: + // *Expr_CreateStruct_Entry_FieldKey + // *Expr_CreateStruct_Entry_MapKey + KeyKind isExpr_CreateStruct_Entry_KeyKind `protobuf_oneof:"key_kind"` + // Required. The value assigned to the key. + Value *Expr `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Expr_CreateStruct_Entry) Reset() { *m = Expr_CreateStruct_Entry{} } +func (m *Expr_CreateStruct_Entry) String() string { return proto.CompactTextString(m) } +func (*Expr_CreateStruct_Entry) ProtoMessage() {} +func (*Expr_CreateStruct_Entry) Descriptor() ([]byte, []int) { + return fileDescriptor_fb180304f2777248, []int{1, 4, 0} +} + +func (m *Expr_CreateStruct_Entry) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Expr_CreateStruct_Entry.Unmarshal(m, b) +} +func (m *Expr_CreateStruct_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Expr_CreateStruct_Entry.Marshal(b, m, deterministic) +} +func (m *Expr_CreateStruct_Entry) XXX_Merge(src proto.Message) { + xxx_messageInfo_Expr_CreateStruct_Entry.Merge(m, src) +} +func (m *Expr_CreateStruct_Entry) XXX_Size() int { + return xxx_messageInfo_Expr_CreateStruct_Entry.Size(m) +} +func (m *Expr_CreateStruct_Entry) XXX_DiscardUnknown() { + xxx_messageInfo_Expr_CreateStruct_Entry.DiscardUnknown(m) +} + +var xxx_messageInfo_Expr_CreateStruct_Entry proto.InternalMessageInfo + +func (m *Expr_CreateStruct_Entry) GetId() int32 { + if m != nil { + return m.Id + } + return 0 +} + +type isExpr_CreateStruct_Entry_KeyKind interface { + isExpr_CreateStruct_Entry_KeyKind() +} + +type Expr_CreateStruct_Entry_FieldKey struct { + FieldKey string `protobuf:"bytes,2,opt,name=field_key,json=fieldKey,proto3,oneof"` +} + +type Expr_CreateStruct_Entry_MapKey struct { + MapKey *Expr `protobuf:"bytes,3,opt,name=map_key,json=mapKey,proto3,oneof"` +} + +func (*Expr_CreateStruct_Entry_FieldKey) isExpr_CreateStruct_Entry_KeyKind() {} + +func (*Expr_CreateStruct_Entry_MapKey) isExpr_CreateStruct_Entry_KeyKind() {} + +func (m *Expr_CreateStruct_Entry) GetKeyKind() isExpr_CreateStruct_Entry_KeyKind { + if m != nil { + return m.KeyKind + } + return nil +} + +func (m *Expr_CreateStruct_Entry) GetFieldKey() string { + if x, ok := m.GetKeyKind().(*Expr_CreateStruct_Entry_FieldKey); ok { + return x.FieldKey + } + return "" +} + +func (m *Expr_CreateStruct_Entry) GetMapKey() *Expr { + if x, ok := m.GetKeyKind().(*Expr_CreateStruct_Entry_MapKey); ok { + return x.MapKey + } + return nil +} + +func (m *Expr_CreateStruct_Entry) GetValue() *Expr { + if m != nil { + return m.Value + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Expr_CreateStruct_Entry) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Expr_CreateStruct_Entry_OneofMarshaler, _Expr_CreateStruct_Entry_OneofUnmarshaler, _Expr_CreateStruct_Entry_OneofSizer, []interface{}{ + (*Expr_CreateStruct_Entry_FieldKey)(nil), + (*Expr_CreateStruct_Entry_MapKey)(nil), + } +} + +func _Expr_CreateStruct_Entry_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Expr_CreateStruct_Entry) + // key_kind + switch x := m.KeyKind.(type) { + case *Expr_CreateStruct_Entry_FieldKey: + b.EncodeVarint(2<<3 | proto.WireBytes) + b.EncodeStringBytes(x.FieldKey) + case *Expr_CreateStruct_Entry_MapKey: + b.EncodeVarint(3<<3 | proto.WireBytes) + if err := b.EncodeMessage(x.MapKey); err != nil { + return err + } + case nil: + default: + return fmt.Errorf("Expr_CreateStruct_Entry.KeyKind has unexpected type %T", x) + } + return nil +} + +func _Expr_CreateStruct_Entry_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Expr_CreateStruct_Entry) + switch tag { + case 2: // key_kind.field_key + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.KeyKind = &Expr_CreateStruct_Entry_FieldKey{x} + return true, err + case 3: // key_kind.map_key + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + msg := new(Expr) + err := b.DecodeMessage(msg) + m.KeyKind = &Expr_CreateStruct_Entry_MapKey{msg} + return true, err + default: + return false, nil + } +} + +func _Expr_CreateStruct_Entry_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Expr_CreateStruct_Entry) + // key_kind + switch x := m.KeyKind.(type) { + case *Expr_CreateStruct_Entry_FieldKey: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.FieldKey))) + n += len(x.FieldKey) + case *Expr_CreateStruct_Entry_MapKey: + s := proto.Size(x.MapKey) + n += 1 // tag and wire + n += proto.SizeVarint(uint64(s)) + n += s + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +// A comprehension expression applied to a list or map. +// +// Comprehensions are not part of the core syntax, but enabled with macros. +// A macro matches a specific call signature within a parsed AST and replaces +// the call with an alternate AST block. Macro expansion happens at parse +// time. +// +// The following macros are supported within CEL: +// +// Aggregate type macros may be applied to all elements in a list or all keys +// in a map: +// +// * `all`, `exists`, `exists_one` - test a predicate expression against +// the inputs and return `true` if the predicate is satisfied for all, +// any, or only one value `list.all(x, x < 10)`. +// * `filter` - test a predicate expression against the inputs and return +// the subset of elements which satisfy the predicate: +// `payments.filter(p, p > 1000)`. +// * `map` - apply an expression to all elements in the input and return the +// output aggregate type: `[1, 2, 3].map(i, i * i)`. +// +// The `has(m.x)` macro tests whether the property `x` is present in struct +// `m`. The semantics of this macro depend on the type of `m`. For proto2 +// messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the +// macro tests whether the property is set to its default. For map and struct +// types, the macro tests whether the property `x` is defined on `m`. +type Expr_Comprehension struct { + // The name of the iteration variable. + IterVar string `protobuf:"bytes,1,opt,name=iter_var,json=iterVar,proto3" json:"iter_var,omitempty"` + // The range over which var iterates. + IterRange *Expr `protobuf:"bytes,2,opt,name=iter_range,json=iterRange,proto3" json:"iter_range,omitempty"` + // The name of the variable used for accumulation of the result. + AccuVar string `protobuf:"bytes,3,opt,name=accu_var,json=accuVar,proto3" json:"accu_var,omitempty"` + // The initial value of the accumulator. + AccuInit *Expr `protobuf:"bytes,4,opt,name=accu_init,json=accuInit,proto3" json:"accu_init,omitempty"` + // An expression which can contain iter_var and accu_var. + // + // Returns false when the result has been computed and may be used as + // a hint to short-circuit the remainder of the comprehension. + LoopCondition *Expr `protobuf:"bytes,5,opt,name=loop_condition,json=loopCondition,proto3" json:"loop_condition,omitempty"` + // An expression which can contain iter_var and accu_var. + // + // Computes the next value of accu_var. + LoopStep *Expr `protobuf:"bytes,6,opt,name=loop_step,json=loopStep,proto3" json:"loop_step,omitempty"` + // An expression which can contain accu_var. + // + // Computes the result. + Result *Expr `protobuf:"bytes,7,opt,name=result,proto3" json:"result,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Expr_Comprehension) Reset() { *m = Expr_Comprehension{} } +func (m *Expr_Comprehension) String() string { return proto.CompactTextString(m) } +func (*Expr_Comprehension) ProtoMessage() {} +func (*Expr_Comprehension) Descriptor() ([]byte, []int) { + return fileDescriptor_fb180304f2777248, []int{1, 5} +} + +func (m *Expr_Comprehension) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Expr_Comprehension.Unmarshal(m, b) +} +func (m *Expr_Comprehension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Expr_Comprehension.Marshal(b, m, deterministic) +} +func (m *Expr_Comprehension) XXX_Merge(src proto.Message) { + xxx_messageInfo_Expr_Comprehension.Merge(m, src) +} +func (m *Expr_Comprehension) XXX_Size() int { + return xxx_messageInfo_Expr_Comprehension.Size(m) +} +func (m *Expr_Comprehension) XXX_DiscardUnknown() { + xxx_messageInfo_Expr_Comprehension.DiscardUnknown(m) +} + +var xxx_messageInfo_Expr_Comprehension proto.InternalMessageInfo + +func (m *Expr_Comprehension) GetIterVar() string { + if m != nil { + return m.IterVar + } + return "" +} + +func (m *Expr_Comprehension) GetIterRange() *Expr { + if m != nil { + return m.IterRange + } + return nil +} + +func (m *Expr_Comprehension) GetAccuVar() string { + if m != nil { + return m.AccuVar + } + return "" +} + +func (m *Expr_Comprehension) GetAccuInit() *Expr { + if m != nil { + return m.AccuInit + } + return nil +} + +func (m *Expr_Comprehension) GetLoopCondition() *Expr { + if m != nil { + return m.LoopCondition + } + return nil +} + +func (m *Expr_Comprehension) GetLoopStep() *Expr { + if m != nil { + return m.LoopStep + } + return nil +} + +func (m *Expr_Comprehension) GetResult() *Expr { + if m != nil { + return m.Result + } + return nil +} + +// Represents a primitive literal. +// +// This is similar to the primitives supported in the well-known type +// `google.protobuf.Value`, but richer so it can represent CEL's full range of +// primitives. +// +// Lists and structs are not included as constants as these aggregate types may +// contain [Expr][google.api.expr.v1beta1.Expr] elements which require +// evaluation and are thus not constant. +// +// Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`, +// `true`, `null`. +type Literal struct { + // Required. The valid constant kinds. + // + // Types that are valid to be assigned to ConstantKind: + // *Literal_NullValue + // *Literal_BoolValue + // *Literal_Int64Value + // *Literal_Uint64Value + // *Literal_DoubleValue + // *Literal_StringValue + // *Literal_BytesValue + ConstantKind isLiteral_ConstantKind `protobuf_oneof:"constant_kind"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Literal) Reset() { *m = Literal{} } +func (m *Literal) String() string { return proto.CompactTextString(m) } +func (*Literal) ProtoMessage() {} +func (*Literal) Descriptor() ([]byte, []int) { + return fileDescriptor_fb180304f2777248, []int{2} +} + +func (m *Literal) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Literal.Unmarshal(m, b) +} +func (m *Literal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Literal.Marshal(b, m, deterministic) +} +func (m *Literal) XXX_Merge(src proto.Message) { + xxx_messageInfo_Literal.Merge(m, src) +} +func (m *Literal) XXX_Size() int { + return xxx_messageInfo_Literal.Size(m) +} +func (m *Literal) XXX_DiscardUnknown() { + xxx_messageInfo_Literal.DiscardUnknown(m) +} + +var xxx_messageInfo_Literal proto.InternalMessageInfo + +type isLiteral_ConstantKind interface { + isLiteral_ConstantKind() +} + +type Literal_NullValue struct { + NullValue _struct.NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"` +} + +type Literal_BoolValue struct { + BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"` +} + +type Literal_Int64Value struct { + Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"` +} + +type Literal_Uint64Value struct { + Uint64Value uint64 `protobuf:"varint,4,opt,name=uint64_value,json=uint64Value,proto3,oneof"` +} + +type Literal_DoubleValue struct { + DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"` +} + +type Literal_StringValue struct { + StringValue string `protobuf:"bytes,6,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type Literal_BytesValue struct { + BytesValue []byte `protobuf:"bytes,7,opt,name=bytes_value,json=bytesValue,proto3,oneof"` +} + +func (*Literal_NullValue) isLiteral_ConstantKind() {} + +func (*Literal_BoolValue) isLiteral_ConstantKind() {} + +func (*Literal_Int64Value) isLiteral_ConstantKind() {} + +func (*Literal_Uint64Value) isLiteral_ConstantKind() {} + +func (*Literal_DoubleValue) isLiteral_ConstantKind() {} + +func (*Literal_StringValue) isLiteral_ConstantKind() {} + +func (*Literal_BytesValue) isLiteral_ConstantKind() {} + +func (m *Literal) GetConstantKind() isLiteral_ConstantKind { + if m != nil { + return m.ConstantKind + } + return nil +} + +func (m *Literal) GetNullValue() _struct.NullValue { + if x, ok := m.GetConstantKind().(*Literal_NullValue); ok { + return x.NullValue + } + return _struct.NullValue_NULL_VALUE +} + +func (m *Literal) GetBoolValue() bool { + if x, ok := m.GetConstantKind().(*Literal_BoolValue); ok { + return x.BoolValue + } + return false +} + +func (m *Literal) GetInt64Value() int64 { + if x, ok := m.GetConstantKind().(*Literal_Int64Value); ok { + return x.Int64Value + } + return 0 +} + +func (m *Literal) GetUint64Value() uint64 { + if x, ok := m.GetConstantKind().(*Literal_Uint64Value); ok { + return x.Uint64Value + } + return 0 +} + +func (m *Literal) GetDoubleValue() float64 { + if x, ok := m.GetConstantKind().(*Literal_DoubleValue); ok { + return x.DoubleValue + } + return 0 +} + +func (m *Literal) GetStringValue() string { + if x, ok := m.GetConstantKind().(*Literal_StringValue); ok { + return x.StringValue + } + return "" +} + +func (m *Literal) GetBytesValue() []byte { + if x, ok := m.GetConstantKind().(*Literal_BytesValue); ok { + return x.BytesValue + } + return nil +} + +// XXX_OneofFuncs is for the internal use of the proto package. +func (*Literal) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { + return _Literal_OneofMarshaler, _Literal_OneofUnmarshaler, _Literal_OneofSizer, []interface{}{ + (*Literal_NullValue)(nil), + (*Literal_BoolValue)(nil), + (*Literal_Int64Value)(nil), + (*Literal_Uint64Value)(nil), + (*Literal_DoubleValue)(nil), + (*Literal_StringValue)(nil), + (*Literal_BytesValue)(nil), + } +} + +func _Literal_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { + m := msg.(*Literal) + // constant_kind + switch x := m.ConstantKind.(type) { + case *Literal_NullValue: + b.EncodeVarint(1<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.NullValue)) + case *Literal_BoolValue: + t := uint64(0) + if x.BoolValue { + t = 1 + } + b.EncodeVarint(2<<3 | proto.WireVarint) + b.EncodeVarint(t) + case *Literal_Int64Value: + b.EncodeVarint(3<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.Int64Value)) + case *Literal_Uint64Value: + b.EncodeVarint(4<<3 | proto.WireVarint) + b.EncodeVarint(uint64(x.Uint64Value)) + case *Literal_DoubleValue: + b.EncodeVarint(5<<3 | proto.WireFixed64) + b.EncodeFixed64(math.Float64bits(x.DoubleValue)) + case *Literal_StringValue: + b.EncodeVarint(6<<3 | proto.WireBytes) + b.EncodeStringBytes(x.StringValue) + case *Literal_BytesValue: + b.EncodeVarint(7<<3 | proto.WireBytes) + b.EncodeRawBytes(x.BytesValue) + case nil: + default: + return fmt.Errorf("Literal.ConstantKind has unexpected type %T", x) + } + return nil +} + +func _Literal_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { + m := msg.(*Literal) + switch tag { + case 1: // constant_kind.null_value + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.ConstantKind = &Literal_NullValue{_struct.NullValue(x)} + return true, err + case 2: // constant_kind.bool_value + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.ConstantKind = &Literal_BoolValue{x != 0} + return true, err + case 3: // constant_kind.int64_value + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.ConstantKind = &Literal_Int64Value{int64(x)} + return true, err + case 4: // constant_kind.uint64_value + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.ConstantKind = &Literal_Uint64Value{x} + return true, err + case 5: // constant_kind.double_value + if wire != proto.WireFixed64 { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeFixed64() + m.ConstantKind = &Literal_DoubleValue{math.Float64frombits(x)} + return true, err + case 6: // constant_kind.string_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeStringBytes() + m.ConstantKind = &Literal_StringValue{x} + return true, err + case 7: // constant_kind.bytes_value + if wire != proto.WireBytes { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeRawBytes(true) + m.ConstantKind = &Literal_BytesValue{x} + return true, err + default: + return false, nil + } +} + +func _Literal_OneofSizer(msg proto.Message) (n int) { + m := msg.(*Literal) + // constant_kind + switch x := m.ConstantKind.(type) { + case *Literal_NullValue: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.NullValue)) + case *Literal_BoolValue: + n += 1 // tag and wire + n += 1 + case *Literal_Int64Value: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.Int64Value)) + case *Literal_Uint64Value: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(x.Uint64Value)) + case *Literal_DoubleValue: + n += 1 // tag and wire + n += 8 + case *Literal_StringValue: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.StringValue))) + n += len(x.StringValue) + case *Literal_BytesValue: + n += 1 // tag and wire + n += proto.SizeVarint(uint64(len(x.BytesValue))) + n += len(x.BytesValue) + case nil: + default: + panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) + } + return n +} + +func init() { + proto.RegisterType((*ParsedExpr)(nil), "google.api.expr.v1beta1.ParsedExpr") + proto.RegisterType((*Expr)(nil), "google.api.expr.v1beta1.Expr") + proto.RegisterType((*Expr_Ident)(nil), "google.api.expr.v1beta1.Expr.Ident") + proto.RegisterType((*Expr_Select)(nil), "google.api.expr.v1beta1.Expr.Select") + proto.RegisterType((*Expr_Call)(nil), "google.api.expr.v1beta1.Expr.Call") + proto.RegisterType((*Expr_CreateList)(nil), "google.api.expr.v1beta1.Expr.CreateList") + proto.RegisterType((*Expr_CreateStruct)(nil), "google.api.expr.v1beta1.Expr.CreateStruct") + proto.RegisterType((*Expr_CreateStruct_Entry)(nil), "google.api.expr.v1beta1.Expr.CreateStruct.Entry") + proto.RegisterType((*Expr_Comprehension)(nil), "google.api.expr.v1beta1.Expr.Comprehension") + proto.RegisterType((*Literal)(nil), "google.api.expr.v1beta1.Literal") +} + +func init() { proto.RegisterFile("google/api/expr/v1beta1/expr.proto", fileDescriptor_fb180304f2777248) } + +var fileDescriptor_fb180304f2777248 = []byte{ + // 936 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x96, 0x6f, 0x6f, 0x23, 0xb5, + 0x13, 0xc7, 0xbb, 0xf9, 0xbb, 0x3b, 0x69, 0xfb, 0xd3, 0xcf, 0x42, 0x22, 0x6c, 0x39, 0x51, 0x7a, + 0x87, 0x54, 0x81, 0x94, 0xd0, 0x3b, 0xfe, 0x97, 0x27, 0xf4, 0xae, 0xba, 0x14, 0x0e, 0xa8, 0xb6, + 0x52, 0x1f, 0x20, 0xa4, 0xc8, 0xd9, 0x38,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 0xf7, 0x00, 0x26, + 0xc6, 0x2c, 0x9d, 0xb1, 0x46, 0x31, 0x02, 0x68, 0xf3, 0xc0, 0xfb, 0xd0, 0x93, 0xda, 0x7d, 0xf6, + 0x49, 0x20, 0xb0, 0x12, 0x4d, 0x1c, 0x81, 0x64, 0xf4, 0xc8, 0x63, 0xd8, 0xad, 0xef, 0x33, 0x58, + 0x91, 0x16, 0xfe, 0x22, 0xd5, 0x0f, 0xa1, 0xa9, 0xa9, 0x27, 0x4a, 0x04, 0x08, 0xb3, 0x1e, 0x21, + 0xe4, 0xad, 0x2b, 0xa8, 0x72, 0x56, 0xea, 0x22, 0x40, 0x9d, 0xd0, 0xfb, 0x3d, 0x6f, 0x5d, 0x45, + 0x34, 0x59, 0x38, 0x51, 0x05, 0x06, 0x93, 0xb8, 0x8b, 0x11, 0x91, 0x91, 0x90, 0xb3, 0xff, 0xc1, + 0x5e, 0x6e, 0x74, 0xe5, 0xb8, 0x76, 0x94, 0xaf, 0xb3, 0x5f, 0xe1, 0x20, 0x37, 0xf3, 0x75, 0x89, + 0x3e, 0x4b, 0x30, 0xd3, 0x97, 0x98, 0xaa, 0xcb, 0xe8, 0xa7, 0xd3, 0x40, 0x15, 0x46, 0x71, 0x5d, + 0x0c, 0x8c, 0x2d, 0x86, 0x85, 0xd0, 0x94, 0xc8, 0xa1, 0xdf, 0xe2, 0xa5, 0xac, 0xfe, 0xf3, 0x6f, + 0xe5, 0x14, 0x17, 0xaf, 0xa3, 0x68, 0xd2, 0x21, 0xf4, 0xd9, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, + 0xcb, 0xa2, 0x13, 0x9a, 0x14, 0x09, 0x00, 0x00, +} diff --git a/googleapis/api/expr/v1beta1/source.pb.go b/googleapis/api/expr/v1beta1/source.pb.go new file mode 100644 index 0000000000000000000000000000000000000000..dd48c6e49686f3b80524c94dd52e47f9aa43c580 --- /dev/null +++ b/googleapis/api/expr/v1beta1/source.pb.go @@ -0,0 +1,193 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: google/api/expr/v1beta1/source.proto + +package expr + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +// Source information collected at parse time. +type SourceInfo struct { + // The location name. All position information attached to an expression is + // relative to this location. + // + // The location could be a file, UI element, or similar. For example, + // `acme/app/AnvilPolicy.cel`. + Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` + // Monotonically increasing list of character offsets where newlines appear. + // + // The line number of a given position is the index `i` where for a given + // `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The + // column may be derivd from `id_positions[id] - line_offsets[i]`. + LineOffsets []int32 `protobuf:"varint,3,rep,packed,name=line_offsets,json=lineOffsets,proto3" json:"line_offsets,omitempty"` + // A map from the parse node id (e.g. `Expr.id`) to the character offset + // within source. + Positions map[int32]int32 `protobuf:"bytes,4,rep,name=positions,proto3" json:"positions,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SourceInfo) Reset() { *m = SourceInfo{} } +func (m *SourceInfo) String() string { return proto.CompactTextString(m) } +func (*SourceInfo) ProtoMessage() {} +func (*SourceInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_26d280d77790e409, []int{0} +} + +func (m *SourceInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SourceInfo.Unmarshal(m, b) +} +func (m *SourceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SourceInfo.Marshal(b, m, deterministic) +} +func (m *SourceInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_SourceInfo.Merge(m, src) +} +func (m *SourceInfo) XXX_Size() int { + return xxx_messageInfo_SourceInfo.Size(m) +} +func (m *SourceInfo) XXX_DiscardUnknown() { + xxx_messageInfo_SourceInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_SourceInfo proto.InternalMessageInfo + +func (m *SourceInfo) GetLocation() string { + if m != nil { + return m.Location + } + return "" +} + +func (m *SourceInfo) GetLineOffsets() []int32 { + if m != nil { + return m.LineOffsets + } + return nil +} + +func (m *SourceInfo) GetPositions() map[int32]int32 { + if m != nil { + return m.Positions + } + return nil +} + +// A specific position in source. +type SourcePosition struct { + // The soucre location name (e.g. file name). + Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` + // The character offset. + Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` + // The 1-based index of the starting line in the source text + // where the issue occurs, or 0 if unknown. + Line int32 `protobuf:"varint,3,opt,name=line,proto3" json:"line,omitempty"` + // The 0-based index of the starting position within the line of source text + // where the issue occurs. Only meaningful if line is nonzer.. + Column int32 `protobuf:"varint,4,opt,name=column,proto3" json:"column,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SourcePosition) Reset() { *m = SourcePosition{} } +func (m *SourcePosition) String() string { return proto.CompactTextString(m) } +func (*SourcePosition) ProtoMessage() {} +func (*SourcePosition) Descriptor() ([]byte, []int) { + return fileDescriptor_26d280d77790e409, []int{1} +} + +func (m *SourcePosition) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SourcePosition.Unmarshal(m, b) +} +func (m *SourcePosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SourcePosition.Marshal(b, m, deterministic) +} +func (m *SourcePosition) XXX_Merge(src proto.Message) { + xxx_messageInfo_SourcePosition.Merge(m, src) +} +func (m *SourcePosition) XXX_Size() int { + return xxx_messageInfo_SourcePosition.Size(m) +} +func (m *SourcePosition) XXX_DiscardUnknown() { + xxx_messageInfo_SourcePosition.DiscardUnknown(m) +} + +var xxx_messageInfo_SourcePosition proto.InternalMessageInfo + +func (m *SourcePosition) GetLocation() string { + if m != nil { + return m.Location + } + return "" +} + +func (m *SourcePosition) GetOffset() int32 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *SourcePosition) GetLine() int32 { + if m != nil { + return m.Line + } + return 0 +} + +func (m *SourcePosition) GetColumn() int32 { + if m != nil { + return m.Column + } + return 0 +} + +func init() { + proto.RegisterType((*SourceInfo)(nil), "google.api.expr.v1beta1.SourceInfo") + proto.RegisterMapType((map[int32]int32)(nil), "google.api.expr.v1beta1.SourceInfo.PositionsEntry") + proto.RegisterType((*SourcePosition)(nil), "google.api.expr.v1beta1.SourcePosition") +} + +func init() { + proto.RegisterFile("google/api/expr/v1beta1/source.proto", fileDescriptor_26d280d77790e409) +} + +var fileDescriptor_26d280d77790e409 = []byte{ + // 311 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x41, 0x4b, 0x3b, 0x31, + 0x10, 0xc5, 0x49, 0xb7, 0x5b, 0xfe, 0x9d, 0xfe, 0x29, 0x12, 0x44, 0x97, 0x7a, 0x59, 0x8b, 0x87, + 0x3d, 0x65, 0x69, 0xbd, 0x88, 0xf5, 0x54, 0xf0, 0xe0, 0xc9, 0xb2, 0xde, 0xbc, 0x48, 0xba, 0xa4, + 0x4b, 0x30, 0xcd, 0x84, 0xcd, 0xb6, 0xd8, 0xcf, 0xea, 0x17, 0xf1, 0x28, 0x49, 0xb6, 0x96, 0x2a, + 0xbd, 0xe5, 0xcd, 0xfc, 0x32, 0x33, 0x8f, 0x07, 0x37, 0x15, 0x62, 0xa5, 0x44, 0xce, 0x8d, 0xcc, + 0xc5, 0x87, 0xa9, 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xa1, 0x2c, 0xc8, 0xeb, 0xac, 0xe5, 0x2a, 0x54, + 0x5c, 0x57, 0x0c, 0xeb, 0x2a, 0xaf, 0x84, 0xf6, 0x91, 0xe5, 0xa1, 0xc5, 0x8d, 0xb4, 0x7f, 0xb2, + 0x9d, 0x39, 0xf1, 0x45, 0xc8, 0xb2, 0xe7, 0xd1, 0xdb, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdf, + 0x8a, 0x1a, 0x6c, 0x05, 0x02, 0x00, 0x00, +} diff --git a/googleapis/api/label/label.pb.go b/googleapis/api/label/label.pb.go index da5b90935e8a5e3b1b662a3ac6a14dcd250c25a2..82a31400db5ab9640aa7356b1155deb0b4aec9f6 100644 --- a/googleapis/api/label/label.pb.go +++ b/googleapis/api/label/label.pb.go @@ -112,8 +112,8 @@ func (m *LabelDescriptor) GetDescription() string { } func init() { - proto.RegisterType((*LabelDescriptor)(nil), "google.api.LabelDescriptor") proto.RegisterEnum("google.api.LabelDescriptor_ValueType", LabelDescriptor_ValueType_name, LabelDescriptor_ValueType_value) + proto.RegisterType((*LabelDescriptor)(nil), "google.api.LabelDescriptor") } func init() { proto.RegisterFile("google/api/label.proto", fileDescriptor_f372a463e25ba151) } diff --git a/googleapis/api/metric/metric.pb.go b/googleapis/api/metric/metric.pb.go index 59728c324cce66c1236d8df2bf33f318fb3fe199..800e512cc9bfe8e60d1857eb364fa4e20df3e615 100644 --- a/googleapis/api/metric/metric.pb.go +++ b/googleapis/api/metric/metric.pb.go @@ -351,11 +351,11 @@ func (m *Metric) GetLabels() map[string]string { } func init() { + proto.RegisterEnum("google.api.MetricDescriptor_MetricKind", MetricDescriptor_MetricKind_name, MetricDescriptor_MetricKind_value) + proto.RegisterEnum("google.api.MetricDescriptor_ValueType", MetricDescriptor_ValueType_name, MetricDescriptor_ValueType_value) proto.RegisterType((*MetricDescriptor)(nil), "google.api.MetricDescriptor") proto.RegisterType((*Metric)(nil), "google.api.Metric") proto.RegisterMapType((map[string]string)(nil), "google.api.Metric.LabelsEntry") - proto.RegisterEnum("google.api.MetricDescriptor_MetricKind", MetricDescriptor_MetricKind_name, MetricDescriptor_MetricKind_value) - proto.RegisterEnum("google.api.MetricDescriptor_ValueType", MetricDescriptor_ValueType_name, MetricDescriptor_ValueType_value) } func init() { proto.RegisterFile("google/api/metric.proto", fileDescriptor_927eaac1a24f8abb) } diff --git a/googleapis/api/serviceconfig/consumer.pb.go b/googleapis/api/serviceconfig/consumer.pb.go index 90cd7db14cbae7bb10f0a0c791090f9a5c9d8dc4..d37a1bdb3464ef1e3ac68d551c70e1a8fff36faa 100644 --- a/googleapis/api/serviceconfig/consumer.pb.go +++ b/googleapis/api/serviceconfig/consumer.pb.go @@ -185,9 +185,9 @@ func (m *Property) GetDescription() string { } func init() { + proto.RegisterEnum("google.api.Property_PropertyType", Property_PropertyType_name, Property_PropertyType_value) proto.RegisterType((*ProjectProperties)(nil), "google.api.ProjectProperties") proto.RegisterType((*Property)(nil), "google.api.Property") - proto.RegisterEnum("google.api.Property_PropertyType", Property_PropertyType_name, Property_PropertyType_value) } func init() { proto.RegisterFile("google/api/consumer.proto", fileDescriptor_bec5e69370b3104e) } diff --git a/googleapis/api/servicecontrol/v1/check_error.pb.go b/googleapis/api/servicecontrol/v1/check_error.pb.go index 3e72b3199eee05ef97264458bc388de4fb1f27f2..8d45d4444ea591d448dd1d8ae5a17fbc53c18ac9 100644 --- a/googleapis/api/servicecontrol/v1/check_error.pb.go +++ b/googleapis/api/servicecontrol/v1/check_error.pb.go @@ -166,8 +166,8 @@ func (m *CheckError) GetDetail() string { } func init() { - proto.RegisterType((*CheckError)(nil), "google.api.servicecontrol.v1.CheckError") proto.RegisterEnum("google.api.servicecontrol.v1.CheckError_Code", CheckError_Code_name, CheckError_Code_value) + proto.RegisterType((*CheckError)(nil), "google.api.servicecontrol.v1.CheckError") } func init() { diff --git a/googleapis/api/servicecontrol/v1/operation.pb.go b/googleapis/api/servicecontrol/v1/operation.pb.go index 22a0104d42d1f62325e121cca06577b420320b8f..efa3508c12937b80cdf0b08c5572a95b131bad11 100644 --- a/googleapis/api/servicecontrol/v1/operation.pb.go +++ b/googleapis/api/servicecontrol/v1/operation.pb.go @@ -208,9 +208,9 @@ func (m *Operation) GetImportance() Operation_Importance { } func init() { + proto.RegisterEnum("google.api.servicecontrol.v1.Operation_Importance", Operation_Importance_name, Operation_Importance_value) proto.RegisterType((*Operation)(nil), "google.api.servicecontrol.v1.Operation") proto.RegisterMapType((map[string]string)(nil), "google.api.servicecontrol.v1.Operation.LabelsEntry") - proto.RegisterEnum("google.api.servicecontrol.v1.Operation_Importance", Operation_Importance_name, Operation_Importance_value) } func init() { diff --git a/googleapis/api/servicecontrol/v1/quota_controller.pb.go b/googleapis/api/servicecontrol/v1/quota_controller.pb.go index 261f7fc33213a075d94e7c0abaf094d43e453896..75f04ddb03ecd45eed24ee0a897aa009a920816f 100644 --- a/googleapis/api/servicecontrol/v1/quota_controller.pb.go +++ b/googleapis/api/servicecontrol/v1/quota_controller.pb.go @@ -437,13 +437,13 @@ func (m *QuotaError) GetDescription() string { } func init() { + proto.RegisterEnum("google.api.servicecontrol.v1.QuotaOperation_QuotaMode", QuotaOperation_QuotaMode_name, QuotaOperation_QuotaMode_value) + proto.RegisterEnum("google.api.servicecontrol.v1.QuotaError_Code", QuotaError_Code_name, QuotaError_Code_value) proto.RegisterType((*AllocateQuotaRequest)(nil), "google.api.servicecontrol.v1.AllocateQuotaRequest") proto.RegisterType((*QuotaOperation)(nil), "google.api.servicecontrol.v1.QuotaOperation") proto.RegisterMapType((map[string]string)(nil), "google.api.servicecontrol.v1.QuotaOperation.LabelsEntry") proto.RegisterType((*AllocateQuotaResponse)(nil), "google.api.servicecontrol.v1.AllocateQuotaResponse") proto.RegisterType((*QuotaError)(nil), "google.api.servicecontrol.v1.QuotaError") - proto.RegisterEnum("google.api.servicecontrol.v1.QuotaOperation_QuotaMode", QuotaOperation_QuotaMode_name, QuotaOperation_QuotaMode_value) - proto.RegisterEnum("google.api.servicecontrol.v1.QuotaError_Code", QuotaError_Code_name, QuotaError_Code_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/api/servicemanagement/v1/resources.pb.go b/googleapis/api/servicemanagement/v1/resources.pb.go index 422fe5194f108134fcd1fe9f4b9aaad9d35bdec4..1756ba8aecec1a9cbf4147ed6c7feaf9e50c5911 100644 --- a/googleapis/api/servicemanagement/v1/resources.pb.go +++ b/googleapis/api/servicemanagement/v1/resources.pb.go @@ -952,6 +952,10 @@ func (m *Rollout_DeleteServiceStrategy) XXX_DiscardUnknown() { var xxx_messageInfo_Rollout_DeleteServiceStrategy proto.InternalMessageInfo func init() { + proto.RegisterEnum("google.api.servicemanagement.v1.OperationMetadata_Status", OperationMetadata_Status_name, OperationMetadata_Status_value) + proto.RegisterEnum("google.api.servicemanagement.v1.Diagnostic_Kind", Diagnostic_Kind_name, Diagnostic_Kind_value) + proto.RegisterEnum("google.api.servicemanagement.v1.ConfigFile_FileType", ConfigFile_FileType_name, ConfigFile_FileType_value) + proto.RegisterEnum("google.api.servicemanagement.v1.Rollout_RolloutStatus", Rollout_RolloutStatus_name, Rollout_RolloutStatus_value) proto.RegisterType((*ManagedService)(nil), "google.api.servicemanagement.v1.ManagedService") proto.RegisterType((*OperationMetadata)(nil), "google.api.servicemanagement.v1.OperationMetadata") proto.RegisterType((*OperationMetadata_Step)(nil), "google.api.servicemanagement.v1.OperationMetadata.Step") @@ -964,10 +968,6 @@ func init() { proto.RegisterType((*Rollout_TrafficPercentStrategy)(nil), "google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy") proto.RegisterMapType((map[string]float64)(nil), "google.api.servicemanagement.v1.Rollout.TrafficPercentStrategy.PercentagesEntry") proto.RegisterType((*Rollout_DeleteServiceStrategy)(nil), "google.api.servicemanagement.v1.Rollout.DeleteServiceStrategy") - proto.RegisterEnum("google.api.servicemanagement.v1.OperationMetadata_Status", OperationMetadata_Status_name, OperationMetadata_Status_value) - proto.RegisterEnum("google.api.servicemanagement.v1.Diagnostic_Kind", Diagnostic_Kind_name, Diagnostic_Kind_value) - proto.RegisterEnum("google.api.servicemanagement.v1.ConfigFile_FileType", ConfigFile_FileType_name, ConfigFile_FileType_value) - proto.RegisterEnum("google.api.servicemanagement.v1.Rollout_RolloutStatus", Rollout_RolloutStatus_name, Rollout_RolloutStatus_value) } func init() { diff --git a/googleapis/api/servicemanagement/v1/servicemanager.pb.go b/googleapis/api/servicemanagement/v1/servicemanager.pb.go index faa1e66c9b65a97d8299e1be48ee419d75ca73be..a7bbe8e63258eee53693d5eb36e952d7c05b6a27 100644 --- a/googleapis/api/servicemanagement/v1/servicemanager.pb.go +++ b/googleapis/api/servicemanagement/v1/servicemanager.pb.go @@ -1194,6 +1194,7 @@ func (m *GenerateConfigReportResponse) GetDiagnostics() []*Diagnostic { } func init() { + proto.RegisterEnum("google.api.servicemanagement.v1.GetServiceConfigRequest_ConfigView", GetServiceConfigRequest_ConfigView_name, GetServiceConfigRequest_ConfigView_value) proto.RegisterType((*ListServicesRequest)(nil), "google.api.servicemanagement.v1.ListServicesRequest") proto.RegisterType((*ListServicesResponse)(nil), "google.api.servicemanagement.v1.ListServicesResponse") proto.RegisterType((*GetServiceRequest)(nil), "google.api.servicemanagement.v1.GetServiceRequest") @@ -1215,7 +1216,6 @@ func init() { proto.RegisterType((*DisableServiceRequest)(nil), "google.api.servicemanagement.v1.DisableServiceRequest") proto.RegisterType((*GenerateConfigReportRequest)(nil), "google.api.servicemanagement.v1.GenerateConfigReportRequest") proto.RegisterType((*GenerateConfigReportResponse)(nil), "google.api.servicemanagement.v1.GenerateConfigReportResponse") - proto.RegisterEnum("google.api.servicemanagement.v1.GetServiceConfigRequest_ConfigView", GetServiceConfigRequest_ConfigView_name, GetServiceConfigRequest_ConfigView_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/appengine/v1/app_yaml.pb.go b/googleapis/appengine/v1/app_yaml.pb.go index f19995be094a92ab0636d709bed1cd703a6e202a..046e734038e2525601b5e4de507c93ee62ad7df8 100644 --- a/googleapis/appengine/v1/app_yaml.pb.go +++ b/googleapis/appengine/v1/app_yaml.pb.go @@ -942,6 +942,11 @@ func (m *Library) GetVersion() string { } func init() { + proto.RegisterEnum("google.appengine.v1.AuthFailAction", AuthFailAction_name, AuthFailAction_value) + proto.RegisterEnum("google.appengine.v1.LoginRequirement", LoginRequirement_name, LoginRequirement_value) + proto.RegisterEnum("google.appengine.v1.SecurityLevel", SecurityLevel_name, SecurityLevel_value) + proto.RegisterEnum("google.appengine.v1.ErrorHandler_ErrorCode", ErrorHandler_ErrorCode_name, ErrorHandler_ErrorCode_value) + proto.RegisterEnum("google.appengine.v1.UrlMap_RedirectHttpResponseCode", UrlMap_RedirectHttpResponseCode_name, UrlMap_RedirectHttpResponseCode_value) proto.RegisterType((*ApiConfigHandler)(nil), "google.appengine.v1.ApiConfigHandler") proto.RegisterType((*ErrorHandler)(nil), "google.appengine.v1.ErrorHandler") proto.RegisterType((*UrlMap)(nil), "google.appengine.v1.UrlMap") @@ -951,11 +956,6 @@ func init() { proto.RegisterType((*ApiEndpointHandler)(nil), "google.appengine.v1.ApiEndpointHandler") proto.RegisterType((*HealthCheck)(nil), "google.appengine.v1.HealthCheck") proto.RegisterType((*Library)(nil), "google.appengine.v1.Library") - proto.RegisterEnum("google.appengine.v1.AuthFailAction", AuthFailAction_name, AuthFailAction_value) - proto.RegisterEnum("google.appengine.v1.LoginRequirement", LoginRequirement_name, LoginRequirement_value) - proto.RegisterEnum("google.appengine.v1.SecurityLevel", SecurityLevel_name, SecurityLevel_value) - proto.RegisterEnum("google.appengine.v1.ErrorHandler_ErrorCode", ErrorHandler_ErrorCode_name, ErrorHandler_ErrorCode_value) - proto.RegisterEnum("google.appengine.v1.UrlMap_RedirectHttpResponseCode", UrlMap_RedirectHttpResponseCode_name, UrlMap_RedirectHttpResponseCode_value) } func init() { proto.RegisterFile("google/appengine/v1/app_yaml.proto", fileDescriptor_2e3b6ce3f971717f) } diff --git a/googleapis/appengine/v1/appengine.pb.go b/googleapis/appengine/v1/appengine.pb.go index 42fb539c93ca89367058a17670dc48769fa5f307..6faa3003fe72ed14b98f9b0612486cc73573e8ae 100644 --- a/googleapis/appengine/v1/appengine.pb.go +++ b/googleapis/appengine/v1/appengine.pb.go @@ -976,6 +976,7 @@ func (m *DebugInstanceRequest) GetName() string { } func init() { + proto.RegisterEnum("google.appengine.v1.VersionView", VersionView_name, VersionView_value) proto.RegisterType((*GetApplicationRequest)(nil), "google.appengine.v1.GetApplicationRequest") proto.RegisterType((*RepairApplicationRequest)(nil), "google.appengine.v1.RepairApplicationRequest") proto.RegisterType((*ListServicesRequest)(nil), "google.appengine.v1.ListServicesRequest") @@ -994,7 +995,6 @@ func init() { proto.RegisterType((*GetInstanceRequest)(nil), "google.appengine.v1.GetInstanceRequest") proto.RegisterType((*DeleteInstanceRequest)(nil), "google.appengine.v1.DeleteInstanceRequest") proto.RegisterType((*DebugInstanceRequest)(nil), "google.appengine.v1.DebugInstanceRequest") - proto.RegisterEnum("google.appengine.v1.VersionView", VersionView_name, VersionView_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/appengine/v1/instance.pb.go b/googleapis/appengine/v1/instance.pb.go index eb3ecb6f3c39e361e69842cd33e028bdea42d34f..1d5af4fcc96f13e8cf69b6a0ead75596619bebca 100644 --- a/googleapis/appengine/v1/instance.pb.go +++ b/googleapis/appengine/v1/instance.pb.go @@ -257,8 +257,8 @@ func (m *Instance) GetVmDebugEnabled() bool { } func init() { - proto.RegisterType((*Instance)(nil), "google.appengine.v1.Instance") proto.RegisterEnum("google.appengine.v1.Instance_Availability", Instance_Availability_name, Instance_Availability_value) + proto.RegisterType((*Instance)(nil), "google.appengine.v1.Instance") } func init() { proto.RegisterFile("google/appengine/v1/instance.proto", fileDescriptor_3b3f5aa565fc77c9) } diff --git a/googleapis/appengine/v1/service.pb.go b/googleapis/appengine/v1/service.pb.go index 5a5cdbf654691a35287d8acb9d9216af808e6128..8dc425dd1c829f8ea7d029bffb65c9989d74ad28 100644 --- a/googleapis/appengine/v1/service.pb.go +++ b/googleapis/appengine/v1/service.pb.go @@ -188,10 +188,10 @@ func (m *TrafficSplit) GetAllocations() map[string]float64 { } func init() { + proto.RegisterEnum("google.appengine.v1.TrafficSplit_ShardBy", TrafficSplit_ShardBy_name, TrafficSplit_ShardBy_value) proto.RegisterType((*Service)(nil), "google.appengine.v1.Service") proto.RegisterType((*TrafficSplit)(nil), "google.appengine.v1.TrafficSplit") proto.RegisterMapType((map[string]float64)(nil), "google.appengine.v1.TrafficSplit.AllocationsEntry") - proto.RegisterEnum("google.appengine.v1.TrafficSplit_ShardBy", TrafficSplit_ShardBy_name, TrafficSplit_ShardBy_value) } func init() { proto.RegisterFile("google/appengine/v1/service.proto", fileDescriptor_c1fc975248a879f7) } diff --git a/googleapis/appengine/v1/version.pb.go b/googleapis/appengine/v1/version.pb.go index 221409038d9f2e07e48811e4fd55f324b31cb7cb..735b119ed2c5b208a589260e37cf56ddd4bcf338 100644 --- a/googleapis/appengine/v1/version.pb.go +++ b/googleapis/appengine/v1/version.pb.go @@ -1190,6 +1190,8 @@ func (m *Resources) GetMemoryGb() float64 { } func init() { + proto.RegisterEnum("google.appengine.v1.InboundServiceType", InboundServiceType_name, InboundServiceType_value) + proto.RegisterEnum("google.appengine.v1.ServingStatus", ServingStatus_name, ServingStatus_value) proto.RegisterType((*Version)(nil), "google.appengine.v1.Version") proto.RegisterMapType((map[string]string)(nil), "google.appengine.v1.Version.BetaSettingsEntry") proto.RegisterMapType((map[string]string)(nil), "google.appengine.v1.Version.EnvVariablesEntry") @@ -1202,8 +1204,6 @@ func init() { proto.RegisterType((*NetworkUtilization)(nil), "google.appengine.v1.NetworkUtilization") proto.RegisterType((*Network)(nil), "google.appengine.v1.Network") proto.RegisterType((*Resources)(nil), "google.appengine.v1.Resources") - proto.RegisterEnum("google.appengine.v1.InboundServiceType", InboundServiceType_name, InboundServiceType_value) - proto.RegisterEnum("google.appengine.v1.ServingStatus", ServingStatus_name, ServingStatus_value) } func init() { proto.RegisterFile("google/appengine/v1/version.proto", fileDescriptor_fbe3eca208d62f7c) } diff --git a/googleapis/assistant/embedded/v1alpha1/embedded_assistant.pb.go b/googleapis/assistant/embedded/v1alpha1/embedded_assistant.pb.go index a2238e5a48e21a4d9b2771af6a14ed7541451d22..c74bbc28b05b89a647900443ccb84427fb8ce26d 100644 --- a/googleapis/assistant/embedded/v1alpha1/embedded_assistant.pb.go +++ b/googleapis/assistant/embedded/v1alpha1/embedded_assistant.pb.go @@ -894,6 +894,10 @@ func _ConverseResponse_OneofSizer(msg proto.Message) (n int) { } func init() { + proto.RegisterEnum("google.assistant.embedded.v1alpha1.AudioInConfig_Encoding", AudioInConfig_Encoding_name, AudioInConfig_Encoding_value) + proto.RegisterEnum("google.assistant.embedded.v1alpha1.AudioOutConfig_Encoding", AudioOutConfig_Encoding_name, AudioOutConfig_Encoding_value) + proto.RegisterEnum("google.assistant.embedded.v1alpha1.ConverseResult_MicrophoneMode", ConverseResult_MicrophoneMode_name, ConverseResult_MicrophoneMode_value) + proto.RegisterEnum("google.assistant.embedded.v1alpha1.ConverseResponse_EventType", ConverseResponse_EventType_name, ConverseResponse_EventType_value) proto.RegisterType((*ConverseConfig)(nil), "google.assistant.embedded.v1alpha1.ConverseConfig") proto.RegisterType((*AudioInConfig)(nil), "google.assistant.embedded.v1alpha1.AudioInConfig") proto.RegisterType((*AudioOutConfig)(nil), "google.assistant.embedded.v1alpha1.AudioOutConfig") @@ -902,10 +906,6 @@ func init() { proto.RegisterType((*ConverseResult)(nil), "google.assistant.embedded.v1alpha1.ConverseResult") proto.RegisterType((*ConverseRequest)(nil), "google.assistant.embedded.v1alpha1.ConverseRequest") proto.RegisterType((*ConverseResponse)(nil), "google.assistant.embedded.v1alpha1.ConverseResponse") - proto.RegisterEnum("google.assistant.embedded.v1alpha1.AudioInConfig_Encoding", AudioInConfig_Encoding_name, AudioInConfig_Encoding_value) - proto.RegisterEnum("google.assistant.embedded.v1alpha1.AudioOutConfig_Encoding", AudioOutConfig_Encoding_name, AudioOutConfig_Encoding_value) - proto.RegisterEnum("google.assistant.embedded.v1alpha1.ConverseResult_MicrophoneMode", ConverseResult_MicrophoneMode_name, ConverseResult_MicrophoneMode_value) - proto.RegisterEnum("google.assistant.embedded.v1alpha1.ConverseResponse_EventType", ConverseResponse_EventType_name, ConverseResponse_EventType_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/assistant/embedded/v1alpha2/embedded_assistant.pb.go b/googleapis/assistant/embedded/v1alpha2/embedded_assistant.pb.go index e1ec4fc185e6af2dd286d4dc308f238d3a28a53b..8247c38b629e58c1a80f610ebc11e4fe38da0590 100644 --- a/googleapis/assistant/embedded/v1alpha2/embedded_assistant.pb.go +++ b/googleapis/assistant/embedded/v1alpha2/embedded_assistant.pb.go @@ -1487,6 +1487,12 @@ func _DeviceLocation_OneofSizer(msg proto.Message) (n int) { } func init() { + proto.RegisterEnum("google.assistant.embedded.v1alpha2.AssistResponse_EventType", AssistResponse_EventType_name, AssistResponse_EventType_value) + proto.RegisterEnum("google.assistant.embedded.v1alpha2.AudioInConfig_Encoding", AudioInConfig_Encoding_name, AudioInConfig_Encoding_value) + proto.RegisterEnum("google.assistant.embedded.v1alpha2.AudioOutConfig_Encoding", AudioOutConfig_Encoding_name, AudioOutConfig_Encoding_value) + proto.RegisterEnum("google.assistant.embedded.v1alpha2.ScreenOutConfig_ScreenMode", ScreenOutConfig_ScreenMode_name, ScreenOutConfig_ScreenMode_value) + proto.RegisterEnum("google.assistant.embedded.v1alpha2.ScreenOut_Format", ScreenOut_Format_name, ScreenOut_Format_value) + proto.RegisterEnum("google.assistant.embedded.v1alpha2.DialogStateOut_MicrophoneMode", DialogStateOut_MicrophoneMode_name, DialogStateOut_MicrophoneMode_value) proto.RegisterType((*AssistRequest)(nil), "google.assistant.embedded.v1alpha2.AssistRequest") proto.RegisterType((*AssistResponse)(nil), "google.assistant.embedded.v1alpha2.AssistResponse") proto.RegisterType((*DebugInfo)(nil), "google.assistant.embedded.v1alpha2.DebugInfo") @@ -1503,12 +1509,6 @@ func init() { proto.RegisterType((*DialogStateOut)(nil), "google.assistant.embedded.v1alpha2.DialogStateOut") proto.RegisterType((*DebugConfig)(nil), "google.assistant.embedded.v1alpha2.DebugConfig") proto.RegisterType((*DeviceLocation)(nil), "google.assistant.embedded.v1alpha2.DeviceLocation") - proto.RegisterEnum("google.assistant.embedded.v1alpha2.AssistResponse_EventType", AssistResponse_EventType_name, AssistResponse_EventType_value) - proto.RegisterEnum("google.assistant.embedded.v1alpha2.AudioInConfig_Encoding", AudioInConfig_Encoding_name, AudioInConfig_Encoding_value) - proto.RegisterEnum("google.assistant.embedded.v1alpha2.AudioOutConfig_Encoding", AudioOutConfig_Encoding_name, AudioOutConfig_Encoding_value) - proto.RegisterEnum("google.assistant.embedded.v1alpha2.ScreenOutConfig_ScreenMode", ScreenOutConfig_ScreenMode_name, ScreenOutConfig_ScreenMode_value) - proto.RegisterEnum("google.assistant.embedded.v1alpha2.ScreenOut_Format", ScreenOut_Format_name, ScreenOut_Format_value) - proto.RegisterEnum("google.assistant.embedded.v1alpha2.DialogStateOut_MicrophoneMode", DialogStateOut_MicrophoneMode_name, DialogStateOut_MicrophoneMode_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/bigtable/admin/cluster/v1/bigtable_cluster_data.pb.go b/googleapis/bigtable/admin/cluster/v1/bigtable_cluster_data.pb.go index 4bc8cdb1a9a63ae3ec3c94f36798744d436a835e..68498e18c830d242d86ab476e329079b7b6719c5 100644 --- a/googleapis/bigtable/admin/cluster/v1/bigtable_cluster_data.pb.go +++ b/googleapis/bigtable/admin/cluster/v1/bigtable_cluster_data.pb.go @@ -238,10 +238,10 @@ func (m *Cluster) GetDefaultStorageType() StorageType { } func init() { - proto.RegisterType((*Zone)(nil), "google.bigtable.admin.cluster.v1.Zone") - proto.RegisterType((*Cluster)(nil), "google.bigtable.admin.cluster.v1.Cluster") proto.RegisterEnum("google.bigtable.admin.cluster.v1.StorageType", StorageType_name, StorageType_value) proto.RegisterEnum("google.bigtable.admin.cluster.v1.Zone_Status", Zone_Status_name, Zone_Status_value) + proto.RegisterType((*Zone)(nil), "google.bigtable.admin.cluster.v1.Zone") + proto.RegisterType((*Cluster)(nil), "google.bigtable.admin.cluster.v1.Cluster") } func init() { diff --git a/googleapis/bigtable/admin/table/v1/bigtable_table_data.pb.go b/googleapis/bigtable/admin/table/v1/bigtable_table_data.pb.go index 8bc886e695cfb04ac8250bd92c476fb83a0e6372..f3c355428e91ae36a4d99316d460eaf7777a99df 100644 --- a/googleapis/bigtable/admin/table/v1/bigtable_table_data.pb.go +++ b/googleapis/bigtable/admin/table/v1/bigtable_table_data.pb.go @@ -500,13 +500,13 @@ func (m *GcRule_Union) GetRules() []*GcRule { } func init() { + proto.RegisterEnum("google.bigtable.admin.table.v1.Table_TimestampGranularity", Table_TimestampGranularity_name, Table_TimestampGranularity_value) proto.RegisterType((*Table)(nil), "google.bigtable.admin.table.v1.Table") proto.RegisterMapType((map[string]*ColumnFamily)(nil), "google.bigtable.admin.table.v1.Table.ColumnFamiliesEntry") proto.RegisterType((*ColumnFamily)(nil), "google.bigtable.admin.table.v1.ColumnFamily") proto.RegisterType((*GcRule)(nil), "google.bigtable.admin.table.v1.GcRule") proto.RegisterType((*GcRule_Intersection)(nil), "google.bigtable.admin.table.v1.GcRule.Intersection") proto.RegisterType((*GcRule_Union)(nil), "google.bigtable.admin.table.v1.GcRule.Union") - proto.RegisterEnum("google.bigtable.admin.table.v1.Table_TimestampGranularity", Table_TimestampGranularity_name, Table_TimestampGranularity_value) } func init() { diff --git a/googleapis/bigtable/admin/v2/instance.pb.go b/googleapis/bigtable/admin/v2/instance.pb.go index 1ee622a8558063e7a8427445614dee1f5b2988a7..921ff7a4ce5cc3131b2c2646254346082c3aff04 100644 --- a/googleapis/bigtable/admin/v2/instance.pb.go +++ b/googleapis/bigtable/admin/v2/instance.pb.go @@ -604,15 +604,15 @@ func (m *AppProfile_SingleClusterRouting) GetAllowTransactionalWrites() bool { } func init() { + proto.RegisterEnum("google.bigtable.admin.v2.Instance_State", Instance_State_name, Instance_State_value) + proto.RegisterEnum("google.bigtable.admin.v2.Instance_Type", Instance_Type_name, Instance_Type_value) + proto.RegisterEnum("google.bigtable.admin.v2.Cluster_State", Cluster_State_name, Cluster_State_value) proto.RegisterType((*Instance)(nil), "google.bigtable.admin.v2.Instance") proto.RegisterMapType((map[string]string)(nil), "google.bigtable.admin.v2.Instance.LabelsEntry") proto.RegisterType((*Cluster)(nil), "google.bigtable.admin.v2.Cluster") proto.RegisterType((*AppProfile)(nil), "google.bigtable.admin.v2.AppProfile") proto.RegisterType((*AppProfile_MultiClusterRoutingUseAny)(nil), "google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny") proto.RegisterType((*AppProfile_SingleClusterRouting)(nil), "google.bigtable.admin.v2.AppProfile.SingleClusterRouting") - proto.RegisterEnum("google.bigtable.admin.v2.Instance_State", Instance_State_name, Instance_State_value) - proto.RegisterEnum("google.bigtable.admin.v2.Instance_Type", Instance_Type_name, Instance_Type_value) - proto.RegisterEnum("google.bigtable.admin.v2.Cluster_State", Cluster_State_name, Cluster_State_value) } func init() { diff --git a/googleapis/bigtable/admin/v2/table.pb.go b/googleapis/bigtable/admin/v2/table.pb.go index 5460c42ba35c45b861e44c05c8ee2f61b39654cb..9feb5935e0ec425f4df680d12fcaf00c5f4e0140 100644 --- a/googleapis/bigtable/admin/v2/table.pb.go +++ b/googleapis/bigtable/admin/v2/table.pb.go @@ -752,6 +752,10 @@ func (m *Snapshot) GetDescription() string { } func init() { + proto.RegisterEnum("google.bigtable.admin.v2.Table_TimestampGranularity", Table_TimestampGranularity_name, Table_TimestampGranularity_value) + proto.RegisterEnum("google.bigtable.admin.v2.Table_View", Table_View_name, Table_View_value) + proto.RegisterEnum("google.bigtable.admin.v2.Table_ClusterState_ReplicationState", Table_ClusterState_ReplicationState_name, Table_ClusterState_ReplicationState_value) + proto.RegisterEnum("google.bigtable.admin.v2.Snapshot_State", Snapshot_State_name, Snapshot_State_value) proto.RegisterType((*Table)(nil), "google.bigtable.admin.v2.Table") proto.RegisterMapType((map[string]*Table_ClusterState)(nil), "google.bigtable.admin.v2.Table.ClusterStatesEntry") proto.RegisterMapType((map[string]*ColumnFamily)(nil), "google.bigtable.admin.v2.Table.ColumnFamiliesEntry") @@ -761,10 +765,6 @@ func init() { proto.RegisterType((*GcRule_Intersection)(nil), "google.bigtable.admin.v2.GcRule.Intersection") proto.RegisterType((*GcRule_Union)(nil), "google.bigtable.admin.v2.GcRule.Union") proto.RegisterType((*Snapshot)(nil), "google.bigtable.admin.v2.Snapshot") - proto.RegisterEnum("google.bigtable.admin.v2.Table_TimestampGranularity", Table_TimestampGranularity_name, Table_TimestampGranularity_value) - proto.RegisterEnum("google.bigtable.admin.v2.Table_View", Table_View_name, Table_View_value) - proto.RegisterEnum("google.bigtable.admin.v2.Table_ClusterState_ReplicationState", Table_ClusterState_ReplicationState_name, Table_ClusterState_ReplicationState_value) - proto.RegisterEnum("google.bigtable.admin.v2.Snapshot_State", Snapshot_State_name, Snapshot_State_value) } func init() { diff --git a/googleapis/cloud/asset/v1beta1/asset_service.pb.go b/googleapis/cloud/asset/v1beta1/asset_service.pb.go index 2f449139229125997e939322e7a6f34b9e093e59..c4b853e7d5d3a8bf856d4198e97bb5646d437a5b 100644 --- a/googleapis/cloud/asset/v1beta1/asset_service.pb.go +++ b/googleapis/cloud/asset/v1beta1/asset_service.pb.go @@ -479,13 +479,13 @@ func (m *GcsDestination) GetUri() string { } func init() { + proto.RegisterEnum("google.cloud.asset.v1beta1.ContentType", ContentType_name, ContentType_value) proto.RegisterType((*ExportAssetsRequest)(nil), "google.cloud.asset.v1beta1.ExportAssetsRequest") proto.RegisterType((*ExportAssetsResponse)(nil), "google.cloud.asset.v1beta1.ExportAssetsResponse") proto.RegisterType((*BatchGetAssetsHistoryRequest)(nil), "google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest") proto.RegisterType((*BatchGetAssetsHistoryResponse)(nil), "google.cloud.asset.v1beta1.BatchGetAssetsHistoryResponse") proto.RegisterType((*OutputConfig)(nil), "google.cloud.asset.v1beta1.OutputConfig") proto.RegisterType((*GcsDestination)(nil), "google.cloud.asset.v1beta1.GcsDestination") - proto.RegisterEnum("google.cloud.asset.v1beta1.ContentType", ContentType_name, ContentType_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/automl/v1beta1/classification.pb.go b/googleapis/cloud/automl/v1beta1/classification.pb.go index d8171484b6bad4942972cba6ef5ea8a867e27006..9eb36908677366d2029a75d3b765d930dd0ddfd0 100644 --- a/googleapis/cloud/automl/v1beta1/classification.pb.go +++ b/googleapis/cloud/automl/v1beta1/classification.pb.go @@ -389,12 +389,12 @@ func (m *ClassificationEvaluationMetrics_ConfusionMatrix_Row) GetExampleCount() } func init() { + proto.RegisterEnum("google.cloud.automl.v1beta1.ClassificationType", ClassificationType_name, ClassificationType_value) proto.RegisterType((*ClassificationAnnotation)(nil), "google.cloud.automl.v1beta1.ClassificationAnnotation") proto.RegisterType((*ClassificationEvaluationMetrics)(nil), "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics") proto.RegisterType((*ClassificationEvaluationMetrics_ConfidenceMetricsEntry)(nil), "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry") proto.RegisterType((*ClassificationEvaluationMetrics_ConfusionMatrix)(nil), "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix") proto.RegisterType((*ClassificationEvaluationMetrics_ConfusionMatrix_Row)(nil), "google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix.Row") - proto.RegisterEnum("google.cloud.automl.v1beta1.ClassificationType", ClassificationType_name, ClassificationType_value) } func init() { diff --git a/googleapis/cloud/automl/v1beta1/model.pb.go b/googleapis/cloud/automl/v1beta1/model.pb.go index d4f95a47e376caaebf5e1761435005e22d8741f6..ecc269b3dc0c878780123834c7a758ee809306f0 100644 --- a/googleapis/cloud/automl/v1beta1/model.pb.go +++ b/googleapis/cloud/automl/v1beta1/model.pb.go @@ -303,8 +303,8 @@ func _Model_OneofSizer(msg proto.Message) (n int) { } func init() { - proto.RegisterType((*Model)(nil), "google.cloud.automl.v1beta1.Model") proto.RegisterEnum("google.cloud.automl.v1beta1.Model_DeploymentState", Model_DeploymentState_name, Model_DeploymentState_value) + proto.RegisterType((*Model)(nil), "google.cloud.automl.v1beta1.Model") } func init() { diff --git a/googleapis/cloud/bigquery/datatransfer/v1/datatransfer.pb.go b/googleapis/cloud/bigquery/datatransfer/v1/datatransfer.pb.go index e7a0315b0e89e11f339ceacd77b55153ab048344..9b67707f88cf1086b07ada650fc080822694c134 100644 --- a/googleapis/cloud/bigquery/datatransfer/v1/datatransfer.pb.go +++ b/googleapis/cloud/bigquery/datatransfer/v1/datatransfer.pb.go @@ -1632,6 +1632,10 @@ func (m *ScheduleTransferRunsResponse) GetRuns() []*TransferRun { } func init() { + proto.RegisterEnum("google.cloud.bigquery.datatransfer.v1.DataSourceParameter_Type", DataSourceParameter_Type_name, DataSourceParameter_Type_value) + proto.RegisterEnum("google.cloud.bigquery.datatransfer.v1.DataSource_AuthorizationType", DataSource_AuthorizationType_name, DataSource_AuthorizationType_value) + proto.RegisterEnum("google.cloud.bigquery.datatransfer.v1.DataSource_DataRefreshType", DataSource_DataRefreshType_name, DataSource_DataRefreshType_value) + proto.RegisterEnum("google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest_RunAttempt", ListTransferRunsRequest_RunAttempt_name, ListTransferRunsRequest_RunAttempt_value) proto.RegisterType((*DataSourceParameter)(nil), "google.cloud.bigquery.datatransfer.v1.DataSourceParameter") proto.RegisterType((*DataSource)(nil), "google.cloud.bigquery.datatransfer.v1.DataSource") proto.RegisterType((*GetDataSourceRequest)(nil), "google.cloud.bigquery.datatransfer.v1.GetDataSourceRequest") @@ -1653,10 +1657,6 @@ func init() { proto.RegisterType((*CheckValidCredsResponse)(nil), "google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse") proto.RegisterType((*ScheduleTransferRunsRequest)(nil), "google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsRequest") proto.RegisterType((*ScheduleTransferRunsResponse)(nil), "google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse") - proto.RegisterEnum("google.cloud.bigquery.datatransfer.v1.DataSourceParameter_Type", DataSourceParameter_Type_name, DataSourceParameter_Type_value) - proto.RegisterEnum("google.cloud.bigquery.datatransfer.v1.DataSource_AuthorizationType", DataSource_AuthorizationType_name, DataSource_AuthorizationType_value) - proto.RegisterEnum("google.cloud.bigquery.datatransfer.v1.DataSource_DataRefreshType", DataSource_DataRefreshType_name, DataSource_DataRefreshType_value) - proto.RegisterEnum("google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest_RunAttempt", ListTransferRunsRequest_RunAttempt_name, ListTransferRunsRequest_RunAttempt_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/bigquery/datatransfer/v1/transfer.pb.go b/googleapis/cloud/bigquery/datatransfer/v1/transfer.pb.go index bf35c26b7b225bffa0541b3fae9465ff9cc6e0f7..f48c799ad846701509b842eea44c38399d85eeb7 100644 --- a/googleapis/cloud/bigquery/datatransfer/v1/transfer.pb.go +++ b/googleapis/cloud/bigquery/datatransfer/v1/transfer.pb.go @@ -541,12 +541,12 @@ func (m *TransferMessage) GetMessageText() string { } func init() { - proto.RegisterType((*TransferConfig)(nil), "google.cloud.bigquery.datatransfer.v1.TransferConfig") - proto.RegisterType((*TransferRun)(nil), "google.cloud.bigquery.datatransfer.v1.TransferRun") - proto.RegisterType((*TransferMessage)(nil), "google.cloud.bigquery.datatransfer.v1.TransferMessage") proto.RegisterEnum("google.cloud.bigquery.datatransfer.v1.TransferType", TransferType_name, TransferType_value) proto.RegisterEnum("google.cloud.bigquery.datatransfer.v1.TransferState", TransferState_name, TransferState_value) proto.RegisterEnum("google.cloud.bigquery.datatransfer.v1.TransferMessage_MessageSeverity", TransferMessage_MessageSeverity_name, TransferMessage_MessageSeverity_value) + proto.RegisterType((*TransferConfig)(nil), "google.cloud.bigquery.datatransfer.v1.TransferConfig") + proto.RegisterType((*TransferRun)(nil), "google.cloud.bigquery.datatransfer.v1.TransferRun") + proto.RegisterType((*TransferMessage)(nil), "google.cloud.bigquery.datatransfer.v1.TransferMessage") } func init() { diff --git a/googleapis/cloud/dataproc/v1/clusters.pb.go b/googleapis/cloud/dataproc/v1/clusters.pb.go index 42608f9b1fbff9ca95c33f5373f08e8d92c345ec..c59f6235a016b4e7a829584b098413e9f2346426 100644 --- a/googleapis/cloud/dataproc/v1/clusters.pb.go +++ b/googleapis/cloud/dataproc/v1/clusters.pb.go @@ -1588,6 +1588,8 @@ func (m *DiagnoseClusterResults) GetOutputUri() string { } func init() { + proto.RegisterEnum("google.cloud.dataproc.v1.ClusterStatus_State", ClusterStatus_State_name, ClusterStatus_State_value) + proto.RegisterEnum("google.cloud.dataproc.v1.ClusterStatus_Substate", ClusterStatus_Substate_name, ClusterStatus_Substate_value) proto.RegisterType((*Cluster)(nil), "google.cloud.dataproc.v1.Cluster") proto.RegisterMapType((map[string]string)(nil), "google.cloud.dataproc.v1.Cluster.LabelsEntry") proto.RegisterType((*ClusterConfig)(nil), "google.cloud.dataproc.v1.ClusterConfig") @@ -1612,8 +1614,6 @@ func init() { proto.RegisterType((*ListClustersResponse)(nil), "google.cloud.dataproc.v1.ListClustersResponse") proto.RegisterType((*DiagnoseClusterRequest)(nil), "google.cloud.dataproc.v1.DiagnoseClusterRequest") proto.RegisterType((*DiagnoseClusterResults)(nil), "google.cloud.dataproc.v1.DiagnoseClusterResults") - proto.RegisterEnum("google.cloud.dataproc.v1.ClusterStatus_State", ClusterStatus_State_name, ClusterStatus_State_value) - proto.RegisterEnum("google.cloud.dataproc.v1.ClusterStatus_Substate", ClusterStatus_Substate_name, ClusterStatus_Substate_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dataproc/v1/jobs.pb.go b/googleapis/cloud/dataproc/v1/jobs.pb.go index 304cc4f2d8271dfc05f51d2cfb3c572c1627c58e..e26eeeab3d2dd92e2275124d9385c8d97ccfc018 100644 --- a/googleapis/cloud/dataproc/v1/jobs.pb.go +++ b/googleapis/cloud/dataproc/v1/jobs.pb.go @@ -2666,6 +2666,11 @@ func (m *DeleteJobRequest) GetJobId() string { } func init() { + proto.RegisterEnum("google.cloud.dataproc.v1.LoggingConfig_Level", LoggingConfig_Level_name, LoggingConfig_Level_value) + proto.RegisterEnum("google.cloud.dataproc.v1.JobStatus_State", JobStatus_State_name, JobStatus_State_value) + proto.RegisterEnum("google.cloud.dataproc.v1.JobStatus_Substate", JobStatus_Substate_name, JobStatus_Substate_value) + proto.RegisterEnum("google.cloud.dataproc.v1.YarnApplication_State", YarnApplication_State_name, YarnApplication_State_value) + proto.RegisterEnum("google.cloud.dataproc.v1.ListJobsRequest_JobStateMatcher", ListJobsRequest_JobStateMatcher_name, ListJobsRequest_JobStateMatcher_value) proto.RegisterType((*LoggingConfig)(nil), "google.cloud.dataproc.v1.LoggingConfig") proto.RegisterMapType((map[string]LoggingConfig_Level)(nil), "google.cloud.dataproc.v1.LoggingConfig.DriverLogLevelsEntry") proto.RegisterType((*HadoopJob)(nil), "google.cloud.dataproc.v1.HadoopJob") @@ -2698,11 +2703,6 @@ func init() { proto.RegisterType((*ListJobsResponse)(nil), "google.cloud.dataproc.v1.ListJobsResponse") proto.RegisterType((*CancelJobRequest)(nil), "google.cloud.dataproc.v1.CancelJobRequest") proto.RegisterType((*DeleteJobRequest)(nil), "google.cloud.dataproc.v1.DeleteJobRequest") - proto.RegisterEnum("google.cloud.dataproc.v1.LoggingConfig_Level", LoggingConfig_Level_name, LoggingConfig_Level_value) - proto.RegisterEnum("google.cloud.dataproc.v1.JobStatus_State", JobStatus_State_name, JobStatus_State_value) - proto.RegisterEnum("google.cloud.dataproc.v1.JobStatus_Substate", JobStatus_Substate_name, JobStatus_Substate_value) - proto.RegisterEnum("google.cloud.dataproc.v1.YarnApplication_State", YarnApplication_State_name, YarnApplication_State_value) - proto.RegisterEnum("google.cloud.dataproc.v1.ListJobsRequest_JobStateMatcher", ListJobsRequest_JobStateMatcher_name, ListJobsRequest_JobStateMatcher_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dataproc/v1/operations.pb.go b/googleapis/cloud/dataproc/v1/operations.pb.go index 8b3ef8c32c7564c650039a07a1481c2d06fbeee1..3b9f007fd6ea076cf24ae9d9ffee3b0caa304ee6 100644 --- a/googleapis/cloud/dataproc/v1/operations.pb.go +++ b/googleapis/cloud/dataproc/v1/operations.pb.go @@ -233,10 +233,10 @@ func (m *ClusterOperationMetadata) GetWarnings() []string { } func init() { + proto.RegisterEnum("google.cloud.dataproc.v1.ClusterOperationStatus_State", ClusterOperationStatus_State_name, ClusterOperationStatus_State_value) proto.RegisterType((*ClusterOperationStatus)(nil), "google.cloud.dataproc.v1.ClusterOperationStatus") proto.RegisterType((*ClusterOperationMetadata)(nil), "google.cloud.dataproc.v1.ClusterOperationMetadata") proto.RegisterMapType((map[string]string)(nil), "google.cloud.dataproc.v1.ClusterOperationMetadata.LabelsEntry") - proto.RegisterEnum("google.cloud.dataproc.v1.ClusterOperationStatus_State", ClusterOperationStatus_State_name, ClusterOperationStatus_State_value) } func init() { diff --git a/googleapis/cloud/dataproc/v1beta2/clusters.pb.go b/googleapis/cloud/dataproc/v1beta2/clusters.pb.go index 8e6b647c3477def3ada87a3cafe72e9a89aa41b8..12d072e4b08032432a4f64c60f926b1ca81ee590 100644 --- a/googleapis/cloud/dataproc/v1beta2/clusters.pb.go +++ b/googleapis/cloud/dataproc/v1beta2/clusters.pb.go @@ -1878,6 +1878,8 @@ func (m *DiagnoseClusterResults) GetOutputUri() string { } func init() { + proto.RegisterEnum("google.cloud.dataproc.v1beta2.ClusterStatus_State", ClusterStatus_State_name, ClusterStatus_State_value) + proto.RegisterEnum("google.cloud.dataproc.v1beta2.ClusterStatus_Substate", ClusterStatus_Substate_name, ClusterStatus_Substate_value) proto.RegisterType((*Cluster)(nil), "google.cloud.dataproc.v1beta2.Cluster") proto.RegisterMapType((map[string]string)(nil), "google.cloud.dataproc.v1beta2.Cluster.LabelsEntry") proto.RegisterType((*ClusterConfig)(nil), "google.cloud.dataproc.v1beta2.ClusterConfig") @@ -1903,8 +1905,6 @@ func init() { proto.RegisterType((*ListClustersResponse)(nil), "google.cloud.dataproc.v1beta2.ListClustersResponse") proto.RegisterType((*DiagnoseClusterRequest)(nil), "google.cloud.dataproc.v1beta2.DiagnoseClusterRequest") proto.RegisterType((*DiagnoseClusterResults)(nil), "google.cloud.dataproc.v1beta2.DiagnoseClusterResults") - proto.RegisterEnum("google.cloud.dataproc.v1beta2.ClusterStatus_State", ClusterStatus_State_name, ClusterStatus_State_value) - proto.RegisterEnum("google.cloud.dataproc.v1beta2.ClusterStatus_Substate", ClusterStatus_Substate_name, ClusterStatus_Substate_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dataproc/v1beta2/jobs.pb.go b/googleapis/cloud/dataproc/v1beta2/jobs.pb.go index b71234ba58ad66562dff45dd0a2a160fc3a8cfc5..b597b6f0b410b5a0470350cae52f3fdd8abbf87d 100644 --- a/googleapis/cloud/dataproc/v1beta2/jobs.pb.go +++ b/googleapis/cloud/dataproc/v1beta2/jobs.pb.go @@ -2684,6 +2684,11 @@ func (m *DeleteJobRequest) GetJobId() string { } func init() { + proto.RegisterEnum("google.cloud.dataproc.v1beta2.LoggingConfig_Level", LoggingConfig_Level_name, LoggingConfig_Level_value) + proto.RegisterEnum("google.cloud.dataproc.v1beta2.JobStatus_State", JobStatus_State_name, JobStatus_State_value) + proto.RegisterEnum("google.cloud.dataproc.v1beta2.JobStatus_Substate", JobStatus_Substate_name, JobStatus_Substate_value) + proto.RegisterEnum("google.cloud.dataproc.v1beta2.YarnApplication_State", YarnApplication_State_name, YarnApplication_State_value) + proto.RegisterEnum("google.cloud.dataproc.v1beta2.ListJobsRequest_JobStateMatcher", ListJobsRequest_JobStateMatcher_name, ListJobsRequest_JobStateMatcher_value) proto.RegisterType((*LoggingConfig)(nil), "google.cloud.dataproc.v1beta2.LoggingConfig") proto.RegisterMapType((map[string]LoggingConfig_Level)(nil), "google.cloud.dataproc.v1beta2.LoggingConfig.DriverLogLevelsEntry") proto.RegisterType((*HadoopJob)(nil), "google.cloud.dataproc.v1beta2.HadoopJob") @@ -2716,11 +2721,6 @@ func init() { proto.RegisterType((*ListJobsResponse)(nil), "google.cloud.dataproc.v1beta2.ListJobsResponse") proto.RegisterType((*CancelJobRequest)(nil), "google.cloud.dataproc.v1beta2.CancelJobRequest") proto.RegisterType((*DeleteJobRequest)(nil), "google.cloud.dataproc.v1beta2.DeleteJobRequest") - proto.RegisterEnum("google.cloud.dataproc.v1beta2.LoggingConfig_Level", LoggingConfig_Level_name, LoggingConfig_Level_value) - proto.RegisterEnum("google.cloud.dataproc.v1beta2.JobStatus_State", JobStatus_State_name, JobStatus_State_value) - proto.RegisterEnum("google.cloud.dataproc.v1beta2.JobStatus_Substate", JobStatus_Substate_name, JobStatus_Substate_value) - proto.RegisterEnum("google.cloud.dataproc.v1beta2.YarnApplication_State", YarnApplication_State_name, YarnApplication_State_value) - proto.RegisterEnum("google.cloud.dataproc.v1beta2.ListJobsRequest_JobStateMatcher", ListJobsRequest_JobStateMatcher_name, ListJobsRequest_JobStateMatcher_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dataproc/v1beta2/operations.pb.go b/googleapis/cloud/dataproc/v1beta2/operations.pb.go index b5da24f88ae579740893c3e69b518e8254275c86..35279169b54b409f000d14504ab8662b104db8f6 100644 --- a/googleapis/cloud/dataproc/v1beta2/operations.pb.go +++ b/googleapis/cloud/dataproc/v1beta2/operations.pb.go @@ -231,10 +231,10 @@ func (m *ClusterOperationMetadata) GetWarnings() []string { } func init() { + proto.RegisterEnum("google.cloud.dataproc.v1beta2.ClusterOperationStatus_State", ClusterOperationStatus_State_name, ClusterOperationStatus_State_value) proto.RegisterType((*ClusterOperationStatus)(nil), "google.cloud.dataproc.v1beta2.ClusterOperationStatus") proto.RegisterType((*ClusterOperationMetadata)(nil), "google.cloud.dataproc.v1beta2.ClusterOperationMetadata") proto.RegisterMapType((map[string]string)(nil), "google.cloud.dataproc.v1beta2.ClusterOperationMetadata.LabelsEntry") - proto.RegisterEnum("google.cloud.dataproc.v1beta2.ClusterOperationStatus_State", ClusterOperationStatus_State_name, ClusterOperationStatus_State_value) } func init() { diff --git a/googleapis/cloud/dataproc/v1beta2/workflow_templates.pb.go b/googleapis/cloud/dataproc/v1beta2/workflow_templates.pb.go index b036abdf3063c41c5fccc71089460bcf8de978bf..fa11d707fb03de3143894fa00754e2e64fa56143 100644 --- a/googleapis/cloud/dataproc/v1beta2/workflow_templates.pb.go +++ b/googleapis/cloud/dataproc/v1beta2/workflow_templates.pb.go @@ -1604,6 +1604,8 @@ func (m *DeleteWorkflowTemplateRequest) GetVersion() int32 { } func init() { + proto.RegisterEnum("google.cloud.dataproc.v1beta2.WorkflowMetadata_State", WorkflowMetadata_State_name, WorkflowMetadata_State_value) + proto.RegisterEnum("google.cloud.dataproc.v1beta2.WorkflowNode_NodeState", WorkflowNode_NodeState_name, WorkflowNode_NodeState_value) proto.RegisterType((*WorkflowTemplate)(nil), "google.cloud.dataproc.v1beta2.WorkflowTemplate") proto.RegisterMapType((map[string]string)(nil), "google.cloud.dataproc.v1beta2.WorkflowTemplate.LabelsEntry") proto.RegisterType((*WorkflowTemplatePlacement)(nil), "google.cloud.dataproc.v1beta2.WorkflowTemplatePlacement") @@ -1626,8 +1628,6 @@ func init() { proto.RegisterType((*ListWorkflowTemplatesRequest)(nil), "google.cloud.dataproc.v1beta2.ListWorkflowTemplatesRequest") proto.RegisterType((*ListWorkflowTemplatesResponse)(nil), "google.cloud.dataproc.v1beta2.ListWorkflowTemplatesResponse") proto.RegisterType((*DeleteWorkflowTemplateRequest)(nil), "google.cloud.dataproc.v1beta2.DeleteWorkflowTemplateRequest") - proto.RegisterEnum("google.cloud.dataproc.v1beta2.WorkflowMetadata_State", WorkflowMetadata_State_name, WorkflowMetadata_State_value) - proto.RegisterEnum("google.cloud.dataproc.v1beta2.WorkflowNode_NodeState", WorkflowNode_NodeState_name, WorkflowNode_NodeState_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dialogflow/v2/agent.pb.go b/googleapis/cloud/dialogflow/v2/agent.pb.go index 342863a74d7e2f5e5d95fd2860704a5b86cfa730..b48bcc63fac845f5a69bfa655ed2dc46c5e9330f 100644 --- a/googleapis/cloud/dialogflow/v2/agent.pb.go +++ b/googleapis/cloud/dialogflow/v2/agent.pb.go @@ -896,6 +896,7 @@ func _RestoreAgentRequest_OneofSizer(msg proto.Message) (n int) { } func init() { + proto.RegisterEnum("google.cloud.dialogflow.v2.Agent_MatchMode", Agent_MatchMode_name, Agent_MatchMode_value) proto.RegisterType((*Agent)(nil), "google.cloud.dialogflow.v2.Agent") proto.RegisterType((*GetAgentRequest)(nil), "google.cloud.dialogflow.v2.GetAgentRequest") proto.RegisterType((*SearchAgentsRequest)(nil), "google.cloud.dialogflow.v2.SearchAgentsRequest") @@ -905,7 +906,6 @@ func init() { proto.RegisterType((*ExportAgentResponse)(nil), "google.cloud.dialogflow.v2.ExportAgentResponse") proto.RegisterType((*ImportAgentRequest)(nil), "google.cloud.dialogflow.v2.ImportAgentRequest") proto.RegisterType((*RestoreAgentRequest)(nil), "google.cloud.dialogflow.v2.RestoreAgentRequest") - proto.RegisterEnum("google.cloud.dialogflow.v2.Agent_MatchMode", Agent_MatchMode_name, Agent_MatchMode_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dialogflow/v2/entity_type.pb.go b/googleapis/cloud/dialogflow/v2/entity_type.pb.go index 4372e7b5644371f2ab75218b5c026570d9f415c4..fbf5fe742c4b5c47f9d439fc91f1ce38a942a7d9 100644 --- a/googleapis/cloud/dialogflow/v2/entity_type.pb.go +++ b/googleapis/cloud/dialogflow/v2/entity_type.pb.go @@ -1107,6 +1107,8 @@ func (m *EntityTypeBatch) GetEntityTypes() []*EntityType { } func init() { + proto.RegisterEnum("google.cloud.dialogflow.v2.EntityType_Kind", EntityType_Kind_name, EntityType_Kind_value) + proto.RegisterEnum("google.cloud.dialogflow.v2.EntityType_AutoExpansionMode", EntityType_AutoExpansionMode_name, EntityType_AutoExpansionMode_value) proto.RegisterType((*EntityType)(nil), "google.cloud.dialogflow.v2.EntityType") proto.RegisterType((*EntityType_Entity)(nil), "google.cloud.dialogflow.v2.EntityType.Entity") proto.RegisterType((*ListEntityTypesRequest)(nil), "google.cloud.dialogflow.v2.ListEntityTypesRequest") @@ -1122,8 +1124,6 @@ func init() { proto.RegisterType((*BatchUpdateEntitiesRequest)(nil), "google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest") proto.RegisterType((*BatchDeleteEntitiesRequest)(nil), "google.cloud.dialogflow.v2.BatchDeleteEntitiesRequest") proto.RegisterType((*EntityTypeBatch)(nil), "google.cloud.dialogflow.v2.EntityTypeBatch") - proto.RegisterEnum("google.cloud.dialogflow.v2.EntityType_Kind", EntityType_Kind_name, EntityType_Kind_value) - proto.RegisterEnum("google.cloud.dialogflow.v2.EntityType_AutoExpansionMode", EntityType_AutoExpansionMode_name, EntityType_AutoExpansionMode_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dialogflow/v2/intent.pb.go b/googleapis/cloud/dialogflow/v2/intent.pb.go index dc306cc2ed23bf96b0394ebe01ea72d56a788318..5711abeaf34882449d4cc0a70423d2882a3f8720 100644 --- a/googleapis/cloud/dialogflow/v2/intent.pb.go +++ b/googleapis/cloud/dialogflow/v2/intent.pb.go @@ -2896,6 +2896,10 @@ func (m *IntentBatch) GetIntents() []*Intent { } func init() { + proto.RegisterEnum("google.cloud.dialogflow.v2.IntentView", IntentView_name, IntentView_value) + proto.RegisterEnum("google.cloud.dialogflow.v2.Intent_WebhookState", Intent_WebhookState_name, Intent_WebhookState_value) + proto.RegisterEnum("google.cloud.dialogflow.v2.Intent_TrainingPhrase_Type", Intent_TrainingPhrase_Type_name, Intent_TrainingPhrase_Type_value) + proto.RegisterEnum("google.cloud.dialogflow.v2.Intent_Message_Platform", Intent_Message_Platform_name, Intent_Message_Platform_value) proto.RegisterType((*Intent)(nil), "google.cloud.dialogflow.v2.Intent") proto.RegisterType((*Intent_TrainingPhrase)(nil), "google.cloud.dialogflow.v2.Intent.TrainingPhrase") proto.RegisterType((*Intent_TrainingPhrase_Part)(nil), "google.cloud.dialogflow.v2.Intent.TrainingPhrase.Part") @@ -2930,10 +2934,6 @@ func init() { proto.RegisterType((*BatchUpdateIntentsResponse)(nil), "google.cloud.dialogflow.v2.BatchUpdateIntentsResponse") proto.RegisterType((*BatchDeleteIntentsRequest)(nil), "google.cloud.dialogflow.v2.BatchDeleteIntentsRequest") proto.RegisterType((*IntentBatch)(nil), "google.cloud.dialogflow.v2.IntentBatch") - proto.RegisterEnum("google.cloud.dialogflow.v2.IntentView", IntentView_name, IntentView_value) - proto.RegisterEnum("google.cloud.dialogflow.v2.Intent_WebhookState", Intent_WebhookState_name, Intent_WebhookState_value) - proto.RegisterEnum("google.cloud.dialogflow.v2.Intent_TrainingPhrase_Type", Intent_TrainingPhrase_Type_name, Intent_TrainingPhrase_Type_value) - proto.RegisterEnum("google.cloud.dialogflow.v2.Intent_Message_Platform", Intent_Message_Platform_name, Intent_Message_Platform_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dialogflow/v2/session.pb.go b/googleapis/cloud/dialogflow/v2/session.pb.go index ed2a61d78605f6f3b13af1ce47c2e42d1fed9da5..aabfe46cf02e3764f89b2f125ca96e5e4dc21e51 100644 --- a/googleapis/cloud/dialogflow/v2/session.pb.go +++ b/googleapis/cloud/dialogflow/v2/session.pb.go @@ -1248,6 +1248,8 @@ func (m *EventInput) GetLanguageCode() string { } func init() { + proto.RegisterEnum("google.cloud.dialogflow.v2.AudioEncoding", AudioEncoding_name, AudioEncoding_value) + proto.RegisterEnum("google.cloud.dialogflow.v2.StreamingRecognitionResult_MessageType", StreamingRecognitionResult_MessageType_name, StreamingRecognitionResult_MessageType_value) proto.RegisterType((*DetectIntentRequest)(nil), "google.cloud.dialogflow.v2.DetectIntentRequest") proto.RegisterType((*DetectIntentResponse)(nil), "google.cloud.dialogflow.v2.DetectIntentResponse") proto.RegisterType((*QueryParameters)(nil), "google.cloud.dialogflow.v2.QueryParameters") @@ -1259,8 +1261,6 @@ func init() { proto.RegisterType((*InputAudioConfig)(nil), "google.cloud.dialogflow.v2.InputAudioConfig") proto.RegisterType((*TextInput)(nil), "google.cloud.dialogflow.v2.TextInput") proto.RegisterType((*EventInput)(nil), "google.cloud.dialogflow.v2.EventInput") - proto.RegisterEnum("google.cloud.dialogflow.v2.AudioEncoding", AudioEncoding_name, AudioEncoding_value) - proto.RegisterEnum("google.cloud.dialogflow.v2.StreamingRecognitionResult_MessageType", StreamingRecognitionResult_MessageType_name, StreamingRecognitionResult_MessageType_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dialogflow/v2/session_entity_type.pb.go b/googleapis/cloud/dialogflow/v2/session_entity_type.pb.go index 4ea1d594a5eeaf822c016abb3ae89ff6135cd7e9..9cf087e48c271a416e9d192eab159d05380da1cc 100644 --- a/googleapis/cloud/dialogflow/v2/session_entity_type.pb.go +++ b/googleapis/cloud/dialogflow/v2/session_entity_type.pb.go @@ -438,6 +438,7 @@ func (m *DeleteSessionEntityTypeRequest) GetName() string { } func init() { + proto.RegisterEnum("google.cloud.dialogflow.v2.SessionEntityType_EntityOverrideMode", SessionEntityType_EntityOverrideMode_name, SessionEntityType_EntityOverrideMode_value) proto.RegisterType((*SessionEntityType)(nil), "google.cloud.dialogflow.v2.SessionEntityType") proto.RegisterType((*ListSessionEntityTypesRequest)(nil), "google.cloud.dialogflow.v2.ListSessionEntityTypesRequest") proto.RegisterType((*ListSessionEntityTypesResponse)(nil), "google.cloud.dialogflow.v2.ListSessionEntityTypesResponse") @@ -445,7 +446,6 @@ func init() { proto.RegisterType((*CreateSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest") proto.RegisterType((*UpdateSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.UpdateSessionEntityTypeRequest") proto.RegisterType((*DeleteSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2.DeleteSessionEntityTypeRequest") - proto.RegisterEnum("google.cloud.dialogflow.v2.SessionEntityType_EntityOverrideMode", SessionEntityType_EntityOverrideMode_name, SessionEntityType_EntityOverrideMode_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dialogflow/v2beta1/agent.pb.go b/googleapis/cloud/dialogflow/v2beta1/agent.pb.go index 1f6ec346b1b4d98d457389c5019a3ee574bc0e14..27f9188286d79581d5fa1386c8b899faba12b2e5 100644 --- a/googleapis/cloud/dialogflow/v2beta1/agent.pb.go +++ b/googleapis/cloud/dialogflow/v2beta1/agent.pb.go @@ -898,6 +898,7 @@ func _RestoreAgentRequest_OneofSizer(msg proto.Message) (n int) { } func init() { + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.Agent_MatchMode", Agent_MatchMode_name, Agent_MatchMode_value) proto.RegisterType((*Agent)(nil), "google.cloud.dialogflow.v2beta1.Agent") proto.RegisterType((*GetAgentRequest)(nil), "google.cloud.dialogflow.v2beta1.GetAgentRequest") proto.RegisterType((*SearchAgentsRequest)(nil), "google.cloud.dialogflow.v2beta1.SearchAgentsRequest") @@ -907,7 +908,6 @@ func init() { proto.RegisterType((*ExportAgentResponse)(nil), "google.cloud.dialogflow.v2beta1.ExportAgentResponse") proto.RegisterType((*ImportAgentRequest)(nil), "google.cloud.dialogflow.v2beta1.ImportAgentRequest") proto.RegisterType((*RestoreAgentRequest)(nil), "google.cloud.dialogflow.v2beta1.RestoreAgentRequest") - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.Agent_MatchMode", Agent_MatchMode_name, Agent_MatchMode_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dialogflow/v2beta1/audio_config.pb.go b/googleapis/cloud/dialogflow/v2beta1/audio_config.pb.go index a09f8d070983655ae1d3712363fc2bac6fcc65bc..d6652bdbd4c0eeb9a5a545847484fa2fd3697353 100644 --- a/googleapis/cloud/dialogflow/v2beta1/audio_config.pb.go +++ b/googleapis/cloud/dialogflow/v2beta1/audio_config.pb.go @@ -309,11 +309,11 @@ func (m *OutputAudioConfig) GetSynthesizeSpeechConfig() *SynthesizeSpeechConfig } func init() { + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.SsmlVoiceGender", SsmlVoiceGender_name, SsmlVoiceGender_value) + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.OutputAudioEncoding", OutputAudioEncoding_name, OutputAudioEncoding_value) proto.RegisterType((*VoiceSelectionParams)(nil), "google.cloud.dialogflow.v2beta1.VoiceSelectionParams") proto.RegisterType((*SynthesizeSpeechConfig)(nil), "google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig") proto.RegisterType((*OutputAudioConfig)(nil), "google.cloud.dialogflow.v2beta1.OutputAudioConfig") - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.SsmlVoiceGender", SsmlVoiceGender_name, SsmlVoiceGender_value) - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.OutputAudioEncoding", OutputAudioEncoding_name, OutputAudioEncoding_value) } func init() { diff --git a/googleapis/cloud/dialogflow/v2beta1/document.pb.go b/googleapis/cloud/dialogflow/v2beta1/document.pb.go index ea75bb0fced069cd6410f34b6b3c73914bbf4023..5d7130b893f0ccb21f287d13d2480e8715a0ac93 100644 --- a/googleapis/cloud/dialogflow/v2beta1/document.pb.go +++ b/googleapis/cloud/dialogflow/v2beta1/document.pb.go @@ -576,6 +576,8 @@ func (m *KnowledgeOperationMetadata) GetState() KnowledgeOperationMetadata_State } func init() { + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.Document_KnowledgeType", Document_KnowledgeType_name, Document_KnowledgeType_value) + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata_State", KnowledgeOperationMetadata_State_name, KnowledgeOperationMetadata_State_value) proto.RegisterType((*Document)(nil), "google.cloud.dialogflow.v2beta1.Document") proto.RegisterType((*ListDocumentsRequest)(nil), "google.cloud.dialogflow.v2beta1.ListDocumentsRequest") proto.RegisterType((*ListDocumentsResponse)(nil), "google.cloud.dialogflow.v2beta1.ListDocumentsResponse") @@ -583,8 +585,6 @@ func init() { proto.RegisterType((*CreateDocumentRequest)(nil), "google.cloud.dialogflow.v2beta1.CreateDocumentRequest") proto.RegisterType((*DeleteDocumentRequest)(nil), "google.cloud.dialogflow.v2beta1.DeleteDocumentRequest") proto.RegisterType((*KnowledgeOperationMetadata)(nil), "google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata") - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.Document_KnowledgeType", Document_KnowledgeType_name, Document_KnowledgeType_value) - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata_State", KnowledgeOperationMetadata_State_name, KnowledgeOperationMetadata_State_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dialogflow/v2beta1/entity_type.pb.go b/googleapis/cloud/dialogflow/v2beta1/entity_type.pb.go index b166371780afe60d8df4efc26b11a23425834a15..6206aeafb9bd87a93e07c3fe0c25b68e86ea9181 100644 --- a/googleapis/cloud/dialogflow/v2beta1/entity_type.pb.go +++ b/googleapis/cloud/dialogflow/v2beta1/entity_type.pb.go @@ -1107,6 +1107,8 @@ func (m *EntityTypeBatch) GetEntityTypes() []*EntityType { } func init() { + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.EntityType_Kind", EntityType_Kind_name, EntityType_Kind_value) + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.EntityType_AutoExpansionMode", EntityType_AutoExpansionMode_name, EntityType_AutoExpansionMode_value) proto.RegisterType((*EntityType)(nil), "google.cloud.dialogflow.v2beta1.EntityType") proto.RegisterType((*EntityType_Entity)(nil), "google.cloud.dialogflow.v2beta1.EntityType.Entity") proto.RegisterType((*ListEntityTypesRequest)(nil), "google.cloud.dialogflow.v2beta1.ListEntityTypesRequest") @@ -1122,8 +1124,6 @@ func init() { proto.RegisterType((*BatchUpdateEntitiesRequest)(nil), "google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest") proto.RegisterType((*BatchDeleteEntitiesRequest)(nil), "google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest") proto.RegisterType((*EntityTypeBatch)(nil), "google.cloud.dialogflow.v2beta1.EntityTypeBatch") - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.EntityType_Kind", EntityType_Kind_name, EntityType_Kind_value) - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.EntityType_AutoExpansionMode", EntityType_AutoExpansionMode_name, EntityType_AutoExpansionMode_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dialogflow/v2beta1/intent.pb.go b/googleapis/cloud/dialogflow/v2beta1/intent.pb.go index 01020f0e6467870fe83e9ffc18894205ecd88128..54f0dfcc0087cc4a1b4524a36063c657e11682bc 100644 --- a/googleapis/cloud/dialogflow/v2beta1/intent.pb.go +++ b/googleapis/cloud/dialogflow/v2beta1/intent.pb.go @@ -3278,6 +3278,10 @@ func (m *IntentBatch) GetIntents() []*Intent { } func init() { + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.IntentView", IntentView_name, IntentView_value) + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.Intent_WebhookState", Intent_WebhookState_name, Intent_WebhookState_value) + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.Intent_TrainingPhrase_Type", Intent_TrainingPhrase_Type_name, Intent_TrainingPhrase_Type_value) + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.Intent_Message_Platform", Intent_Message_Platform_name, Intent_Message_Platform_value) proto.RegisterType((*Intent)(nil), "google.cloud.dialogflow.v2beta1.Intent") proto.RegisterType((*Intent_TrainingPhrase)(nil), "google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase") proto.RegisterType((*Intent_TrainingPhrase_Part)(nil), "google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Part") @@ -3315,10 +3319,6 @@ func init() { proto.RegisterType((*BatchUpdateIntentsResponse)(nil), "google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse") proto.RegisterType((*BatchDeleteIntentsRequest)(nil), "google.cloud.dialogflow.v2beta1.BatchDeleteIntentsRequest") proto.RegisterType((*IntentBatch)(nil), "google.cloud.dialogflow.v2beta1.IntentBatch") - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.IntentView", IntentView_name, IntentView_value) - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.Intent_WebhookState", Intent_WebhookState_name, Intent_WebhookState_value) - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.Intent_TrainingPhrase_Type", Intent_TrainingPhrase_Type_name, Intent_TrainingPhrase_Type_value) - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.Intent_Message_Platform", Intent_Message_Platform_name, Intent_Message_Platform_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dialogflow/v2beta1/session.pb.go b/googleapis/cloud/dialogflow/v2beta1/session.pb.go index b279c491cf051e073734256f2d27aca6dfd76f10..5c6bfdc41e00a26eef33ddd3780c86d171d70264 100644 --- a/googleapis/cloud/dialogflow/v2beta1/session.pb.go +++ b/googleapis/cloud/dialogflow/v2beta1/session.pb.go @@ -1742,6 +1742,9 @@ func (m *Sentiment) GetMagnitude() float32 { } func init() { + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.AudioEncoding", AudioEncoding_name, AudioEncoding_value) + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.KnowledgeAnswers_Answer_MatchConfidenceLevel", KnowledgeAnswers_Answer_MatchConfidenceLevel_name, KnowledgeAnswers_Answer_MatchConfidenceLevel_value) + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.StreamingRecognitionResult_MessageType", StreamingRecognitionResult_MessageType_name, StreamingRecognitionResult_MessageType_value) proto.RegisterType((*DetectIntentRequest)(nil), "google.cloud.dialogflow.v2beta1.DetectIntentRequest") proto.RegisterType((*DetectIntentResponse)(nil), "google.cloud.dialogflow.v2beta1.DetectIntentResponse") proto.RegisterType((*QueryParameters)(nil), "google.cloud.dialogflow.v2beta1.QueryParameters") @@ -1758,9 +1761,6 @@ func init() { proto.RegisterType((*SentimentAnalysisRequestConfig)(nil), "google.cloud.dialogflow.v2beta1.SentimentAnalysisRequestConfig") proto.RegisterType((*SentimentAnalysisResult)(nil), "google.cloud.dialogflow.v2beta1.SentimentAnalysisResult") proto.RegisterType((*Sentiment)(nil), "google.cloud.dialogflow.v2beta1.Sentiment") - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.AudioEncoding", AudioEncoding_name, AudioEncoding_value) - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.KnowledgeAnswers_Answer_MatchConfidenceLevel", KnowledgeAnswers_Answer_MatchConfidenceLevel_name, KnowledgeAnswers_Answer_MatchConfidenceLevel_value) - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.StreamingRecognitionResult_MessageType", StreamingRecognitionResult_MessageType_name, StreamingRecognitionResult_MessageType_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/dialogflow/v2beta1/session_entity_type.pb.go b/googleapis/cloud/dialogflow/v2beta1/session_entity_type.pb.go index 5ef49bd8e3fb3ca33cbde720f9245124a8094065..7f1caf0663c2a659d2f0b1774e0db9210bc3814e 100644 --- a/googleapis/cloud/dialogflow/v2beta1/session_entity_type.pb.go +++ b/googleapis/cloud/dialogflow/v2beta1/session_entity_type.pb.go @@ -459,6 +459,7 @@ func (m *DeleteSessionEntityTypeRequest) GetName() string { } func init() { + proto.RegisterEnum("google.cloud.dialogflow.v2beta1.SessionEntityType_EntityOverrideMode", SessionEntityType_EntityOverrideMode_name, SessionEntityType_EntityOverrideMode_value) proto.RegisterType((*SessionEntityType)(nil), "google.cloud.dialogflow.v2beta1.SessionEntityType") proto.RegisterType((*ListSessionEntityTypesRequest)(nil), "google.cloud.dialogflow.v2beta1.ListSessionEntityTypesRequest") proto.RegisterType((*ListSessionEntityTypesResponse)(nil), "google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse") @@ -466,7 +467,6 @@ func init() { proto.RegisterType((*CreateSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2beta1.CreateSessionEntityTypeRequest") proto.RegisterType((*UpdateSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2beta1.UpdateSessionEntityTypeRequest") proto.RegisterType((*DeleteSessionEntityTypeRequest)(nil), "google.cloud.dialogflow.v2beta1.DeleteSessionEntityTypeRequest") - proto.RegisterEnum("google.cloud.dialogflow.v2beta1.SessionEntityType_EntityOverrideMode", SessionEntityType_EntityOverrideMode_name, SessionEntityType_EntityOverrideMode_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/functions/v1beta2/functions.pb.go b/googleapis/cloud/functions/v1beta2/functions.pb.go index 005109fbbb42ec9c97e2d13a403412ad90df6905..e58bb6810d2fa886ddd96fea45bb54996df7d61f 100644 --- a/googleapis/cloud/functions/v1beta2/functions.pb.go +++ b/googleapis/cloud/functions/v1beta2/functions.pb.go @@ -1118,6 +1118,7 @@ func (m *CallFunctionResponse) GetError() string { } func init() { + proto.RegisterEnum("google.cloud.functions.v1beta2.CloudFunctionStatus", CloudFunctionStatus_name, CloudFunctionStatus_value) proto.RegisterType((*CloudFunction)(nil), "google.cloud.functions.v1beta2.CloudFunction") proto.RegisterType((*HTTPSTrigger)(nil), "google.cloud.functions.v1beta2.HTTPSTrigger") proto.RegisterType((*EventTrigger)(nil), "google.cloud.functions.v1beta2.EventTrigger") @@ -1130,7 +1131,6 @@ func init() { proto.RegisterType((*DeleteFunctionRequest)(nil), "google.cloud.functions.v1beta2.DeleteFunctionRequest") proto.RegisterType((*CallFunctionRequest)(nil), "google.cloud.functions.v1beta2.CallFunctionRequest") proto.RegisterType((*CallFunctionResponse)(nil), "google.cloud.functions.v1beta2.CallFunctionResponse") - proto.RegisterEnum("google.cloud.functions.v1beta2.CloudFunctionStatus", CloudFunctionStatus_name, CloudFunctionStatus_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/functions/v1beta2/operations.pb.go b/googleapis/cloud/functions/v1beta2/operations.pb.go index ec8de1482eac68f05d3011d9dfa31e37271d99e5..df005a5f215ff07d868e7f8d0270b19b68d818b5 100644 --- a/googleapis/cloud/functions/v1beta2/operations.pb.go +++ b/googleapis/cloud/functions/v1beta2/operations.pb.go @@ -119,8 +119,8 @@ func (m *OperationMetadataV1Beta2) GetRequest() *any.Any { } func init() { - proto.RegisterType((*OperationMetadataV1Beta2)(nil), "google.cloud.functions.v1beta2.OperationMetadataV1Beta2") proto.RegisterEnum("google.cloud.functions.v1beta2.OperationType", OperationType_name, OperationType_value) + proto.RegisterType((*OperationMetadataV1Beta2)(nil), "google.cloud.functions.v1beta2.OperationMetadataV1Beta2") } func init() { diff --git a/googleapis/cloud/iot/v1/resources.pb.go b/googleapis/cloud/iot/v1/resources.pb.go index 565c153f1ad953812e1c44013313102a6db0e1a9..0def40323f8de8e948e0d5d15ee14c4373fed61b 100644 --- a/googleapis/cloud/iot/v1/resources.pb.go +++ b/googleapis/cloud/iot/v1/resources.pb.go @@ -1255,6 +1255,10 @@ func (m *DeviceState) GetBinaryData() []byte { } func init() { + proto.RegisterEnum("google.cloud.iot.v1.MqttState", MqttState_name, MqttState_value) + proto.RegisterEnum("google.cloud.iot.v1.HttpState", HttpState_name, HttpState_value) + proto.RegisterEnum("google.cloud.iot.v1.PublicKeyCertificateFormat", PublicKeyCertificateFormat_name, PublicKeyCertificateFormat_value) + proto.RegisterEnum("google.cloud.iot.v1.PublicKeyFormat", PublicKeyFormat_name, PublicKeyFormat_value) proto.RegisterType((*Device)(nil), "google.cloud.iot.v1.Device") proto.RegisterMapType((map[string]string)(nil), "google.cloud.iot.v1.Device.MetadataEntry") proto.RegisterType((*DeviceRegistry)(nil), "google.cloud.iot.v1.DeviceRegistry") @@ -1269,10 +1273,6 @@ func init() { proto.RegisterType((*PublicKeyCredential)(nil), "google.cloud.iot.v1.PublicKeyCredential") proto.RegisterType((*DeviceConfig)(nil), "google.cloud.iot.v1.DeviceConfig") proto.RegisterType((*DeviceState)(nil), "google.cloud.iot.v1.DeviceState") - proto.RegisterEnum("google.cloud.iot.v1.MqttState", MqttState_name, MqttState_value) - proto.RegisterEnum("google.cloud.iot.v1.HttpState", HttpState_name, HttpState_value) - proto.RegisterEnum("google.cloud.iot.v1.PublicKeyCertificateFormat", PublicKeyCertificateFormat_name, PublicKeyCertificateFormat_value) - proto.RegisterEnum("google.cloud.iot.v1.PublicKeyFormat", PublicKeyFormat_name, PublicKeyFormat_value) } func init() { diff --git a/googleapis/cloud/kms/v1/resources.pb.go b/googleapis/cloud/kms/v1/resources.pb.go index 6e5ad6e512957fe731abf4aca875144ea977f1f1..72440a77302e6f9e98fc466d36db621480b7e9e1 100644 --- a/googleapis/cloud/kms/v1/resources.pb.go +++ b/googleapis/cloud/kms/v1/resources.pb.go @@ -873,6 +873,12 @@ func (m *PublicKey) GetAlgorithm() CryptoKeyVersion_CryptoKeyVersionAlgorithm { } func init() { + proto.RegisterEnum("google.cloud.kms.v1.ProtectionLevel", ProtectionLevel_name, ProtectionLevel_value) + proto.RegisterEnum("google.cloud.kms.v1.CryptoKey_CryptoKeyPurpose", CryptoKey_CryptoKeyPurpose_name, CryptoKey_CryptoKeyPurpose_value) + proto.RegisterEnum("google.cloud.kms.v1.KeyOperationAttestation_AttestationFormat", KeyOperationAttestation_AttestationFormat_name, KeyOperationAttestation_AttestationFormat_value) + proto.RegisterEnum("google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionAlgorithm", CryptoKeyVersion_CryptoKeyVersionAlgorithm_name, CryptoKeyVersion_CryptoKeyVersionAlgorithm_value) + proto.RegisterEnum("google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionState", CryptoKeyVersion_CryptoKeyVersionState_name, CryptoKeyVersion_CryptoKeyVersionState_value) + proto.RegisterEnum("google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionView", CryptoKeyVersion_CryptoKeyVersionView_name, CryptoKeyVersion_CryptoKeyVersionView_value) proto.RegisterType((*KeyRing)(nil), "google.cloud.kms.v1.KeyRing") proto.RegisterType((*CryptoKey)(nil), "google.cloud.kms.v1.CryptoKey") proto.RegisterMapType((map[string]string)(nil), "google.cloud.kms.v1.CryptoKey.LabelsEntry") @@ -880,12 +886,6 @@ func init() { proto.RegisterType((*KeyOperationAttestation)(nil), "google.cloud.kms.v1.KeyOperationAttestation") proto.RegisterType((*CryptoKeyVersion)(nil), "google.cloud.kms.v1.CryptoKeyVersion") proto.RegisterType((*PublicKey)(nil), "google.cloud.kms.v1.PublicKey") - proto.RegisterEnum("google.cloud.kms.v1.ProtectionLevel", ProtectionLevel_name, ProtectionLevel_value) - proto.RegisterEnum("google.cloud.kms.v1.CryptoKey_CryptoKeyPurpose", CryptoKey_CryptoKeyPurpose_name, CryptoKey_CryptoKeyPurpose_value) - proto.RegisterEnum("google.cloud.kms.v1.KeyOperationAttestation_AttestationFormat", KeyOperationAttestation_AttestationFormat_name, KeyOperationAttestation_AttestationFormat_value) - proto.RegisterEnum("google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionAlgorithm", CryptoKeyVersion_CryptoKeyVersionAlgorithm_name, CryptoKeyVersion_CryptoKeyVersionAlgorithm_value) - proto.RegisterEnum("google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionState", CryptoKeyVersion_CryptoKeyVersionState_name, CryptoKeyVersion_CryptoKeyVersionState_value) - proto.RegisterEnum("google.cloud.kms.v1.CryptoKeyVersion_CryptoKeyVersionView", CryptoKeyVersion_CryptoKeyVersionView_name, CryptoKeyVersion_CryptoKeyVersionView_value) } func init() { diff --git a/googleapis/cloud/language/v1/language_service.pb.go b/googleapis/cloud/language/v1/language_service.pb.go index 4ad7c057fa659b3cc041e448407bfb94366c1dd0..9326b13711e1cff9615cf7c15ed703e50a8101ff 100644 --- a/googleapis/cloud/language/v1/language_service.pb.go +++ b/googleapis/cloud/language/v1/language_service.pb.go @@ -2664,6 +2664,23 @@ func (m *AnnotateTextResponse) GetCategories() []*ClassificationCategory { } func init() { + proto.RegisterEnum("google.cloud.language.v1.EncodingType", EncodingType_name, EncodingType_value) + proto.RegisterEnum("google.cloud.language.v1.Document_Type", Document_Type_name, Document_Type_value) + proto.RegisterEnum("google.cloud.language.v1.Entity_Type", Entity_Type_name, Entity_Type_value) + proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Tag", PartOfSpeech_Tag_name, PartOfSpeech_Tag_value) + proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Aspect", PartOfSpeech_Aspect_name, PartOfSpeech_Aspect_value) + proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Case", PartOfSpeech_Case_name, PartOfSpeech_Case_value) + proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Form", PartOfSpeech_Form_name, PartOfSpeech_Form_value) + proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Gender", PartOfSpeech_Gender_name, PartOfSpeech_Gender_value) + proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Mood", PartOfSpeech_Mood_name, PartOfSpeech_Mood_value) + proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Number", PartOfSpeech_Number_name, PartOfSpeech_Number_value) + proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Person", PartOfSpeech_Person_name, PartOfSpeech_Person_value) + proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Proper", PartOfSpeech_Proper_name, PartOfSpeech_Proper_value) + proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Reciprocity", PartOfSpeech_Reciprocity_name, PartOfSpeech_Reciprocity_value) + proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Tense", PartOfSpeech_Tense_name, PartOfSpeech_Tense_value) + proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Voice", PartOfSpeech_Voice_name, PartOfSpeech_Voice_value) + proto.RegisterEnum("google.cloud.language.v1.DependencyEdge_Label", DependencyEdge_Label_name, DependencyEdge_Label_value) + proto.RegisterEnum("google.cloud.language.v1.EntityMention_Type", EntityMention_Type_name, EntityMention_Type_value) proto.RegisterType((*Document)(nil), "google.cloud.language.v1.Document") proto.RegisterType((*Sentence)(nil), "google.cloud.language.v1.Sentence") proto.RegisterType((*Entity)(nil), "google.cloud.language.v1.Entity") @@ -2688,23 +2705,6 @@ func init() { proto.RegisterType((*AnnotateTextRequest)(nil), "google.cloud.language.v1.AnnotateTextRequest") proto.RegisterType((*AnnotateTextRequest_Features)(nil), "google.cloud.language.v1.AnnotateTextRequest.Features") proto.RegisterType((*AnnotateTextResponse)(nil), "google.cloud.language.v1.AnnotateTextResponse") - proto.RegisterEnum("google.cloud.language.v1.EncodingType", EncodingType_name, EncodingType_value) - proto.RegisterEnum("google.cloud.language.v1.Document_Type", Document_Type_name, Document_Type_value) - proto.RegisterEnum("google.cloud.language.v1.Entity_Type", Entity_Type_name, Entity_Type_value) - proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Tag", PartOfSpeech_Tag_name, PartOfSpeech_Tag_value) - proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Aspect", PartOfSpeech_Aspect_name, PartOfSpeech_Aspect_value) - proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Case", PartOfSpeech_Case_name, PartOfSpeech_Case_value) - proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Form", PartOfSpeech_Form_name, PartOfSpeech_Form_value) - proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Gender", PartOfSpeech_Gender_name, PartOfSpeech_Gender_value) - proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Mood", PartOfSpeech_Mood_name, PartOfSpeech_Mood_value) - proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Number", PartOfSpeech_Number_name, PartOfSpeech_Number_value) - proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Person", PartOfSpeech_Person_name, PartOfSpeech_Person_value) - proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Proper", PartOfSpeech_Proper_name, PartOfSpeech_Proper_value) - proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Reciprocity", PartOfSpeech_Reciprocity_name, PartOfSpeech_Reciprocity_value) - proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Tense", PartOfSpeech_Tense_name, PartOfSpeech_Tense_value) - proto.RegisterEnum("google.cloud.language.v1.PartOfSpeech_Voice", PartOfSpeech_Voice_name, PartOfSpeech_Voice_value) - proto.RegisterEnum("google.cloud.language.v1.DependencyEdge_Label", DependencyEdge_Label_name, DependencyEdge_Label_value) - proto.RegisterEnum("google.cloud.language.v1.EntityMention_Type", EntityMention_Type_name, EntityMention_Type_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/language/v1beta1/language_service.pb.go b/googleapis/cloud/language/v1beta1/language_service.pb.go index 85de11f7086e076044567f49f9fa1435f89bd575..45d72f00d4b8fd570e6cbe15416805d45c87b84e 100644 --- a/googleapis/cloud/language/v1beta1/language_service.pb.go +++ b/googleapis/cloud/language/v1beta1/language_service.pb.go @@ -2362,6 +2362,23 @@ func (m *AnnotateTextResponse) GetLanguage() string { } func init() { + proto.RegisterEnum("google.cloud.language.v1beta1.EncodingType", EncodingType_name, EncodingType_value) + proto.RegisterEnum("google.cloud.language.v1beta1.Document_Type", Document_Type_name, Document_Type_value) + proto.RegisterEnum("google.cloud.language.v1beta1.Entity_Type", Entity_Type_name, Entity_Type_value) + proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Tag", PartOfSpeech_Tag_name, PartOfSpeech_Tag_value) + proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Aspect", PartOfSpeech_Aspect_name, PartOfSpeech_Aspect_value) + proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Case", PartOfSpeech_Case_name, PartOfSpeech_Case_value) + proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Form", PartOfSpeech_Form_name, PartOfSpeech_Form_value) + proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Gender", PartOfSpeech_Gender_name, PartOfSpeech_Gender_value) + proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Mood", PartOfSpeech_Mood_name, PartOfSpeech_Mood_value) + proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Number", PartOfSpeech_Number_name, PartOfSpeech_Number_value) + proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Person", PartOfSpeech_Person_name, PartOfSpeech_Person_value) + proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Proper", PartOfSpeech_Proper_name, PartOfSpeech_Proper_value) + proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Reciprocity", PartOfSpeech_Reciprocity_name, PartOfSpeech_Reciprocity_value) + proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Tense", PartOfSpeech_Tense_name, PartOfSpeech_Tense_value) + proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Voice", PartOfSpeech_Voice_name, PartOfSpeech_Voice_value) + proto.RegisterEnum("google.cloud.language.v1beta1.DependencyEdge_Label", DependencyEdge_Label_name, DependencyEdge_Label_value) + proto.RegisterEnum("google.cloud.language.v1beta1.EntityMention_Type", EntityMention_Type_name, EntityMention_Type_value) proto.RegisterType((*Document)(nil), "google.cloud.language.v1beta1.Document") proto.RegisterType((*Sentence)(nil), "google.cloud.language.v1beta1.Sentence") proto.RegisterType((*Entity)(nil), "google.cloud.language.v1beta1.Entity") @@ -2381,23 +2398,6 @@ func init() { proto.RegisterType((*AnnotateTextRequest)(nil), "google.cloud.language.v1beta1.AnnotateTextRequest") proto.RegisterType((*AnnotateTextRequest_Features)(nil), "google.cloud.language.v1beta1.AnnotateTextRequest.Features") proto.RegisterType((*AnnotateTextResponse)(nil), "google.cloud.language.v1beta1.AnnotateTextResponse") - proto.RegisterEnum("google.cloud.language.v1beta1.EncodingType", EncodingType_name, EncodingType_value) - proto.RegisterEnum("google.cloud.language.v1beta1.Document_Type", Document_Type_name, Document_Type_value) - proto.RegisterEnum("google.cloud.language.v1beta1.Entity_Type", Entity_Type_name, Entity_Type_value) - proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Tag", PartOfSpeech_Tag_name, PartOfSpeech_Tag_value) - proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Aspect", PartOfSpeech_Aspect_name, PartOfSpeech_Aspect_value) - proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Case", PartOfSpeech_Case_name, PartOfSpeech_Case_value) - proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Form", PartOfSpeech_Form_name, PartOfSpeech_Form_value) - proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Gender", PartOfSpeech_Gender_name, PartOfSpeech_Gender_value) - proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Mood", PartOfSpeech_Mood_name, PartOfSpeech_Mood_value) - proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Number", PartOfSpeech_Number_name, PartOfSpeech_Number_value) - proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Person", PartOfSpeech_Person_name, PartOfSpeech_Person_value) - proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Proper", PartOfSpeech_Proper_name, PartOfSpeech_Proper_value) - proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Reciprocity", PartOfSpeech_Reciprocity_name, PartOfSpeech_Reciprocity_value) - proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Tense", PartOfSpeech_Tense_name, PartOfSpeech_Tense_value) - proto.RegisterEnum("google.cloud.language.v1beta1.PartOfSpeech_Voice", PartOfSpeech_Voice_name, PartOfSpeech_Voice_value) - proto.RegisterEnum("google.cloud.language.v1beta1.DependencyEdge_Label", DependencyEdge_Label_name, DependencyEdge_Label_value) - proto.RegisterEnum("google.cloud.language.v1beta1.EntityMention_Type", EntityMention_Type_name, EntityMention_Type_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/language/v1beta2/language_service.pb.go b/googleapis/cloud/language/v1beta2/language_service.pb.go index 54a816d3b165bc3293c0fde0d6922cd75d19e013..c9bb7227e8d531faff3c7f71d934f5ede6798757 100644 --- a/googleapis/cloud/language/v1beta2/language_service.pb.go +++ b/googleapis/cloud/language/v1beta2/language_service.pb.go @@ -2664,6 +2664,23 @@ func (m *AnnotateTextResponse) GetCategories() []*ClassificationCategory { } func init() { + proto.RegisterEnum("google.cloud.language.v1beta2.EncodingType", EncodingType_name, EncodingType_value) + proto.RegisterEnum("google.cloud.language.v1beta2.Document_Type", Document_Type_name, Document_Type_value) + proto.RegisterEnum("google.cloud.language.v1beta2.Entity_Type", Entity_Type_name, Entity_Type_value) + proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Tag", PartOfSpeech_Tag_name, PartOfSpeech_Tag_value) + proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Aspect", PartOfSpeech_Aspect_name, PartOfSpeech_Aspect_value) + proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Case", PartOfSpeech_Case_name, PartOfSpeech_Case_value) + proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Form", PartOfSpeech_Form_name, PartOfSpeech_Form_value) + proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Gender", PartOfSpeech_Gender_name, PartOfSpeech_Gender_value) + proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Mood", PartOfSpeech_Mood_name, PartOfSpeech_Mood_value) + proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Number", PartOfSpeech_Number_name, PartOfSpeech_Number_value) + proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Person", PartOfSpeech_Person_name, PartOfSpeech_Person_value) + proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Proper", PartOfSpeech_Proper_name, PartOfSpeech_Proper_value) + proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Reciprocity", PartOfSpeech_Reciprocity_name, PartOfSpeech_Reciprocity_value) + proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Tense", PartOfSpeech_Tense_name, PartOfSpeech_Tense_value) + proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Voice", PartOfSpeech_Voice_name, PartOfSpeech_Voice_value) + proto.RegisterEnum("google.cloud.language.v1beta2.DependencyEdge_Label", DependencyEdge_Label_name, DependencyEdge_Label_value) + proto.RegisterEnum("google.cloud.language.v1beta2.EntityMention_Type", EntityMention_Type_name, EntityMention_Type_value) proto.RegisterType((*Document)(nil), "google.cloud.language.v1beta2.Document") proto.RegisterType((*Sentence)(nil), "google.cloud.language.v1beta2.Sentence") proto.RegisterType((*Entity)(nil), "google.cloud.language.v1beta2.Entity") @@ -2688,23 +2705,6 @@ func init() { proto.RegisterType((*AnnotateTextRequest)(nil), "google.cloud.language.v1beta2.AnnotateTextRequest") proto.RegisterType((*AnnotateTextRequest_Features)(nil), "google.cloud.language.v1beta2.AnnotateTextRequest.Features") proto.RegisterType((*AnnotateTextResponse)(nil), "google.cloud.language.v1beta2.AnnotateTextResponse") - proto.RegisterEnum("google.cloud.language.v1beta2.EncodingType", EncodingType_name, EncodingType_value) - proto.RegisterEnum("google.cloud.language.v1beta2.Document_Type", Document_Type_name, Document_Type_value) - proto.RegisterEnum("google.cloud.language.v1beta2.Entity_Type", Entity_Type_name, Entity_Type_value) - proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Tag", PartOfSpeech_Tag_name, PartOfSpeech_Tag_value) - proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Aspect", PartOfSpeech_Aspect_name, PartOfSpeech_Aspect_value) - proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Case", PartOfSpeech_Case_name, PartOfSpeech_Case_value) - proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Form", PartOfSpeech_Form_name, PartOfSpeech_Form_value) - proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Gender", PartOfSpeech_Gender_name, PartOfSpeech_Gender_value) - proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Mood", PartOfSpeech_Mood_name, PartOfSpeech_Mood_value) - proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Number", PartOfSpeech_Number_name, PartOfSpeech_Number_value) - proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Person", PartOfSpeech_Person_name, PartOfSpeech_Person_value) - proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Proper", PartOfSpeech_Proper_name, PartOfSpeech_Proper_value) - proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Reciprocity", PartOfSpeech_Reciprocity_name, PartOfSpeech_Reciprocity_value) - proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Tense", PartOfSpeech_Tense_name, PartOfSpeech_Tense_value) - proto.RegisterEnum("google.cloud.language.v1beta2.PartOfSpeech_Voice", PartOfSpeech_Voice_name, PartOfSpeech_Voice_value) - proto.RegisterEnum("google.cloud.language.v1beta2.DependencyEdge_Label", DependencyEdge_Label_name, DependencyEdge_Label_value) - proto.RegisterEnum("google.cloud.language.v1beta2.EntityMention_Type", EntityMention_Type_name, EntityMention_Type_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/ml/v1/job_service.pb.go b/googleapis/cloud/ml/v1/job_service.pb.go index def5d393b7ff50a169bf8899bd522386c923b46e..1c3a11c174e37c4b18b7577e4685a45e56ba7165 100644 --- a/googleapis/cloud/ml/v1/job_service.pb.go +++ b/googleapis/cloud/ml/v1/job_service.pb.go @@ -1793,6 +1793,12 @@ func (m *CancelJobRequest) GetName() string { } func init() { + proto.RegisterEnum("google.cloud.ml.v1.TrainingInput_ScaleTier", TrainingInput_ScaleTier_name, TrainingInput_ScaleTier_value) + proto.RegisterEnum("google.cloud.ml.v1.HyperparameterSpec_GoalType", HyperparameterSpec_GoalType_name, HyperparameterSpec_GoalType_value) + proto.RegisterEnum("google.cloud.ml.v1.ParameterSpec_ParameterType", ParameterSpec_ParameterType_name, ParameterSpec_ParameterType_value) + proto.RegisterEnum("google.cloud.ml.v1.ParameterSpec_ScaleType", ParameterSpec_ScaleType_name, ParameterSpec_ScaleType_value) + proto.RegisterEnum("google.cloud.ml.v1.PredictionInput_DataFormat", PredictionInput_DataFormat_name, PredictionInput_DataFormat_value) + proto.RegisterEnum("google.cloud.ml.v1.Job_State", Job_State_name, Job_State_value) proto.RegisterType((*TrainingInput)(nil), "google.cloud.ml.v1.TrainingInput") proto.RegisterType((*HyperparameterSpec)(nil), "google.cloud.ml.v1.HyperparameterSpec") proto.RegisterType((*ParameterSpec)(nil), "google.cloud.ml.v1.ParameterSpec") @@ -1808,12 +1814,6 @@ func init() { proto.RegisterType((*ListJobsResponse)(nil), "google.cloud.ml.v1.ListJobsResponse") proto.RegisterType((*GetJobRequest)(nil), "google.cloud.ml.v1.GetJobRequest") proto.RegisterType((*CancelJobRequest)(nil), "google.cloud.ml.v1.CancelJobRequest") - proto.RegisterEnum("google.cloud.ml.v1.TrainingInput_ScaleTier", TrainingInput_ScaleTier_name, TrainingInput_ScaleTier_value) - proto.RegisterEnum("google.cloud.ml.v1.HyperparameterSpec_GoalType", HyperparameterSpec_GoalType_name, HyperparameterSpec_GoalType_value) - proto.RegisterEnum("google.cloud.ml.v1.ParameterSpec_ParameterType", ParameterSpec_ParameterType_name, ParameterSpec_ParameterType_value) - proto.RegisterEnum("google.cloud.ml.v1.ParameterSpec_ScaleType", ParameterSpec_ScaleType_name, ParameterSpec_ScaleType_value) - proto.RegisterEnum("google.cloud.ml.v1.PredictionInput_DataFormat", PredictionInput_DataFormat_name, PredictionInput_DataFormat_value) - proto.RegisterEnum("google.cloud.ml.v1.Job_State", Job_State_name, Job_State_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/ml/v1/operation_metadata.pb.go b/googleapis/cloud/ml/v1/operation_metadata.pb.go index 6846a089d39584a205cca89088af4e4b466bea8f..f6ca6831e570d5c098a319076bb1d85a520d9524 100644 --- a/googleapis/cloud/ml/v1/operation_metadata.pb.go +++ b/googleapis/cloud/ml/v1/operation_metadata.pb.go @@ -154,8 +154,8 @@ func (m *OperationMetadata) GetVersion() *Version { } func init() { - proto.RegisterType((*OperationMetadata)(nil), "google.cloud.ml.v1.OperationMetadata") proto.RegisterEnum("google.cloud.ml.v1.OperationMetadata_OperationType", OperationMetadata_OperationType_name, OperationMetadata_OperationType_value) + proto.RegisterType((*OperationMetadata)(nil), "google.cloud.ml.v1.OperationMetadata") } func init() { diff --git a/googleapis/cloud/redis/v1/cloud_redis.pb.go b/googleapis/cloud/redis/v1/cloud_redis.pb.go index 6184160ecbb3f82d94c8695d560191d6b85beebd..cdeab454104a2668205b951540b592a69fe6be26 100644 --- a/googleapis/cloud/redis/v1/cloud_redis.pb.go +++ b/googleapis/cloud/redis/v1/cloud_redis.pb.go @@ -683,7 +683,7 @@ type OperationMetadata struct { Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"` // Operation status details. StatusDetail string `protobuf:"bytes,5,opt,name=status_detail,json=statusDetail,proto3" json:"status_detail,omitempty"` - // Specifies if cancellation was requested for the operaiton. + // Specifies if cancellation was requested for the operation. CancelRequested bool `protobuf:"varint,6,opt,name=cancel_requested,json=cancelRequested,proto3" json:"cancel_requested,omitempty"` // API version. ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` @@ -847,6 +847,8 @@ func (m *ZoneMetadata) XXX_DiscardUnknown() { var xxx_messageInfo_ZoneMetadata proto.InternalMessageInfo func init() { + proto.RegisterEnum("google.cloud.redis.v1.Instance_State", Instance_State_name, Instance_State_value) + proto.RegisterEnum("google.cloud.redis.v1.Instance_Tier", Instance_Tier_name, Instance_Tier_value) proto.RegisterType((*Instance)(nil), "google.cloud.redis.v1.Instance") proto.RegisterMapType((map[string]string)(nil), "google.cloud.redis.v1.Instance.LabelsEntry") proto.RegisterMapType((map[string]string)(nil), "google.cloud.redis.v1.Instance.RedisConfigsEntry") @@ -860,8 +862,6 @@ func init() { proto.RegisterType((*LocationMetadata)(nil), "google.cloud.redis.v1.LocationMetadata") proto.RegisterMapType((map[string]*ZoneMetadata)(nil), "google.cloud.redis.v1.LocationMetadata.AvailableZonesEntry") proto.RegisterType((*ZoneMetadata)(nil), "google.cloud.redis.v1.ZoneMetadata") - proto.RegisterEnum("google.cloud.redis.v1.Instance_State", Instance_State_name, Instance_State_value) - proto.RegisterEnum("google.cloud.redis.v1.Instance_Tier", Instance_Tier_name, Instance_Tier_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/redis/v1beta1/cloud_redis.pb.go b/googleapis/cloud/redis/v1beta1/cloud_redis.pb.go index 5c8a495dd2d3c62ab902ccc5de7d46cc81fc9fcf..2c6d182a5e314955107f105ab67d221380a0756e 100644 --- a/googleapis/cloud/redis/v1beta1/cloud_redis.pb.go +++ b/googleapis/cloud/redis/v1beta1/cloud_redis.pb.go @@ -748,6 +748,8 @@ func (m *ZoneMetadata) XXX_DiscardUnknown() { var xxx_messageInfo_ZoneMetadata proto.InternalMessageInfo func init() { + proto.RegisterEnum("google.cloud.redis.v1beta1.Instance_State", Instance_State_name, Instance_State_value) + proto.RegisterEnum("google.cloud.redis.v1beta1.Instance_Tier", Instance_Tier_name, Instance_Tier_value) proto.RegisterType((*Instance)(nil), "google.cloud.redis.v1beta1.Instance") proto.RegisterMapType((map[string]string)(nil), "google.cloud.redis.v1beta1.Instance.LabelsEntry") proto.RegisterMapType((map[string]string)(nil), "google.cloud.redis.v1beta1.Instance.RedisConfigsEntry") @@ -760,8 +762,6 @@ func init() { proto.RegisterType((*LocationMetadata)(nil), "google.cloud.redis.v1beta1.LocationMetadata") proto.RegisterMapType((map[string]*ZoneMetadata)(nil), "google.cloud.redis.v1beta1.LocationMetadata.AvailableZonesEntry") proto.RegisterType((*ZoneMetadata)(nil), "google.cloud.redis.v1beta1.ZoneMetadata") - proto.RegisterEnum("google.cloud.redis.v1beta1.Instance_State", Instance_State_name, Instance_State_value) - proto.RegisterEnum("google.cloud.redis.v1beta1.Instance_Tier", Instance_Tier_name, Instance_Tier_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/resourcemanager/v2/folders.pb.go b/googleapis/cloud/resourcemanager/v2/folders.pb.go index 77257797406ee30f0b6b9a551c8fcf107d2b111f..6ec442c5d6488a469ba61e94acb4328358137b82 100644 --- a/googleapis/cloud/resourcemanager/v2/folders.pb.go +++ b/googleapis/cloud/resourcemanager/v2/folders.pb.go @@ -815,6 +815,8 @@ func (m *FolderOperation) GetDestinationParent() string { } func init() { + proto.RegisterEnum("google.cloud.resourcemanager.v2.Folder_LifecycleState", Folder_LifecycleState_name, Folder_LifecycleState_value) + proto.RegisterEnum("google.cloud.resourcemanager.v2.FolderOperation_OperationType", FolderOperation_OperationType_name, FolderOperation_OperationType_value) proto.RegisterType((*Folder)(nil), "google.cloud.resourcemanager.v2.Folder") proto.RegisterType((*ListFoldersRequest)(nil), "google.cloud.resourcemanager.v2.ListFoldersRequest") proto.RegisterType((*ListFoldersResponse)(nil), "google.cloud.resourcemanager.v2.ListFoldersResponse") @@ -827,8 +829,6 @@ func init() { proto.RegisterType((*DeleteFolderRequest)(nil), "google.cloud.resourcemanager.v2.DeleteFolderRequest") proto.RegisterType((*UndeleteFolderRequest)(nil), "google.cloud.resourcemanager.v2.UndeleteFolderRequest") proto.RegisterType((*FolderOperation)(nil), "google.cloud.resourcemanager.v2.FolderOperation") - proto.RegisterEnum("google.cloud.resourcemanager.v2.Folder_LifecycleState", Folder_LifecycleState_name, Folder_LifecycleState_value) - proto.RegisterEnum("google.cloud.resourcemanager.v2.FolderOperation_OperationType", FolderOperation_OperationType_name, FolderOperation_OperationType_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/runtimeconfig/v1beta1/resources.pb.go b/googleapis/cloud/runtimeconfig/v1beta1/resources.pb.go index 67bffedaadb4429493155c4adbc214f8680bf090..f82056eadf7504d1d8c4a768f94ff6570ef182b9 100644 --- a/googleapis/cloud/runtimeconfig/v1beta1/resources.pb.go +++ b/googleapis/cloud/runtimeconfig/v1beta1/resources.pb.go @@ -628,12 +628,12 @@ func (m *Waiter) GetError() *status.Status { } func init() { + proto.RegisterEnum("google.cloud.runtimeconfig.v1beta1.VariableState", VariableState_name, VariableState_value) proto.RegisterType((*RuntimeConfig)(nil), "google.cloud.runtimeconfig.v1beta1.RuntimeConfig") proto.RegisterType((*Variable)(nil), "google.cloud.runtimeconfig.v1beta1.Variable") proto.RegisterType((*EndCondition)(nil), "google.cloud.runtimeconfig.v1beta1.EndCondition") proto.RegisterType((*EndCondition_Cardinality)(nil), "google.cloud.runtimeconfig.v1beta1.EndCondition.Cardinality") proto.RegisterType((*Waiter)(nil), "google.cloud.runtimeconfig.v1beta1.Waiter") - proto.RegisterEnum("google.cloud.runtimeconfig.v1beta1.VariableState", VariableState_name, VariableState_value) } func init() { diff --git a/googleapis/cloud/speech/v1/cloud_speech.pb.go b/googleapis/cloud/speech/v1/cloud_speech.pb.go index f781e733b640526a905ab17837f88bdbcae787f7..1f34f254a285f81705de88ae4193dfdbc240dcdf 100644 --- a/googleapis/cloud/speech/v1/cloud_speech.pb.go +++ b/googleapis/cloud/speech/v1/cloud_speech.pb.go @@ -1382,6 +1382,8 @@ func (m *WordInfo) GetWord() string { } func init() { + proto.RegisterEnum("google.cloud.speech.v1.RecognitionConfig_AudioEncoding", RecognitionConfig_AudioEncoding_name, RecognitionConfig_AudioEncoding_value) + proto.RegisterEnum("google.cloud.speech.v1.StreamingRecognizeResponse_SpeechEventType", StreamingRecognizeResponse_SpeechEventType_name, StreamingRecognizeResponse_SpeechEventType_value) proto.RegisterType((*RecognizeRequest)(nil), "google.cloud.speech.v1.RecognizeRequest") proto.RegisterType((*LongRunningRecognizeRequest)(nil), "google.cloud.speech.v1.LongRunningRecognizeRequest") proto.RegisterType((*StreamingRecognizeRequest)(nil), "google.cloud.speech.v1.StreamingRecognizeRequest") @@ -1397,8 +1399,6 @@ func init() { proto.RegisterType((*SpeechRecognitionResult)(nil), "google.cloud.speech.v1.SpeechRecognitionResult") proto.RegisterType((*SpeechRecognitionAlternative)(nil), "google.cloud.speech.v1.SpeechRecognitionAlternative") proto.RegisterType((*WordInfo)(nil), "google.cloud.speech.v1.WordInfo") - proto.RegisterEnum("google.cloud.speech.v1.RecognitionConfig_AudioEncoding", RecognitionConfig_AudioEncoding_name, RecognitionConfig_AudioEncoding_value) - proto.RegisterEnum("google.cloud.speech.v1.StreamingRecognizeResponse_SpeechEventType", StreamingRecognizeResponse_SpeechEventType_name, StreamingRecognizeResponse_SpeechEventType_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/speech/v1p1beta1/cloud_speech.pb.go b/googleapis/cloud/speech/v1p1beta1/cloud_speech.pb.go index d1b494524eaaf85b4351eae3c934b1929c1945c1..f20ff42ed6fe9cb554ef0041dd7abaadb36d07cb 100644 --- a/googleapis/cloud/speech/v1p1beta1/cloud_speech.pb.go +++ b/googleapis/cloud/speech/v1p1beta1/cloud_speech.pb.go @@ -1858,6 +1858,12 @@ func (m *WordInfo) GetSpeakerTag() int32 { } func init() { + proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionConfig_AudioEncoding", RecognitionConfig_AudioEncoding_name, RecognitionConfig_AudioEncoding_value) + proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionMetadata_InteractionType", RecognitionMetadata_InteractionType_name, RecognitionMetadata_InteractionType_value) + proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionMetadata_MicrophoneDistance", RecognitionMetadata_MicrophoneDistance_name, RecognitionMetadata_MicrophoneDistance_value) + proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionMetadata_OriginalMediaType", RecognitionMetadata_OriginalMediaType_name, RecognitionMetadata_OriginalMediaType_value) + proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionMetadata_RecordingDeviceType", RecognitionMetadata_RecordingDeviceType_name, RecognitionMetadata_RecordingDeviceType_value) + proto.RegisterEnum("google.cloud.speech.v1p1beta1.StreamingRecognizeResponse_SpeechEventType", StreamingRecognizeResponse_SpeechEventType_name, StreamingRecognizeResponse_SpeechEventType_value) proto.RegisterType((*RecognizeRequest)(nil), "google.cloud.speech.v1p1beta1.RecognizeRequest") proto.RegisterType((*LongRunningRecognizeRequest)(nil), "google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest") proto.RegisterType((*StreamingRecognizeRequest)(nil), "google.cloud.speech.v1p1beta1.StreamingRecognizeRequest") @@ -1874,12 +1880,6 @@ func init() { proto.RegisterType((*SpeechRecognitionResult)(nil), "google.cloud.speech.v1p1beta1.SpeechRecognitionResult") proto.RegisterType((*SpeechRecognitionAlternative)(nil), "google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative") proto.RegisterType((*WordInfo)(nil), "google.cloud.speech.v1p1beta1.WordInfo") - proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionConfig_AudioEncoding", RecognitionConfig_AudioEncoding_name, RecognitionConfig_AudioEncoding_value) - proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionMetadata_InteractionType", RecognitionMetadata_InteractionType_name, RecognitionMetadata_InteractionType_value) - proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionMetadata_MicrophoneDistance", RecognitionMetadata_MicrophoneDistance_name, RecognitionMetadata_MicrophoneDistance_value) - proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionMetadata_OriginalMediaType", RecognitionMetadata_OriginalMediaType_name, RecognitionMetadata_OriginalMediaType_value) - proto.RegisterEnum("google.cloud.speech.v1p1beta1.RecognitionMetadata_RecordingDeviceType", RecognitionMetadata_RecordingDeviceType_name, RecognitionMetadata_RecordingDeviceType_value) - proto.RegisterEnum("google.cloud.speech.v1p1beta1.StreamingRecognizeResponse_SpeechEventType", StreamingRecognizeResponse_SpeechEventType_name, StreamingRecognizeResponse_SpeechEventType_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/support/common/common.pb.go b/googleapis/cloud/support/common/common.pb.go index 61b70dce06782240ae3e604ee3198bd7498ecac9..df87ded3fbc6b74563a61a0377e329eb7792b1c2 100644 --- a/googleapis/cloud/support/common/common.pb.go +++ b/googleapis/cloud/support/common/common.pb.go @@ -951,6 +951,12 @@ func (m *IssueTaxonomy_Category) GetComponents() map[string]*IssueTaxonomy_Compo } func init() { + proto.RegisterEnum("google.cloud.support.common.SupportAccount_State", SupportAccount_State_name, SupportAccount_State_value) + proto.RegisterEnum("google.cloud.support.common.SupportAccount_PricingModel", SupportAccount_PricingModel_name, SupportAccount_PricingModel_value) + proto.RegisterEnum("google.cloud.support.common.Case_Priority", Case_Priority_name, Case_Priority_value) + proto.RegisterEnum("google.cloud.support.common.Case_State", Case_State_name, Case_State_value) + proto.RegisterEnum("google.cloud.support.common.CustomerIssue_IssueState", CustomerIssue_IssueState_name, CustomerIssue_IssueState_value) + proto.RegisterEnum("google.cloud.support.common.SupportRole_Role", SupportRole_Role_name, SupportRole_Role_value) proto.RegisterType((*SupportAccount)(nil), "google.cloud.support.common.SupportAccount") proto.RegisterType((*Case)(nil), "google.cloud.support.common.Case") proto.RegisterType((*CustomerIssue)(nil), "google.cloud.support.common.CustomerIssue") @@ -961,12 +967,6 @@ func init() { proto.RegisterType((*IssueTaxonomy_Component)(nil), "google.cloud.support.common.IssueTaxonomy.Component") proto.RegisterType((*IssueTaxonomy_Category)(nil), "google.cloud.support.common.IssueTaxonomy.Category") proto.RegisterMapType((map[string]*IssueTaxonomy_Component)(nil), "google.cloud.support.common.IssueTaxonomy.Category.ComponentsEntry") - proto.RegisterEnum("google.cloud.support.common.SupportAccount_State", SupportAccount_State_name, SupportAccount_State_value) - proto.RegisterEnum("google.cloud.support.common.SupportAccount_PricingModel", SupportAccount_PricingModel_name, SupportAccount_PricingModel_value) - proto.RegisterEnum("google.cloud.support.common.Case_Priority", Case_Priority_name, Case_Priority_value) - proto.RegisterEnum("google.cloud.support.common.Case_State", Case_State_name, Case_State_value) - proto.RegisterEnum("google.cloud.support.common.CustomerIssue_IssueState", CustomerIssue_IssueState_name, CustomerIssue_IssueState_value) - proto.RegisterEnum("google.cloud.support.common.SupportRole_Role", SupportRole_Role_name, SupportRole_Role_value) } func init() { proto.RegisterFile("google/cloud/support/common.proto", fileDescriptor_f71dd4106e21c931) } diff --git a/googleapis/cloud/tasks/v2beta2/queue.pb.go b/googleapis/cloud/tasks/v2beta2/queue.pb.go index 3b3a36731f7115434572e606b0872012a9bf08b3..65e7a505e4030c4d466e619d29805e2f3fa74a03 100644 --- a/googleapis/cloud/tasks/v2beta2/queue.pb.go +++ b/googleapis/cloud/tasks/v2beta2/queue.pb.go @@ -730,10 +730,10 @@ func _RetryConfig_OneofSizer(msg proto.Message) (n int) { } func init() { + proto.RegisterEnum("google.cloud.tasks.v2beta2.Queue_State", Queue_State_name, Queue_State_value) proto.RegisterType((*Queue)(nil), "google.cloud.tasks.v2beta2.Queue") proto.RegisterType((*RateLimits)(nil), "google.cloud.tasks.v2beta2.RateLimits") proto.RegisterType((*RetryConfig)(nil), "google.cloud.tasks.v2beta2.RetryConfig") - proto.RegisterEnum("google.cloud.tasks.v2beta2.Queue_State", Queue_State_name, Queue_State_value) } func init() { diff --git a/googleapis/cloud/tasks/v2beta2/target.pb.go b/googleapis/cloud/tasks/v2beta2/target.pb.go index 14a23b4516f4a25f6a68d62bc7254ac668deecd8..13ab9bd3d82dc674cee23e91a6a1bc6989b11d71 100644 --- a/googleapis/cloud/tasks/v2beta2/target.pb.go +++ b/googleapis/cloud/tasks/v2beta2/target.pb.go @@ -582,13 +582,13 @@ func (m *AppEngineRouting) GetHost() string { } func init() { + proto.RegisterEnum("google.cloud.tasks.v2beta2.HttpMethod", HttpMethod_name, HttpMethod_value) proto.RegisterType((*PullTarget)(nil), "google.cloud.tasks.v2beta2.PullTarget") proto.RegisterType((*PullMessage)(nil), "google.cloud.tasks.v2beta2.PullMessage") proto.RegisterType((*AppEngineHttpTarget)(nil), "google.cloud.tasks.v2beta2.AppEngineHttpTarget") proto.RegisterType((*AppEngineHttpRequest)(nil), "google.cloud.tasks.v2beta2.AppEngineHttpRequest") proto.RegisterMapType((map[string]string)(nil), "google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry") proto.RegisterType((*AppEngineRouting)(nil), "google.cloud.tasks.v2beta2.AppEngineRouting") - proto.RegisterEnum("google.cloud.tasks.v2beta2.HttpMethod", HttpMethod_name, HttpMethod_value) } func init() { diff --git a/googleapis/cloud/tasks/v2beta2/task.pb.go b/googleapis/cloud/tasks/v2beta2/task.pb.go index bb7e2ec6b374dda93cd7db368a8b252c7a66a96b..4a9810c3397b840cd9233862f948876f59f394ff 100644 --- a/googleapis/cloud/tasks/v2beta2/task.pb.go +++ b/googleapis/cloud/tasks/v2beta2/task.pb.go @@ -458,10 +458,10 @@ func (m *AttemptStatus) GetResponseStatus() *status.Status { } func init() { + proto.RegisterEnum("google.cloud.tasks.v2beta2.Task_View", Task_View_name, Task_View_value) proto.RegisterType((*Task)(nil), "google.cloud.tasks.v2beta2.Task") proto.RegisterType((*TaskStatus)(nil), "google.cloud.tasks.v2beta2.TaskStatus") proto.RegisterType((*AttemptStatus)(nil), "google.cloud.tasks.v2beta2.AttemptStatus") - proto.RegisterEnum("google.cloud.tasks.v2beta2.Task_View", Task_View_name, Task_View_value) } func init() { diff --git a/googleapis/cloud/tasks/v2beta3/queue.pb.go b/googleapis/cloud/tasks/v2beta3/queue.pb.go index d25beeef370056d4edb1a170b1af441932173853..cf071b26c5acb0142b0a7c31eb6d2ecd10d1942c 100644 --- a/googleapis/cloud/tasks/v2beta3/queue.pb.go +++ b/googleapis/cloud/tasks/v2beta3/queue.pb.go @@ -580,10 +580,10 @@ func (m *RetryConfig) GetMaxDoublings() int32 { } func init() { + proto.RegisterEnum("google.cloud.tasks.v2beta3.Queue_State", Queue_State_name, Queue_State_value) proto.RegisterType((*Queue)(nil), "google.cloud.tasks.v2beta3.Queue") proto.RegisterType((*RateLimits)(nil), "google.cloud.tasks.v2beta3.RateLimits") proto.RegisterType((*RetryConfig)(nil), "google.cloud.tasks.v2beta3.RetryConfig") - proto.RegisterEnum("google.cloud.tasks.v2beta3.Queue_State", Queue_State_name, Queue_State_value) } func init() { diff --git a/googleapis/cloud/tasks/v2beta3/target.pb.go b/googleapis/cloud/tasks/v2beta3/target.pb.go index b303ba8f95e276cab229a943e9ee85f673d3c591..043f309e1432cbd48026d7672023e78ebd035a77 100644 --- a/googleapis/cloud/tasks/v2beta3/target.pb.go +++ b/googleapis/cloud/tasks/v2beta3/target.pb.go @@ -435,11 +435,11 @@ func (m *AppEngineRouting) GetHost() string { } func init() { + proto.RegisterEnum("google.cloud.tasks.v2beta3.HttpMethod", HttpMethod_name, HttpMethod_value) proto.RegisterType((*AppEngineHttpQueue)(nil), "google.cloud.tasks.v2beta3.AppEngineHttpQueue") proto.RegisterType((*AppEngineHttpRequest)(nil), "google.cloud.tasks.v2beta3.AppEngineHttpRequest") proto.RegisterMapType((map[string]string)(nil), "google.cloud.tasks.v2beta3.AppEngineHttpRequest.HeadersEntry") proto.RegisterType((*AppEngineRouting)(nil), "google.cloud.tasks.v2beta3.AppEngineRouting") - proto.RegisterEnum("google.cloud.tasks.v2beta3.HttpMethod", HttpMethod_name, HttpMethod_value) } func init() { diff --git a/googleapis/cloud/tasks/v2beta3/task.pb.go b/googleapis/cloud/tasks/v2beta3/task.pb.go index a8d38404dc15b57f218b42720b9c061808a917d0..9121d38e19353aa030c0f8a9e2a1ad05be3856fb 100644 --- a/googleapis/cloud/tasks/v2beta3/task.pb.go +++ b/googleapis/cloud/tasks/v2beta3/task.pb.go @@ -372,9 +372,9 @@ func (m *Attempt) GetResponseStatus() *status.Status { } func init() { + proto.RegisterEnum("google.cloud.tasks.v2beta3.Task_View", Task_View_name, Task_View_value) proto.RegisterType((*Task)(nil), "google.cloud.tasks.v2beta3.Task") proto.RegisterType((*Attempt)(nil), "google.cloud.tasks.v2beta3.Attempt") - proto.RegisterEnum("google.cloud.tasks.v2beta3.Task_View", Task_View_name, Task_View_value) } func init() { diff --git a/googleapis/cloud/texttospeech/v1/cloud_tts.pb.go b/googleapis/cloud/texttospeech/v1/cloud_tts.pb.go index e0a7b691699d6ab44674fcb5e30a529628c1870b..9eb62d4361293ec03ca2725c094b5876f30c2d7b 100644 --- a/googleapis/cloud/texttospeech/v1/cloud_tts.pb.go +++ b/googleapis/cloud/texttospeech/v1/cloud_tts.pb.go @@ -683,6 +683,8 @@ func (m *SynthesizeSpeechResponse) GetAudioContent() []byte { } func init() { + proto.RegisterEnum("google.cloud.texttospeech.v1.SsmlVoiceGender", SsmlVoiceGender_name, SsmlVoiceGender_value) + proto.RegisterEnum("google.cloud.texttospeech.v1.AudioEncoding", AudioEncoding_name, AudioEncoding_value) proto.RegisterType((*ListVoicesRequest)(nil), "google.cloud.texttospeech.v1.ListVoicesRequest") proto.RegisterType((*ListVoicesResponse)(nil), "google.cloud.texttospeech.v1.ListVoicesResponse") proto.RegisterType((*Voice)(nil), "google.cloud.texttospeech.v1.Voice") @@ -691,8 +693,6 @@ func init() { proto.RegisterType((*VoiceSelectionParams)(nil), "google.cloud.texttospeech.v1.VoiceSelectionParams") proto.RegisterType((*AudioConfig)(nil), "google.cloud.texttospeech.v1.AudioConfig") proto.RegisterType((*SynthesizeSpeechResponse)(nil), "google.cloud.texttospeech.v1.SynthesizeSpeechResponse") - proto.RegisterEnum("google.cloud.texttospeech.v1.SsmlVoiceGender", SsmlVoiceGender_name, SsmlVoiceGender_value) - proto.RegisterEnum("google.cloud.texttospeech.v1.AudioEncoding", AudioEncoding_name, AudioEncoding_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/texttospeech/v1beta1/cloud_tts.pb.go b/googleapis/cloud/texttospeech/v1beta1/cloud_tts.pb.go index abcf68943a9bad75d571215abc9f2547aa15c102..5a146962f47cdd3bddcf7e862eb8c862abb9fcb4 100644 --- a/googleapis/cloud/texttospeech/v1beta1/cloud_tts.pb.go +++ b/googleapis/cloud/texttospeech/v1beta1/cloud_tts.pb.go @@ -694,6 +694,8 @@ func (m *SynthesizeSpeechResponse) GetAudioContent() []byte { } func init() { + proto.RegisterEnum("google.cloud.texttospeech.v1beta1.SsmlVoiceGender", SsmlVoiceGender_name, SsmlVoiceGender_value) + proto.RegisterEnum("google.cloud.texttospeech.v1beta1.AudioEncoding", AudioEncoding_name, AudioEncoding_value) proto.RegisterType((*ListVoicesRequest)(nil), "google.cloud.texttospeech.v1beta1.ListVoicesRequest") proto.RegisterType((*ListVoicesResponse)(nil), "google.cloud.texttospeech.v1beta1.ListVoicesResponse") proto.RegisterType((*Voice)(nil), "google.cloud.texttospeech.v1beta1.Voice") @@ -702,8 +704,6 @@ func init() { proto.RegisterType((*VoiceSelectionParams)(nil), "google.cloud.texttospeech.v1beta1.VoiceSelectionParams") proto.RegisterType((*AudioConfig)(nil), "google.cloud.texttospeech.v1beta1.AudioConfig") proto.RegisterType((*SynthesizeSpeechResponse)(nil), "google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse") - proto.RegisterEnum("google.cloud.texttospeech.v1beta1.SsmlVoiceGender", SsmlVoiceGender_name, SsmlVoiceGender_value) - proto.RegisterEnum("google.cloud.texttospeech.v1beta1.AudioEncoding", AudioEncoding_name, AudioEncoding_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/videointelligence/v1/video_intelligence.pb.go b/googleapis/cloud/videointelligence/v1/video_intelligence.pb.go index de3c96bf547242fbd04d1522079c5a8e7e7c839c..3db20f861c5755616e9b141d32a9eeb20906ecf2 100644 --- a/googleapis/cloud/videointelligence/v1/video_intelligence.pb.go +++ b/googleapis/cloud/videointelligence/v1/video_intelligence.pb.go @@ -1404,6 +1404,9 @@ func (m *AnnotateVideoProgress) GetAnnotationProgress() []*VideoAnnotationProgre } func init() { + proto.RegisterEnum("google.cloud.videointelligence.v1.Feature", Feature_name, Feature_value) + proto.RegisterEnum("google.cloud.videointelligence.v1.LabelDetectionMode", LabelDetectionMode_name, LabelDetectionMode_value) + proto.RegisterEnum("google.cloud.videointelligence.v1.Likelihood", Likelihood_name, Likelihood_value) proto.RegisterType((*AnnotateVideoRequest)(nil), "google.cloud.videointelligence.v1.AnnotateVideoRequest") proto.RegisterType((*VideoContext)(nil), "google.cloud.videointelligence.v1.VideoContext") proto.RegisterType((*LabelDetectionConfig)(nil), "google.cloud.videointelligence.v1.LabelDetectionConfig") @@ -1425,9 +1428,6 @@ func init() { proto.RegisterType((*AnnotateVideoResponse)(nil), "google.cloud.videointelligence.v1.AnnotateVideoResponse") proto.RegisterType((*VideoAnnotationProgress)(nil), "google.cloud.videointelligence.v1.VideoAnnotationProgress") proto.RegisterType((*AnnotateVideoProgress)(nil), "google.cloud.videointelligence.v1.AnnotateVideoProgress") - proto.RegisterEnum("google.cloud.videointelligence.v1.Feature", Feature_name, Feature_value) - proto.RegisterEnum("google.cloud.videointelligence.v1.LabelDetectionMode", LabelDetectionMode_name, LabelDetectionMode_value) - proto.RegisterEnum("google.cloud.videointelligence.v1.Likelihood", Likelihood_name, Likelihood_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/videointelligence/v1beta1/video_intelligence.pb.go b/googleapis/cloud/videointelligence/v1beta1/video_intelligence.pb.go index 115f847f42e2a314a6f51750b3bf537edfb13942..b3197570a4b61a94994cc7994cdee7f6271f0a4b 100644 --- a/googleapis/cloud/videointelligence/v1beta1/video_intelligence.pb.go +++ b/googleapis/cloud/videointelligence/v1beta1/video_intelligence.pb.go @@ -1083,6 +1083,10 @@ func (m *AnnotateVideoProgress) GetAnnotationProgress() []*VideoAnnotationProgre } func init() { + proto.RegisterEnum("google.cloud.videointelligence.v1beta1.Feature", Feature_name, Feature_value) + proto.RegisterEnum("google.cloud.videointelligence.v1beta1.LabelLevel", LabelLevel_name, LabelLevel_value) + proto.RegisterEnum("google.cloud.videointelligence.v1beta1.LabelDetectionMode", LabelDetectionMode_name, LabelDetectionMode_value) + proto.RegisterEnum("google.cloud.videointelligence.v1beta1.Likelihood", Likelihood_name, Likelihood_value) proto.RegisterType((*AnnotateVideoRequest)(nil), "google.cloud.videointelligence.v1beta1.AnnotateVideoRequest") proto.RegisterType((*VideoContext)(nil), "google.cloud.videointelligence.v1beta1.VideoContext") proto.RegisterType((*VideoSegment)(nil), "google.cloud.videointelligence.v1beta1.VideoSegment") @@ -1096,10 +1100,6 @@ func init() { proto.RegisterType((*AnnotateVideoResponse)(nil), "google.cloud.videointelligence.v1beta1.AnnotateVideoResponse") proto.RegisterType((*VideoAnnotationProgress)(nil), "google.cloud.videointelligence.v1beta1.VideoAnnotationProgress") proto.RegisterType((*AnnotateVideoProgress)(nil), "google.cloud.videointelligence.v1beta1.AnnotateVideoProgress") - proto.RegisterEnum("google.cloud.videointelligence.v1beta1.Feature", Feature_name, Feature_value) - proto.RegisterEnum("google.cloud.videointelligence.v1beta1.LabelLevel", LabelLevel_name, LabelLevel_value) - proto.RegisterEnum("google.cloud.videointelligence.v1beta1.LabelDetectionMode", LabelDetectionMode_name, LabelDetectionMode_value) - proto.RegisterEnum("google.cloud.videointelligence.v1beta1.Likelihood", Likelihood_name, Likelihood_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/videointelligence/v1beta2/video_intelligence.pb.go b/googleapis/cloud/videointelligence/v1beta2/video_intelligence.pb.go index 352f12f92f463ade71690b829e8f1b7ee965f3bc..e027d6848fdcea4032a70519818f8f36ce3de04a 100644 --- a/googleapis/cloud/videointelligence/v1beta2/video_intelligence.pb.go +++ b/googleapis/cloud/videointelligence/v1beta2/video_intelligence.pb.go @@ -1404,6 +1404,9 @@ func (m *AnnotateVideoProgress) GetAnnotationProgress() []*VideoAnnotationProgre } func init() { + proto.RegisterEnum("google.cloud.videointelligence.v1beta2.Feature", Feature_name, Feature_value) + proto.RegisterEnum("google.cloud.videointelligence.v1beta2.LabelDetectionMode", LabelDetectionMode_name, LabelDetectionMode_value) + proto.RegisterEnum("google.cloud.videointelligence.v1beta2.Likelihood", Likelihood_name, Likelihood_value) proto.RegisterType((*AnnotateVideoRequest)(nil), "google.cloud.videointelligence.v1beta2.AnnotateVideoRequest") proto.RegisterType((*VideoContext)(nil), "google.cloud.videointelligence.v1beta2.VideoContext") proto.RegisterType((*LabelDetectionConfig)(nil), "google.cloud.videointelligence.v1beta2.LabelDetectionConfig") @@ -1425,9 +1428,6 @@ func init() { proto.RegisterType((*AnnotateVideoResponse)(nil), "google.cloud.videointelligence.v1beta2.AnnotateVideoResponse") proto.RegisterType((*VideoAnnotationProgress)(nil), "google.cloud.videointelligence.v1beta2.VideoAnnotationProgress") proto.RegisterType((*AnnotateVideoProgress)(nil), "google.cloud.videointelligence.v1beta2.AnnotateVideoProgress") - proto.RegisterEnum("google.cloud.videointelligence.v1beta2.Feature", Feature_name, Feature_value) - proto.RegisterEnum("google.cloud.videointelligence.v1beta2.LabelDetectionMode", LabelDetectionMode_name, LabelDetectionMode_value) - proto.RegisterEnum("google.cloud.videointelligence.v1beta2.Likelihood", Likelihood_name, Likelihood_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/videointelligence/v1p1beta1/video_intelligence.pb.go b/googleapis/cloud/videointelligence/v1p1beta1/video_intelligence.pb.go index 3d91ccce75f4fca1d67fc6e5aa945b917bd7fb5f..bd5d418f2e4a875e7e2a2ba1f85ca322d248a792 100644 --- a/googleapis/cloud/videointelligence/v1p1beta1/video_intelligence.pb.go +++ b/googleapis/cloud/videointelligence/v1p1beta1/video_intelligence.pb.go @@ -1454,6 +1454,9 @@ func (m *WordInfo) GetWord() string { } func init() { + proto.RegisterEnum("google.cloud.videointelligence.v1p1beta1.Feature", Feature_name, Feature_value) + proto.RegisterEnum("google.cloud.videointelligence.v1p1beta1.LabelDetectionMode", LabelDetectionMode_name, LabelDetectionMode_value) + proto.RegisterEnum("google.cloud.videointelligence.v1p1beta1.Likelihood", Likelihood_name, Likelihood_value) proto.RegisterType((*AnnotateVideoRequest)(nil), "google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest") proto.RegisterType((*VideoContext)(nil), "google.cloud.videointelligence.v1p1beta1.VideoContext") proto.RegisterType((*LabelDetectionConfig)(nil), "google.cloud.videointelligence.v1p1beta1.LabelDetectionConfig") @@ -1475,9 +1478,6 @@ func init() { proto.RegisterType((*SpeechTranscription)(nil), "google.cloud.videointelligence.v1p1beta1.SpeechTranscription") proto.RegisterType((*SpeechRecognitionAlternative)(nil), "google.cloud.videointelligence.v1p1beta1.SpeechRecognitionAlternative") proto.RegisterType((*WordInfo)(nil), "google.cloud.videointelligence.v1p1beta1.WordInfo") - proto.RegisterEnum("google.cloud.videointelligence.v1p1beta1.Feature", Feature_name, Feature_value) - proto.RegisterEnum("google.cloud.videointelligence.v1p1beta1.LabelDetectionMode", LabelDetectionMode_name, LabelDetectionMode_value) - proto.RegisterEnum("google.cloud.videointelligence.v1p1beta1.Likelihood", Likelihood_name, Likelihood_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/videointelligence/v1p2beta1/video_intelligence.pb.go b/googleapis/cloud/videointelligence/v1p2beta1/video_intelligence.pb.go index 76c1ff938c6846eb2a484b6a709e418edef77681..5d989929d02a709b3f61ce6e3fe2d12076bb5222 100644 --- a/googleapis/cloud/videointelligence/v1p2beta1/video_intelligence.pb.go +++ b/googleapis/cloud/videointelligence/v1p2beta1/video_intelligence.pb.go @@ -1651,6 +1651,9 @@ func (m *ObjectTrackingAnnotation) GetSegment() *VideoSegment { } func init() { + proto.RegisterEnum("google.cloud.videointelligence.v1p2beta1.Feature", Feature_name, Feature_value) + proto.RegisterEnum("google.cloud.videointelligence.v1p2beta1.LabelDetectionMode", LabelDetectionMode_name, LabelDetectionMode_value) + proto.RegisterEnum("google.cloud.videointelligence.v1p2beta1.Likelihood", Likelihood_name, Likelihood_value) proto.RegisterType((*AnnotateVideoRequest)(nil), "google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest") proto.RegisterType((*VideoContext)(nil), "google.cloud.videointelligence.v1p2beta1.VideoContext") proto.RegisterType((*LabelDetectionConfig)(nil), "google.cloud.videointelligence.v1p2beta1.LabelDetectionConfig") @@ -1676,9 +1679,6 @@ func init() { proto.RegisterType((*TextAnnotation)(nil), "google.cloud.videointelligence.v1p2beta1.TextAnnotation") proto.RegisterType((*ObjectTrackingFrame)(nil), "google.cloud.videointelligence.v1p2beta1.ObjectTrackingFrame") proto.RegisterType((*ObjectTrackingAnnotation)(nil), "google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation") - proto.RegisterEnum("google.cloud.videointelligence.v1p2beta1.Feature", Feature_name, Feature_value) - proto.RegisterEnum("google.cloud.videointelligence.v1p2beta1.LabelDetectionMode", LabelDetectionMode_name, LabelDetectionMode_value) - proto.RegisterEnum("google.cloud.videointelligence.v1p2beta1.Likelihood", Likelihood_name, Likelihood_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/vision/v1/image_annotator.pb.go b/googleapis/cloud/vision/v1/image_annotator.pb.go index 8dd1071b012a5d3e60942fcbc538db9e5b4bccb5..0a5987cbdc5c48b70abba241424f755d8bb7ea8b 100644 --- a/googleapis/cloud/vision/v1/image_annotator.pb.go +++ b/googleapis/cloud/vision/v1/image_annotator.pb.go @@ -2488,6 +2488,10 @@ func (m *OperationMetadata) GetUpdateTime() *timestamp.Timestamp { } func init() { + proto.RegisterEnum("google.cloud.vision.v1.Likelihood", Likelihood_name, Likelihood_value) + proto.RegisterEnum("google.cloud.vision.v1.Feature_Type", Feature_Type_name, Feature_Type_value) + proto.RegisterEnum("google.cloud.vision.v1.FaceAnnotation_Landmark_Type", FaceAnnotation_Landmark_Type_name, FaceAnnotation_Landmark_Type_value) + proto.RegisterEnum("google.cloud.vision.v1.OperationMetadata_State", OperationMetadata_State_name, OperationMetadata_State_value) proto.RegisterType((*Feature)(nil), "google.cloud.vision.v1.Feature") proto.RegisterType((*ImageSource)(nil), "google.cloud.vision.v1.ImageSource") proto.RegisterType((*Image)(nil), "google.cloud.vision.v1.Image") @@ -2522,10 +2526,6 @@ func init() { proto.RegisterType((*GcsSource)(nil), "google.cloud.vision.v1.GcsSource") proto.RegisterType((*GcsDestination)(nil), "google.cloud.vision.v1.GcsDestination") proto.RegisterType((*OperationMetadata)(nil), "google.cloud.vision.v1.OperationMetadata") - proto.RegisterEnum("google.cloud.vision.v1.Likelihood", Likelihood_name, Likelihood_value) - proto.RegisterEnum("google.cloud.vision.v1.Feature_Type", Feature_Type_name, Feature_Type_value) - proto.RegisterEnum("google.cloud.vision.v1.FaceAnnotation_Landmark_Type", FaceAnnotation_Landmark_Type_name, FaceAnnotation_Landmark_Type_value) - proto.RegisterEnum("google.cloud.vision.v1.OperationMetadata_State", OperationMetadata_State_name, OperationMetadata_State_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/vision/v1/text_annotation.pb.go b/googleapis/cloud/vision/v1/text_annotation.pb.go index e085ce7b757bbd839ea85a0caf7bc042d723f055..ec840ac36bbd495339509a81650cdd880b084655 100644 --- a/googleapis/cloud/vision/v1/text_annotation.pb.go +++ b/googleapis/cloud/vision/v1/text_annotation.pb.go @@ -741,6 +741,8 @@ func (m *Symbol) GetConfidence() float32 { } func init() { + proto.RegisterEnum("google.cloud.vision.v1.TextAnnotation_DetectedBreak_BreakType", TextAnnotation_DetectedBreak_BreakType_name, TextAnnotation_DetectedBreak_BreakType_value) + proto.RegisterEnum("google.cloud.vision.v1.Block_BlockType", Block_BlockType_name, Block_BlockType_value) proto.RegisterType((*TextAnnotation)(nil), "google.cloud.vision.v1.TextAnnotation") proto.RegisterType((*TextAnnotation_DetectedLanguage)(nil), "google.cloud.vision.v1.TextAnnotation.DetectedLanguage") proto.RegisterType((*TextAnnotation_DetectedBreak)(nil), "google.cloud.vision.v1.TextAnnotation.DetectedBreak") @@ -750,8 +752,6 @@ func init() { proto.RegisterType((*Paragraph)(nil), "google.cloud.vision.v1.Paragraph") proto.RegisterType((*Word)(nil), "google.cloud.vision.v1.Word") proto.RegisterType((*Symbol)(nil), "google.cloud.vision.v1.Symbol") - proto.RegisterEnum("google.cloud.vision.v1.TextAnnotation_DetectedBreak_BreakType", TextAnnotation_DetectedBreak_BreakType_name, TextAnnotation_DetectedBreak_BreakType_value) - proto.RegisterEnum("google.cloud.vision.v1.Block_BlockType", Block_BlockType_name, Block_BlockType_value) } func init() { diff --git a/googleapis/cloud/vision/v1p1beta1/image_annotator.pb.go b/googleapis/cloud/vision/v1p1beta1/image_annotator.pb.go index aa299b6a3431da3ac0c4e790a418fb3c53dec8fa..7d2ac6a85214d0680d8eb1d78d3f4f42b7b7cf70 100644 --- a/googleapis/cloud/vision/v1p1beta1/image_annotator.pb.go +++ b/googleapis/cloud/vision/v1p1beta1/image_annotator.pb.go @@ -1767,6 +1767,9 @@ func (m *BatchAnnotateImagesResponse) GetResponses() []*AnnotateImageResponse { } func init() { + proto.RegisterEnum("google.cloud.vision.v1p1beta1.Likelihood", Likelihood_name, Likelihood_value) + proto.RegisterEnum("google.cloud.vision.v1p1beta1.Feature_Type", Feature_Type_name, Feature_Type_value) + proto.RegisterEnum("google.cloud.vision.v1p1beta1.FaceAnnotation_Landmark_Type", FaceAnnotation_Landmark_Type_name, FaceAnnotation_Landmark_Type_value) proto.RegisterType((*Feature)(nil), "google.cloud.vision.v1p1beta1.Feature") proto.RegisterType((*ImageSource)(nil), "google.cloud.vision.v1p1beta1.ImageSource") proto.RegisterType((*Image)(nil), "google.cloud.vision.v1p1beta1.Image") @@ -1789,9 +1792,6 @@ func init() { proto.RegisterType((*AnnotateImageResponse)(nil), "google.cloud.vision.v1p1beta1.AnnotateImageResponse") proto.RegisterType((*BatchAnnotateImagesRequest)(nil), "google.cloud.vision.v1p1beta1.BatchAnnotateImagesRequest") proto.RegisterType((*BatchAnnotateImagesResponse)(nil), "google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse") - proto.RegisterEnum("google.cloud.vision.v1p1beta1.Likelihood", Likelihood_name, Likelihood_value) - proto.RegisterEnum("google.cloud.vision.v1p1beta1.Feature_Type", Feature_Type_name, Feature_Type_value) - proto.RegisterEnum("google.cloud.vision.v1p1beta1.FaceAnnotation_Landmark_Type", FaceAnnotation_Landmark_Type_name, FaceAnnotation_Landmark_Type_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/vision/v1p1beta1/text_annotation.pb.go b/googleapis/cloud/vision/v1p1beta1/text_annotation.pb.go index 8ce9d064a5d462d3d2b974bad34999d3835b0fc8..45fdc264e18b918667f1df15082afd0c56696f2d 100644 --- a/googleapis/cloud/vision/v1p1beta1/text_annotation.pb.go +++ b/googleapis/cloud/vision/v1p1beta1/text_annotation.pb.go @@ -735,6 +735,8 @@ func (m *Symbol) GetConfidence() float32 { } func init() { + proto.RegisterEnum("google.cloud.vision.v1p1beta1.TextAnnotation_DetectedBreak_BreakType", TextAnnotation_DetectedBreak_BreakType_name, TextAnnotation_DetectedBreak_BreakType_value) + proto.RegisterEnum("google.cloud.vision.v1p1beta1.Block_BlockType", Block_BlockType_name, Block_BlockType_value) proto.RegisterType((*TextAnnotation)(nil), "google.cloud.vision.v1p1beta1.TextAnnotation") proto.RegisterType((*TextAnnotation_DetectedLanguage)(nil), "google.cloud.vision.v1p1beta1.TextAnnotation.DetectedLanguage") proto.RegisterType((*TextAnnotation_DetectedBreak)(nil), "google.cloud.vision.v1p1beta1.TextAnnotation.DetectedBreak") @@ -744,8 +746,6 @@ func init() { proto.RegisterType((*Paragraph)(nil), "google.cloud.vision.v1p1beta1.Paragraph") proto.RegisterType((*Word)(nil), "google.cloud.vision.v1p1beta1.Word") proto.RegisterType((*Symbol)(nil), "google.cloud.vision.v1p1beta1.Symbol") - proto.RegisterEnum("google.cloud.vision.v1p1beta1.TextAnnotation_DetectedBreak_BreakType", TextAnnotation_DetectedBreak_BreakType_name, TextAnnotation_DetectedBreak_BreakType_value) - proto.RegisterEnum("google.cloud.vision.v1p1beta1.Block_BlockType", Block_BlockType_name, Block_BlockType_value) } func init() { diff --git a/googleapis/cloud/vision/v1p2beta1/image_annotator.pb.go b/googleapis/cloud/vision/v1p2beta1/image_annotator.pb.go index 70a89641e61cf78c74b70e6ff7f51e09b63c13a8..8bad7c71da0e7057600c7c2af99952f3d5785a9b 100644 --- a/googleapis/cloud/vision/v1p2beta1/image_annotator.pb.go +++ b/googleapis/cloud/vision/v1p2beta1/image_annotator.pb.go @@ -2394,6 +2394,10 @@ func (m *OperationMetadata) GetUpdateTime() *timestamp.Timestamp { } func init() { + proto.RegisterEnum("google.cloud.vision.v1p2beta1.Likelihood", Likelihood_name, Likelihood_value) + proto.RegisterEnum("google.cloud.vision.v1p2beta1.Feature_Type", Feature_Type_name, Feature_Type_value) + proto.RegisterEnum("google.cloud.vision.v1p2beta1.FaceAnnotation_Landmark_Type", FaceAnnotation_Landmark_Type_name, FaceAnnotation_Landmark_Type_value) + proto.RegisterEnum("google.cloud.vision.v1p2beta1.OperationMetadata_State", OperationMetadata_State_name, OperationMetadata_State_value) proto.RegisterType((*Feature)(nil), "google.cloud.vision.v1p2beta1.Feature") proto.RegisterType((*ImageSource)(nil), "google.cloud.vision.v1p2beta1.ImageSource") proto.RegisterType((*Image)(nil), "google.cloud.vision.v1p2beta1.Image") @@ -2427,10 +2431,6 @@ func init() { proto.RegisterType((*GcsSource)(nil), "google.cloud.vision.v1p2beta1.GcsSource") proto.RegisterType((*GcsDestination)(nil), "google.cloud.vision.v1p2beta1.GcsDestination") proto.RegisterType((*OperationMetadata)(nil), "google.cloud.vision.v1p2beta1.OperationMetadata") - proto.RegisterEnum("google.cloud.vision.v1p2beta1.Likelihood", Likelihood_name, Likelihood_value) - proto.RegisterEnum("google.cloud.vision.v1p2beta1.Feature_Type", Feature_Type_name, Feature_Type_value) - proto.RegisterEnum("google.cloud.vision.v1p2beta1.FaceAnnotation_Landmark_Type", FaceAnnotation_Landmark_Type_name, FaceAnnotation_Landmark_Type_value) - proto.RegisterEnum("google.cloud.vision.v1p2beta1.OperationMetadata_State", OperationMetadata_State_name, OperationMetadata_State_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/vision/v1p2beta1/text_annotation.pb.go b/googleapis/cloud/vision/v1p2beta1/text_annotation.pb.go index 1f46a3cfe51eba9c00cbde5a8254870b5f3f7f9c..888def81875fb03eb2a6f3f750fdc744758440e2 100644 --- a/googleapis/cloud/vision/v1p2beta1/text_annotation.pb.go +++ b/googleapis/cloud/vision/v1p2beta1/text_annotation.pb.go @@ -741,6 +741,8 @@ func (m *Symbol) GetConfidence() float32 { } func init() { + proto.RegisterEnum("google.cloud.vision.v1p2beta1.TextAnnotation_DetectedBreak_BreakType", TextAnnotation_DetectedBreak_BreakType_name, TextAnnotation_DetectedBreak_BreakType_value) + proto.RegisterEnum("google.cloud.vision.v1p2beta1.Block_BlockType", Block_BlockType_name, Block_BlockType_value) proto.RegisterType((*TextAnnotation)(nil), "google.cloud.vision.v1p2beta1.TextAnnotation") proto.RegisterType((*TextAnnotation_DetectedLanguage)(nil), "google.cloud.vision.v1p2beta1.TextAnnotation.DetectedLanguage") proto.RegisterType((*TextAnnotation_DetectedBreak)(nil), "google.cloud.vision.v1p2beta1.TextAnnotation.DetectedBreak") @@ -750,8 +752,6 @@ func init() { proto.RegisterType((*Paragraph)(nil), "google.cloud.vision.v1p2beta1.Paragraph") proto.RegisterType((*Word)(nil), "google.cloud.vision.v1p2beta1.Word") proto.RegisterType((*Symbol)(nil), "google.cloud.vision.v1p2beta1.Symbol") - proto.RegisterEnum("google.cloud.vision.v1p2beta1.TextAnnotation_DetectedBreak_BreakType", TextAnnotation_DetectedBreak_BreakType_name, TextAnnotation_DetectedBreak_BreakType_value) - proto.RegisterEnum("google.cloud.vision.v1p2beta1.Block_BlockType", Block_BlockType_name, Block_BlockType_value) } func init() { diff --git a/googleapis/cloud/vision/v1p3beta1/image_annotator.pb.go b/googleapis/cloud/vision/v1p3beta1/image_annotator.pb.go index dead88e4c1b93a407b1f22fe71b7b8404fb5e0a3..9b3759198d310aab8db777b55b63e5eae9075994 100644 --- a/googleapis/cloud/vision/v1p3beta1/image_annotator.pb.go +++ b/googleapis/cloud/vision/v1p3beta1/image_annotator.pb.go @@ -2510,6 +2510,10 @@ func (m *OperationMetadata) GetUpdateTime() *timestamp.Timestamp { } func init() { + proto.RegisterEnum("google.cloud.vision.v1p3beta1.Likelihood", Likelihood_name, Likelihood_value) + proto.RegisterEnum("google.cloud.vision.v1p3beta1.Feature_Type", Feature_Type_name, Feature_Type_value) + proto.RegisterEnum("google.cloud.vision.v1p3beta1.FaceAnnotation_Landmark_Type", FaceAnnotation_Landmark_Type_name, FaceAnnotation_Landmark_Type_value) + proto.RegisterEnum("google.cloud.vision.v1p3beta1.OperationMetadata_State", OperationMetadata_State_name, OperationMetadata_State_value) proto.RegisterType((*Feature)(nil), "google.cloud.vision.v1p3beta1.Feature") proto.RegisterType((*ImageSource)(nil), "google.cloud.vision.v1p3beta1.ImageSource") proto.RegisterType((*Image)(nil), "google.cloud.vision.v1p3beta1.Image") @@ -2544,10 +2548,6 @@ func init() { proto.RegisterType((*GcsSource)(nil), "google.cloud.vision.v1p3beta1.GcsSource") proto.RegisterType((*GcsDestination)(nil), "google.cloud.vision.v1p3beta1.GcsDestination") proto.RegisterType((*OperationMetadata)(nil), "google.cloud.vision.v1p3beta1.OperationMetadata") - proto.RegisterEnum("google.cloud.vision.v1p3beta1.Likelihood", Likelihood_name, Likelihood_value) - proto.RegisterEnum("google.cloud.vision.v1p3beta1.Feature_Type", Feature_Type_name, Feature_Type_value) - proto.RegisterEnum("google.cloud.vision.v1p3beta1.FaceAnnotation_Landmark_Type", FaceAnnotation_Landmark_Type_name, FaceAnnotation_Landmark_Type_value) - proto.RegisterEnum("google.cloud.vision.v1p3beta1.OperationMetadata_State", OperationMetadata_State_name, OperationMetadata_State_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/vision/v1p3beta1/product_search.pb.go b/googleapis/cloud/vision/v1p3beta1/product_search.pb.go index 4acde77c2bc09710afa793ddaca6bd2469eee183..564278b46f84e926b7afd026f184d9163986ad81 100644 --- a/googleapis/cloud/vision/v1p3beta1/product_search.pb.go +++ b/googleapis/cloud/vision/v1p3beta1/product_search.pb.go @@ -430,12 +430,12 @@ func (m *ProductSearchResults_Result) GetImage() string { } func init() { + proto.RegisterEnum("google.cloud.vision.v1p3beta1.ProductSearchCategory", ProductSearchCategory_name, ProductSearchCategory_value) + proto.RegisterEnum("google.cloud.vision.v1p3beta1.ProductSearchResultsView", ProductSearchResultsView_name, ProductSearchResultsView_value) proto.RegisterType((*ProductSearchParams)(nil), "google.cloud.vision.v1p3beta1.ProductSearchParams") proto.RegisterType((*ProductSearchResults)(nil), "google.cloud.vision.v1p3beta1.ProductSearchResults") proto.RegisterType((*ProductSearchResults_ProductInfo)(nil), "google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo") proto.RegisterType((*ProductSearchResults_Result)(nil), "google.cloud.vision.v1p3beta1.ProductSearchResults.Result") - proto.RegisterEnum("google.cloud.vision.v1p3beta1.ProductSearchCategory", ProductSearchCategory_name, ProductSearchCategory_value) - proto.RegisterEnum("google.cloud.vision.v1p3beta1.ProductSearchResultsView", ProductSearchResultsView_name, ProductSearchResultsView_value) } func init() { diff --git a/googleapis/cloud/vision/v1p3beta1/product_search_service.pb.go b/googleapis/cloud/vision/v1p3beta1/product_search_service.pb.go index 1b24cc80836d2b26702eb4733f60fa090fa11118..5eb60fc50a7b8418d8db66e109ba7ba894cfb534 100644 --- a/googleapis/cloud/vision/v1p3beta1/product_search_service.pb.go +++ b/googleapis/cloud/vision/v1p3beta1/product_search_service.pb.go @@ -1911,6 +1911,7 @@ func (m *BatchOperationMetadata) GetEndTime() *timestamp.Timestamp { } func init() { + proto.RegisterEnum("google.cloud.vision.v1p3beta1.BatchOperationMetadata_State", BatchOperationMetadata_State_name, BatchOperationMetadata_State_value) proto.RegisterType((*Product)(nil), "google.cloud.vision.v1p3beta1.Product") proto.RegisterType((*Product_KeyValue)(nil), "google.cloud.vision.v1p3beta1.Product.KeyValue") proto.RegisterType((*ProductSet)(nil), "google.cloud.vision.v1p3beta1.ProductSet") @@ -1941,7 +1942,6 @@ func init() { proto.RegisterType((*ImportProductSetsRequest)(nil), "google.cloud.vision.v1p3beta1.ImportProductSetsRequest") proto.RegisterType((*ImportProductSetsResponse)(nil), "google.cloud.vision.v1p3beta1.ImportProductSetsResponse") proto.RegisterType((*BatchOperationMetadata)(nil), "google.cloud.vision.v1p3beta1.BatchOperationMetadata") - proto.RegisterEnum("google.cloud.vision.v1p3beta1.BatchOperationMetadata_State", BatchOperationMetadata_State_name, BatchOperationMetadata_State_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/cloud/vision/v1p3beta1/text_annotation.pb.go b/googleapis/cloud/vision/v1p3beta1/text_annotation.pb.go index 9317d5900b52c42177cbed2765d3a81eaeb96130..929f381d70c6cbff1817ff1434e0ad64af824e73 100644 --- a/googleapis/cloud/vision/v1p3beta1/text_annotation.pb.go +++ b/googleapis/cloud/vision/v1p3beta1/text_annotation.pb.go @@ -741,6 +741,8 @@ func (m *Symbol) GetConfidence() float32 { } func init() { + proto.RegisterEnum("google.cloud.vision.v1p3beta1.TextAnnotation_DetectedBreak_BreakType", TextAnnotation_DetectedBreak_BreakType_name, TextAnnotation_DetectedBreak_BreakType_value) + proto.RegisterEnum("google.cloud.vision.v1p3beta1.Block_BlockType", Block_BlockType_name, Block_BlockType_value) proto.RegisterType((*TextAnnotation)(nil), "google.cloud.vision.v1p3beta1.TextAnnotation") proto.RegisterType((*TextAnnotation_DetectedLanguage)(nil), "google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage") proto.RegisterType((*TextAnnotation_DetectedBreak)(nil), "google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak") @@ -750,8 +752,6 @@ func init() { proto.RegisterType((*Paragraph)(nil), "google.cloud.vision.v1p3beta1.Paragraph") proto.RegisterType((*Word)(nil), "google.cloud.vision.v1p3beta1.Word") proto.RegisterType((*Symbol)(nil), "google.cloud.vision.v1p3beta1.Symbol") - proto.RegisterEnum("google.cloud.vision.v1p3beta1.TextAnnotation_DetectedBreak_BreakType", TextAnnotation_DetectedBreak_BreakType_name, TextAnnotation_DetectedBreak_BreakType_value) - proto.RegisterEnum("google.cloud.vision.v1p3beta1.Block_BlockType", Block_BlockType_name, Block_BlockType_value) } func init() { diff --git a/googleapis/cloud/websecurityscanner/v1alpha/finding.pb.go b/googleapis/cloud/websecurityscanner/v1alpha/finding.pb.go index cbbea214471be0dd6a668b1bbc49fbfdb5cee238..d8af7819bc82de11096e759046283086c552ca32 100644 --- a/googleapis/cloud/websecurityscanner/v1alpha/finding.pb.go +++ b/googleapis/cloud/websecurityscanner/v1alpha/finding.pb.go @@ -274,8 +274,8 @@ func (m *Finding) GetXss() *Xss { } func init() { - proto.RegisterType((*Finding)(nil), "google.cloud.websecurityscanner.v1alpha.Finding") proto.RegisterEnum("google.cloud.websecurityscanner.v1alpha.Finding_FindingType", Finding_FindingType_name, Finding_FindingType_value) + proto.RegisterType((*Finding)(nil), "google.cloud.websecurityscanner.v1alpha.Finding") } func init() { diff --git a/googleapis/cloud/websecurityscanner/v1alpha/scan_config.pb.go b/googleapis/cloud/websecurityscanner/v1alpha/scan_config.pb.go index 849622d9feeaf84d6a54eb0893f1be5faa2543ab..3b3a03331b5a2e3f96b461e6a09f284798dd6b6e 100644 --- a/googleapis/cloud/websecurityscanner/v1alpha/scan_config.pb.go +++ b/googleapis/cloud/websecurityscanner/v1alpha/scan_config.pb.go @@ -541,13 +541,13 @@ func (m *ScanConfig_Schedule) GetIntervalDurationDays() int32 { } func init() { + proto.RegisterEnum("google.cloud.websecurityscanner.v1alpha.ScanConfig_UserAgent", ScanConfig_UserAgent_name, ScanConfig_UserAgent_value) + proto.RegisterEnum("google.cloud.websecurityscanner.v1alpha.ScanConfig_TargetPlatform", ScanConfig_TargetPlatform_name, ScanConfig_TargetPlatform_value) proto.RegisterType((*ScanConfig)(nil), "google.cloud.websecurityscanner.v1alpha.ScanConfig") proto.RegisterType((*ScanConfig_Authentication)(nil), "google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication") proto.RegisterType((*ScanConfig_Authentication_GoogleAccount)(nil), "google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount") proto.RegisterType((*ScanConfig_Authentication_CustomAccount)(nil), "google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount") proto.RegisterType((*ScanConfig_Schedule)(nil), "google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule") - proto.RegisterEnum("google.cloud.websecurityscanner.v1alpha.ScanConfig_UserAgent", ScanConfig_UserAgent_name, ScanConfig_UserAgent_value) - proto.RegisterEnum("google.cloud.websecurityscanner.v1alpha.ScanConfig_TargetPlatform", ScanConfig_TargetPlatform_name, ScanConfig_TargetPlatform_value) } func init() { diff --git a/googleapis/cloud/websecurityscanner/v1alpha/scan_run.pb.go b/googleapis/cloud/websecurityscanner/v1alpha/scan_run.pb.go index bec253c8dc635a05d06603c2b0ec8cb8acd9ff5e..e150714e1f239fd42c127289b63e6e6c3a0f11b9 100644 --- a/googleapis/cloud/websecurityscanner/v1alpha/scan_run.pb.go +++ b/googleapis/cloud/websecurityscanner/v1alpha/scan_run.pb.go @@ -230,9 +230,9 @@ func (m *ScanRun) GetProgressPercent() int32 { } func init() { - proto.RegisterType((*ScanRun)(nil), "google.cloud.websecurityscanner.v1alpha.ScanRun") proto.RegisterEnum("google.cloud.websecurityscanner.v1alpha.ScanRun_ExecutionState", ScanRun_ExecutionState_name, ScanRun_ExecutionState_value) proto.RegisterEnum("google.cloud.websecurityscanner.v1alpha.ScanRun_ResultState", ScanRun_ResultState_name, ScanRun_ResultState_value) + proto.RegisterType((*ScanRun)(nil), "google.cloud.websecurityscanner.v1alpha.ScanRun") } func init() { diff --git a/googleapis/container/v1/cluster_service.pb.go b/googleapis/container/v1/cluster_service.pb.go index d4174692f342fde044336160cfd37d2d54bd1d21..e5fa00a0ddec42f8447977710f4e957dd3c81509 100644 --- a/googleapis/container/v1/cluster_service.pb.go +++ b/googleapis/container/v1/cluster_service.pb.go @@ -4878,6 +4878,12 @@ func (m *SetMaintenancePolicyRequest) GetMaintenancePolicy() *MaintenancePolicy } func init() { + proto.RegisterEnum("google.container.v1.NetworkPolicy_Provider", NetworkPolicy_Provider_name, NetworkPolicy_Provider_value) + proto.RegisterEnum("google.container.v1.Cluster_Status", Cluster_Status_name, Cluster_Status_value) + proto.RegisterEnum("google.container.v1.Operation_Status", Operation_Status_name, Operation_Status_value) + proto.RegisterEnum("google.container.v1.Operation_Type", Operation_Type_name, Operation_Type_value) + proto.RegisterEnum("google.container.v1.SetMasterAuthRequest_Action", SetMasterAuthRequest_Action_name, SetMasterAuthRequest_Action_value) + proto.RegisterEnum("google.container.v1.NodePool_Status", NodePool_Status_name, NodePool_Status_value) proto.RegisterType((*NodeConfig)(nil), "google.container.v1.NodeConfig") proto.RegisterMapType((map[string]string)(nil), "google.container.v1.NodeConfig.LabelsEntry") proto.RegisterMapType((map[string]string)(nil), "google.container.v1.NodeConfig.MetadataEntry") @@ -4940,12 +4946,6 @@ func init() { proto.RegisterType((*AcceleratorConfig)(nil), "google.container.v1.AcceleratorConfig") proto.RegisterType((*SetNetworkPolicyRequest)(nil), "google.container.v1.SetNetworkPolicyRequest") proto.RegisterType((*SetMaintenancePolicyRequest)(nil), "google.container.v1.SetMaintenancePolicyRequest") - proto.RegisterEnum("google.container.v1.NetworkPolicy_Provider", NetworkPolicy_Provider_name, NetworkPolicy_Provider_value) - proto.RegisterEnum("google.container.v1.Cluster_Status", Cluster_Status_name, Cluster_Status_value) - proto.RegisterEnum("google.container.v1.Operation_Status", Operation_Status_name, Operation_Status_value) - proto.RegisterEnum("google.container.v1.Operation_Type", Operation_Type_name, Operation_Type_value) - proto.RegisterEnum("google.container.v1.SetMasterAuthRequest_Action", SetMasterAuthRequest_Action_name, SetMasterAuthRequest_Action_value) - proto.RegisterEnum("google.container.v1.NodePool_Status", NodePool_Status_name, NodePool_Status_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/container/v1alpha1/cluster_service.pb.go b/googleapis/container/v1alpha1/cluster_service.pb.go index a6469487ce8295897eb2e08da1223f3869b3cf2b..c186a09778fca3d1f993cd8f4626f08767050929 100644 --- a/googleapis/container/v1alpha1/cluster_service.pb.go +++ b/googleapis/container/v1alpha1/cluster_service.pb.go @@ -5391,6 +5391,13 @@ func (m *SetMaintenancePolicyRequest) GetName() string { } func init() { + proto.RegisterEnum("google.container.v1alpha1.NodeTaint_Effect", NodeTaint_Effect_name, NodeTaint_Effect_value) + proto.RegisterEnum("google.container.v1alpha1.NetworkPolicy_Provider", NetworkPolicy_Provider_name, NetworkPolicy_Provider_value) + proto.RegisterEnum("google.container.v1alpha1.Cluster_Status", Cluster_Status_name, Cluster_Status_value) + proto.RegisterEnum("google.container.v1alpha1.Operation_Status", Operation_Status_name, Operation_Status_value) + proto.RegisterEnum("google.container.v1alpha1.Operation_Type", Operation_Type_name, Operation_Type_value) + proto.RegisterEnum("google.container.v1alpha1.SetMasterAuthRequest_Action", SetMasterAuthRequest_Action_name, SetMasterAuthRequest_Action_value) + proto.RegisterEnum("google.container.v1alpha1.NodePool_Status", NodePool_Status_name, NodePool_Status_value) proto.RegisterType((*NodeConfig)(nil), "google.container.v1alpha1.NodeConfig") proto.RegisterMapType((map[string]string)(nil), "google.container.v1alpha1.NodeConfig.LabelsEntry") proto.RegisterMapType((map[string]string)(nil), "google.container.v1alpha1.NodeConfig.MetadataEntry") @@ -5453,13 +5460,6 @@ func init() { proto.RegisterType((*AcceleratorConfig)(nil), "google.container.v1alpha1.AcceleratorConfig") proto.RegisterType((*SetNetworkPolicyRequest)(nil), "google.container.v1alpha1.SetNetworkPolicyRequest") proto.RegisterType((*SetMaintenancePolicyRequest)(nil), "google.container.v1alpha1.SetMaintenancePolicyRequest") - proto.RegisterEnum("google.container.v1alpha1.NodeTaint_Effect", NodeTaint_Effect_name, NodeTaint_Effect_value) - proto.RegisterEnum("google.container.v1alpha1.NetworkPolicy_Provider", NetworkPolicy_Provider_name, NetworkPolicy_Provider_value) - proto.RegisterEnum("google.container.v1alpha1.Cluster_Status", Cluster_Status_name, Cluster_Status_value) - proto.RegisterEnum("google.container.v1alpha1.Operation_Status", Operation_Status_name, Operation_Status_value) - proto.RegisterEnum("google.container.v1alpha1.Operation_Type", Operation_Type_name, Operation_Type_value) - proto.RegisterEnum("google.container.v1alpha1.SetMasterAuthRequest_Action", SetMasterAuthRequest_Action_name, SetMasterAuthRequest_Action_value) - proto.RegisterEnum("google.container.v1alpha1.NodePool_Status", NodePool_Status_name, NodePool_Status_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/container/v1beta1/cluster_service.pb.go b/googleapis/container/v1beta1/cluster_service.pb.go index b346cab3a9117db3ed37ebe8bcf7034804a28de3..f23e32bd278d8329b954f1385c5f6b330008d7ab 100644 --- a/googleapis/container/v1beta1/cluster_service.pb.go +++ b/googleapis/container/v1beta1/cluster_service.pb.go @@ -4660,6 +4660,13 @@ func (m *SetMaintenancePolicyRequest) GetName() string { } func init() { + proto.RegisterEnum("google.container.v1beta1.NodeTaint_Effect", NodeTaint_Effect_name, NodeTaint_Effect_value) + proto.RegisterEnum("google.container.v1beta1.NetworkPolicy_Provider", NetworkPolicy_Provider_name, NetworkPolicy_Provider_value) + proto.RegisterEnum("google.container.v1beta1.Cluster_Status", Cluster_Status_name, Cluster_Status_value) + proto.RegisterEnum("google.container.v1beta1.Operation_Status", Operation_Status_name, Operation_Status_value) + proto.RegisterEnum("google.container.v1beta1.Operation_Type", Operation_Type_name, Operation_Type_value) + proto.RegisterEnum("google.container.v1beta1.SetMasterAuthRequest_Action", SetMasterAuthRequest_Action_name, SetMasterAuthRequest_Action_value) + proto.RegisterEnum("google.container.v1beta1.NodePool_Status", NodePool_Status_name, NodePool_Status_value) proto.RegisterType((*NodeConfig)(nil), "google.container.v1beta1.NodeConfig") proto.RegisterMapType((map[string]string)(nil), "google.container.v1beta1.NodeConfig.LabelsEntry") proto.RegisterMapType((map[string]string)(nil), "google.container.v1beta1.NodeConfig.MetadataEntry") @@ -4714,13 +4721,6 @@ func init() { proto.RegisterType((*AcceleratorConfig)(nil), "google.container.v1beta1.AcceleratorConfig") proto.RegisterType((*SetNetworkPolicyRequest)(nil), "google.container.v1beta1.SetNetworkPolicyRequest") proto.RegisterType((*SetMaintenancePolicyRequest)(nil), "google.container.v1beta1.SetMaintenancePolicyRequest") - proto.RegisterEnum("google.container.v1beta1.NodeTaint_Effect", NodeTaint_Effect_name, NodeTaint_Effect_value) - proto.RegisterEnum("google.container.v1beta1.NetworkPolicy_Provider", NetworkPolicy_Provider_name, NetworkPolicy_Provider_value) - proto.RegisterEnum("google.container.v1beta1.Cluster_Status", Cluster_Status_name, Cluster_Status_value) - proto.RegisterEnum("google.container.v1beta1.Operation_Status", Operation_Status_name, Operation_Status_value) - proto.RegisterEnum("google.container.v1beta1.Operation_Type", Operation_Type_name, Operation_Type_value) - proto.RegisterEnum("google.container.v1beta1.SetMasterAuthRequest_Action", SetMasterAuthRequest_Action_name, SetMasterAuthRequest_Action_value) - proto.RegisterEnum("google.container.v1beta1.NodePool_Status", NodePool_Status_name, NodePool_Status_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/datastore/admin/v1/datastore_admin.pb.go b/googleapis/datastore/admin/v1/datastore_admin.pb.go index 24aca5b117dd2f974159eb0127995800821b4275..a0f2d658fd53ae049a4f105c40b343546674d12b 100644 --- a/googleapis/datastore/admin/v1/datastore_admin.pb.go +++ b/googleapis/datastore/admin/v1/datastore_admin.pb.go @@ -932,6 +932,8 @@ func (m *IndexOperationMetadata) GetIndexId() string { } func init() { + proto.RegisterEnum("google.datastore.admin.v1.OperationType", OperationType_name, OperationType_value) + proto.RegisterEnum("google.datastore.admin.v1.CommonMetadata_State", CommonMetadata_State_name, CommonMetadata_State_value) proto.RegisterType((*CommonMetadata)(nil), "google.datastore.admin.v1.CommonMetadata") proto.RegisterMapType((map[string]string)(nil), "google.datastore.admin.v1.CommonMetadata.LabelsEntry") proto.RegisterType((*Progress)(nil), "google.datastore.admin.v1.Progress") @@ -947,8 +949,6 @@ func init() { proto.RegisterType((*ListIndexesRequest)(nil), "google.datastore.admin.v1.ListIndexesRequest") proto.RegisterType((*ListIndexesResponse)(nil), "google.datastore.admin.v1.ListIndexesResponse") proto.RegisterType((*IndexOperationMetadata)(nil), "google.datastore.admin.v1.IndexOperationMetadata") - proto.RegisterEnum("google.datastore.admin.v1.OperationType", OperationType_name, OperationType_value) - proto.RegisterEnum("google.datastore.admin.v1.CommonMetadata_State", CommonMetadata_State_name, CommonMetadata_State_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/datastore/admin/v1/index.pb.go b/googleapis/datastore/admin/v1/index.pb.go index 7e83dd200ef77e20ae0bed1f4ab07291f23275cf..b9ce9c6808bb0c6ac5e711d196d51d060675836b 100644 --- a/googleapis/datastore/admin/v1/index.pb.go +++ b/googleapis/datastore/admin/v1/index.pb.go @@ -287,11 +287,11 @@ func (m *Index_IndexedProperty) GetDirection() Index_Direction { } func init() { - proto.RegisterType((*Index)(nil), "google.datastore.admin.v1.Index") - proto.RegisterType((*Index_IndexedProperty)(nil), "google.datastore.admin.v1.Index.IndexedProperty") proto.RegisterEnum("google.datastore.admin.v1.Index_AncestorMode", Index_AncestorMode_name, Index_AncestorMode_value) proto.RegisterEnum("google.datastore.admin.v1.Index_Direction", Index_Direction_name, Index_Direction_value) proto.RegisterEnum("google.datastore.admin.v1.Index_State", Index_State_name, Index_State_value) + proto.RegisterType((*Index)(nil), "google.datastore.admin.v1.Index") + proto.RegisterType((*Index_IndexedProperty)(nil), "google.datastore.admin.v1.Index.IndexedProperty") } func init() { diff --git a/googleapis/datastore/admin/v1beta1/datastore_admin.pb.go b/googleapis/datastore/admin/v1beta1/datastore_admin.pb.go index 1f55e8ef5fe4f22e0af2646da4ad2201e0dd1b82..243784c5e17884b9e0980e0d8b75fd9c4a9cf0bc 100644 --- a/googleapis/datastore/admin/v1beta1/datastore_admin.pb.go +++ b/googleapis/datastore/admin/v1beta1/datastore_admin.pb.go @@ -695,6 +695,8 @@ func (m *EntityFilter) GetNamespaceIds() []string { } func init() { + proto.RegisterEnum("google.datastore.admin.v1beta1.OperationType", OperationType_name, OperationType_value) + proto.RegisterEnum("google.datastore.admin.v1beta1.CommonMetadata_State", CommonMetadata_State_name, CommonMetadata_State_value) proto.RegisterType((*CommonMetadata)(nil), "google.datastore.admin.v1beta1.CommonMetadata") proto.RegisterMapType((map[string]string)(nil), "google.datastore.admin.v1beta1.CommonMetadata.LabelsEntry") proto.RegisterType((*Progress)(nil), "google.datastore.admin.v1beta1.Progress") @@ -706,8 +708,6 @@ func init() { proto.RegisterType((*ExportEntitiesMetadata)(nil), "google.datastore.admin.v1beta1.ExportEntitiesMetadata") proto.RegisterType((*ImportEntitiesMetadata)(nil), "google.datastore.admin.v1beta1.ImportEntitiesMetadata") proto.RegisterType((*EntityFilter)(nil), "google.datastore.admin.v1beta1.EntityFilter") - proto.RegisterEnum("google.datastore.admin.v1beta1.OperationType", OperationType_name, OperationType_value) - proto.RegisterEnum("google.datastore.admin.v1beta1.CommonMetadata_State", CommonMetadata_State_name, CommonMetadata_State_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/datastore/v1/datastore.pb.go b/googleapis/datastore/v1/datastore.pb.go index 07febee2087da624b76c1202b68f29470c97bc13..1db3239bac10c67fa40c507698a42bfed962e641 100644 --- a/googleapis/datastore/v1/datastore.pb.go +++ b/googleapis/datastore/v1/datastore.pb.go @@ -1721,6 +1721,8 @@ func (m *TransactionOptions_ReadOnly) XXX_DiscardUnknown() { var xxx_messageInfo_TransactionOptions_ReadOnly proto.InternalMessageInfo func init() { + proto.RegisterEnum("google.datastore.v1.CommitRequest_Mode", CommitRequest_Mode_name, CommitRequest_Mode_value) + proto.RegisterEnum("google.datastore.v1.ReadOptions_ReadConsistency", ReadOptions_ReadConsistency_name, ReadOptions_ReadConsistency_value) proto.RegisterType((*LookupRequest)(nil), "google.datastore.v1.LookupRequest") proto.RegisterType((*LookupResponse)(nil), "google.datastore.v1.LookupResponse") proto.RegisterType((*RunQueryRequest)(nil), "google.datastore.v1.RunQueryRequest") @@ -1741,8 +1743,6 @@ func init() { proto.RegisterType((*TransactionOptions)(nil), "google.datastore.v1.TransactionOptions") proto.RegisterType((*TransactionOptions_ReadWrite)(nil), "google.datastore.v1.TransactionOptions.ReadWrite") proto.RegisterType((*TransactionOptions_ReadOnly)(nil), "google.datastore.v1.TransactionOptions.ReadOnly") - proto.RegisterEnum("google.datastore.v1.CommitRequest_Mode", CommitRequest_Mode_name, CommitRequest_Mode_value) - proto.RegisterEnum("google.datastore.v1.ReadOptions_ReadConsistency", ReadOptions_ReadConsistency_name, ReadOptions_ReadConsistency_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/datastore/v1/query.pb.go b/googleapis/datastore/v1/query.pb.go index 1c1cc9f8ccf2f562579f3582520e1acd6c3bece4..b4b68e097c368b35be29b23f9b87c06e99f24494 100644 --- a/googleapis/datastore/v1/query.pb.go +++ b/googleapis/datastore/v1/query.pb.go @@ -1167,6 +1167,11 @@ func (m *QueryResultBatch) GetSnapshotVersion() int64 { } func init() { + proto.RegisterEnum("google.datastore.v1.EntityResult_ResultType", EntityResult_ResultType_name, EntityResult_ResultType_value) + proto.RegisterEnum("google.datastore.v1.PropertyOrder_Direction", PropertyOrder_Direction_name, PropertyOrder_Direction_value) + proto.RegisterEnum("google.datastore.v1.CompositeFilter_Operator", CompositeFilter_Operator_name, CompositeFilter_Operator_value) + proto.RegisterEnum("google.datastore.v1.PropertyFilter_Operator", PropertyFilter_Operator_name, PropertyFilter_Operator_value) + proto.RegisterEnum("google.datastore.v1.QueryResultBatch_MoreResultsType", QueryResultBatch_MoreResultsType_name, QueryResultBatch_MoreResultsType_value) proto.RegisterType((*EntityResult)(nil), "google.datastore.v1.EntityResult") proto.RegisterType((*Query)(nil), "google.datastore.v1.Query") proto.RegisterType((*KindExpression)(nil), "google.datastore.v1.KindExpression") @@ -1180,11 +1185,6 @@ func init() { proto.RegisterMapType((map[string]*GqlQueryParameter)(nil), "google.datastore.v1.GqlQuery.NamedBindingsEntry") proto.RegisterType((*GqlQueryParameter)(nil), "google.datastore.v1.GqlQueryParameter") proto.RegisterType((*QueryResultBatch)(nil), "google.datastore.v1.QueryResultBatch") - proto.RegisterEnum("google.datastore.v1.EntityResult_ResultType", EntityResult_ResultType_name, EntityResult_ResultType_value) - proto.RegisterEnum("google.datastore.v1.PropertyOrder_Direction", PropertyOrder_Direction_name, PropertyOrder_Direction_value) - proto.RegisterEnum("google.datastore.v1.CompositeFilter_Operator", CompositeFilter_Operator_name, CompositeFilter_Operator_value) - proto.RegisterEnum("google.datastore.v1.PropertyFilter_Operator", PropertyFilter_Operator_name, PropertyFilter_Operator_value) - proto.RegisterEnum("google.datastore.v1.QueryResultBatch_MoreResultsType", QueryResultBatch_MoreResultsType_name, QueryResultBatch_MoreResultsType_value) } func init() { proto.RegisterFile("google/datastore/v1/query.proto", fileDescriptor_927b394a72d2bc0d) } diff --git a/googleapis/datastore/v1beta3/datastore.pb.go b/googleapis/datastore/v1beta3/datastore.pb.go index b4e286c70fd41c3c057fbb73c9550df8f5ba3494..cb9940ba2f7b2b7700c01efaba82340be3aa78ec 100644 --- a/googleapis/datastore/v1beta3/datastore.pb.go +++ b/googleapis/datastore/v1beta3/datastore.pb.go @@ -1721,6 +1721,8 @@ func (m *TransactionOptions_ReadOnly) XXX_DiscardUnknown() { var xxx_messageInfo_TransactionOptions_ReadOnly proto.InternalMessageInfo func init() { + proto.RegisterEnum("google.datastore.v1beta3.CommitRequest_Mode", CommitRequest_Mode_name, CommitRequest_Mode_value) + proto.RegisterEnum("google.datastore.v1beta3.ReadOptions_ReadConsistency", ReadOptions_ReadConsistency_name, ReadOptions_ReadConsistency_value) proto.RegisterType((*LookupRequest)(nil), "google.datastore.v1beta3.LookupRequest") proto.RegisterType((*LookupResponse)(nil), "google.datastore.v1beta3.LookupResponse") proto.RegisterType((*RunQueryRequest)(nil), "google.datastore.v1beta3.RunQueryRequest") @@ -1741,8 +1743,6 @@ func init() { proto.RegisterType((*TransactionOptions)(nil), "google.datastore.v1beta3.TransactionOptions") proto.RegisterType((*TransactionOptions_ReadWrite)(nil), "google.datastore.v1beta3.TransactionOptions.ReadWrite") proto.RegisterType((*TransactionOptions_ReadOnly)(nil), "google.datastore.v1beta3.TransactionOptions.ReadOnly") - proto.RegisterEnum("google.datastore.v1beta3.CommitRequest_Mode", CommitRequest_Mode_name, CommitRequest_Mode_value) - proto.RegisterEnum("google.datastore.v1beta3.ReadOptions_ReadConsistency", ReadOptions_ReadConsistency_name, ReadOptions_ReadConsistency_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/datastore/v1beta3/query.pb.go b/googleapis/datastore/v1beta3/query.pb.go index d4965cd0aa1537e4b30f23f8d8c419533da0ecb5..eb4a1482292a2e56a5ccd00f584afde5e8065f3d 100644 --- a/googleapis/datastore/v1beta3/query.pb.go +++ b/googleapis/datastore/v1beta3/query.pb.go @@ -1167,6 +1167,11 @@ func (m *QueryResultBatch) GetSnapshotVersion() int64 { } func init() { + proto.RegisterEnum("google.datastore.v1beta3.EntityResult_ResultType", EntityResult_ResultType_name, EntityResult_ResultType_value) + proto.RegisterEnum("google.datastore.v1beta3.PropertyOrder_Direction", PropertyOrder_Direction_name, PropertyOrder_Direction_value) + proto.RegisterEnum("google.datastore.v1beta3.CompositeFilter_Operator", CompositeFilter_Operator_name, CompositeFilter_Operator_value) + proto.RegisterEnum("google.datastore.v1beta3.PropertyFilter_Operator", PropertyFilter_Operator_name, PropertyFilter_Operator_value) + proto.RegisterEnum("google.datastore.v1beta3.QueryResultBatch_MoreResultsType", QueryResultBatch_MoreResultsType_name, QueryResultBatch_MoreResultsType_value) proto.RegisterType((*EntityResult)(nil), "google.datastore.v1beta3.EntityResult") proto.RegisterType((*Query)(nil), "google.datastore.v1beta3.Query") proto.RegisterType((*KindExpression)(nil), "google.datastore.v1beta3.KindExpression") @@ -1180,11 +1185,6 @@ func init() { proto.RegisterMapType((map[string]*GqlQueryParameter)(nil), "google.datastore.v1beta3.GqlQuery.NamedBindingsEntry") proto.RegisterType((*GqlQueryParameter)(nil), "google.datastore.v1beta3.GqlQueryParameter") proto.RegisterType((*QueryResultBatch)(nil), "google.datastore.v1beta3.QueryResultBatch") - proto.RegisterEnum("google.datastore.v1beta3.EntityResult_ResultType", EntityResult_ResultType_name, EntityResult_ResultType_value) - proto.RegisterEnum("google.datastore.v1beta3.PropertyOrder_Direction", PropertyOrder_Direction_name, PropertyOrder_Direction_value) - proto.RegisterEnum("google.datastore.v1beta3.CompositeFilter_Operator", CompositeFilter_Operator_name, CompositeFilter_Operator_value) - proto.RegisterEnum("google.datastore.v1beta3.PropertyFilter_Operator", PropertyFilter_Operator_name, PropertyFilter_Operator_value) - proto.RegisterEnum("google.datastore.v1beta3.QueryResultBatch_MoreResultsType", QueryResultBatch_MoreResultsType_name, QueryResultBatch_MoreResultsType_value) } func init() { diff --git a/googleapis/devtools/build/v1/build_events.pb.go b/googleapis/devtools/build/v1/build_events.pb.go index 8b82ebaa24c56ba817f33a2743ce7b1d1d07f596..1f3b937138196544b2b11c17937843501b0ed574 100644 --- a/googleapis/devtools/build/v1/build_events.pb.go +++ b/googleapis/devtools/build/v1/build_events.pb.go @@ -947,6 +947,9 @@ func (m *StreamId) GetComponent() StreamId_BuildComponent { } func init() { + proto.RegisterEnum("google.devtools.build.v1.ConsoleOutputStream", ConsoleOutputStream_name, ConsoleOutputStream_value) + proto.RegisterEnum("google.devtools.build.v1.BuildEvent_BuildComponentStreamFinished_FinishType", BuildEvent_BuildComponentStreamFinished_FinishType_name, BuildEvent_BuildComponentStreamFinished_FinishType_value) + proto.RegisterEnum("google.devtools.build.v1.StreamId_BuildComponent", StreamId_BuildComponent_name, StreamId_BuildComponent_value) proto.RegisterType((*BuildEvent)(nil), "google.devtools.build.v1.BuildEvent") proto.RegisterType((*BuildEvent_InvocationAttemptStarted)(nil), "google.devtools.build.v1.BuildEvent.InvocationAttemptStarted") proto.RegisterType((*BuildEvent_InvocationAttemptFinished)(nil), "google.devtools.build.v1.BuildEvent.InvocationAttemptFinished") @@ -955,9 +958,6 @@ func init() { proto.RegisterType((*BuildEvent_ConsoleOutput)(nil), "google.devtools.build.v1.BuildEvent.ConsoleOutput") proto.RegisterType((*BuildEvent_BuildComponentStreamFinished)(nil), "google.devtools.build.v1.BuildEvent.BuildComponentStreamFinished") proto.RegisterType((*StreamId)(nil), "google.devtools.build.v1.StreamId") - proto.RegisterEnum("google.devtools.build.v1.ConsoleOutputStream", ConsoleOutputStream_name, ConsoleOutputStream_value) - proto.RegisterEnum("google.devtools.build.v1.BuildEvent_BuildComponentStreamFinished_FinishType", BuildEvent_BuildComponentStreamFinished_FinishType_name, BuildEvent_BuildComponentStreamFinished_FinishType_value) - proto.RegisterEnum("google.devtools.build.v1.StreamId_BuildComponent", StreamId_BuildComponent_name, StreamId_BuildComponent_value) } func init() { diff --git a/googleapis/devtools/build/v1/build_status.pb.go b/googleapis/devtools/build/v1/build_status.pb.go index c04698e44150627b1c14a99fefe71d14a38e6ddd..ec24cc247c5e9e8bd0377eb8f4d79db2cd64f073 100644 --- a/googleapis/devtools/build/v1/build_status.pb.go +++ b/googleapis/devtools/build/v1/build_status.pb.go @@ -129,8 +129,8 @@ func (m *BuildStatus) GetDetails() *any.Any { } func init() { - proto.RegisterType((*BuildStatus)(nil), "google.devtools.build.v1.BuildStatus") proto.RegisterEnum("google.devtools.build.v1.BuildStatus_Result", BuildStatus_Result_name, BuildStatus_Result_value) + proto.RegisterType((*BuildStatus)(nil), "google.devtools.build.v1.BuildStatus") } func init() { diff --git a/googleapis/devtools/build/v1/publish_build_event.pb.go b/googleapis/devtools/build/v1/publish_build_event.pb.go index 029263d9b41db0fbf5551322b670edb15631b9be..7c614132050338f9aa29c547726fcfcd792b96b4 100644 --- a/googleapis/devtools/build/v1/publish_build_event.pb.go +++ b/googleapis/devtools/build/v1/publish_build_event.pb.go @@ -348,11 +348,11 @@ func (m *PublishBuildToolEventStreamRequest) GetNotificationKeywords() []string } func init() { + proto.RegisterEnum("google.devtools.build.v1.PublishLifecycleEventRequest_ServiceLevel", PublishLifecycleEventRequest_ServiceLevel_name, PublishLifecycleEventRequest_ServiceLevel_value) proto.RegisterType((*PublishLifecycleEventRequest)(nil), "google.devtools.build.v1.PublishLifecycleEventRequest") proto.RegisterType((*PublishBuildToolEventStreamResponse)(nil), "google.devtools.build.v1.PublishBuildToolEventStreamResponse") proto.RegisterType((*OrderedBuildEvent)(nil), "google.devtools.build.v1.OrderedBuildEvent") proto.RegisterType((*PublishBuildToolEventStreamRequest)(nil), "google.devtools.build.v1.PublishBuildToolEventStreamRequest") - proto.RegisterEnum("google.devtools.build.v1.PublishLifecycleEventRequest_ServiceLevel", PublishLifecycleEventRequest_ServiceLevel_name, PublishLifecycleEventRequest_ServiceLevel_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/devtools/cloudbuild/v1/cloudbuild.pb.go b/googleapis/devtools/cloudbuild/v1/cloudbuild.pb.go index 0e2e136ff1692fa1e86c49c581b54e449e1145fd..e241a3fcbb795e67eb105833e5de29410cd59f80 100644 --- a/googleapis/devtools/cloudbuild/v1/cloudbuild.pb.go +++ b/googleapis/devtools/cloudbuild/v1/cloudbuild.pb.go @@ -2771,6 +2771,12 @@ func (m *BuildOptions) GetLogStreamingOption() BuildOptions_LogStreamingOption { } func init() { + proto.RegisterEnum("google.devtools.cloudbuild.v1.Build_Status", Build_Status_name, Build_Status_value) + proto.RegisterEnum("google.devtools.cloudbuild.v1.Hash_HashType", Hash_HashType_name, Hash_HashType_value) + proto.RegisterEnum("google.devtools.cloudbuild.v1.BuildOptions_VerifyOption", BuildOptions_VerifyOption_name, BuildOptions_VerifyOption_value) + proto.RegisterEnum("google.devtools.cloudbuild.v1.BuildOptions_MachineType", BuildOptions_MachineType_name, BuildOptions_MachineType_value) + proto.RegisterEnum("google.devtools.cloudbuild.v1.BuildOptions_SubstitutionOption", BuildOptions_SubstitutionOption_name, BuildOptions_SubstitutionOption_value) + proto.RegisterEnum("google.devtools.cloudbuild.v1.BuildOptions_LogStreamingOption", BuildOptions_LogStreamingOption_name, BuildOptions_LogStreamingOption_value) proto.RegisterType((*RetryBuildRequest)(nil), "google.devtools.cloudbuild.v1.RetryBuildRequest") proto.RegisterType((*RunBuildTriggerRequest)(nil), "google.devtools.cloudbuild.v1.RunBuildTriggerRequest") proto.RegisterType((*StorageSource)(nil), "google.devtools.cloudbuild.v1.StorageSource") @@ -2808,12 +2814,6 @@ func init() { proto.RegisterType((*DeleteBuildTriggerRequest)(nil), "google.devtools.cloudbuild.v1.DeleteBuildTriggerRequest") proto.RegisterType((*UpdateBuildTriggerRequest)(nil), "google.devtools.cloudbuild.v1.UpdateBuildTriggerRequest") proto.RegisterType((*BuildOptions)(nil), "google.devtools.cloudbuild.v1.BuildOptions") - proto.RegisterEnum("google.devtools.cloudbuild.v1.Build_Status", Build_Status_name, Build_Status_value) - proto.RegisterEnum("google.devtools.cloudbuild.v1.Hash_HashType", Hash_HashType_name, Hash_HashType_value) - proto.RegisterEnum("google.devtools.cloudbuild.v1.BuildOptions_VerifyOption", BuildOptions_VerifyOption_name, BuildOptions_VerifyOption_value) - proto.RegisterEnum("google.devtools.cloudbuild.v1.BuildOptions_MachineType", BuildOptions_MachineType_name, BuildOptions_MachineType_value) - proto.RegisterEnum("google.devtools.cloudbuild.v1.BuildOptions_SubstitutionOption", BuildOptions_SubstitutionOption_name, BuildOptions_SubstitutionOption_value) - proto.RegisterEnum("google.devtools.cloudbuild.v1.BuildOptions_LogStreamingOption", BuildOptions_LogStreamingOption_name, BuildOptions_LogStreamingOption_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/devtools/clouddebugger/v2/data.pb.go b/googleapis/devtools/clouddebugger/v2/data.pb.go index fc9290ed3538cd2cb82bc2f3e5b9739d3eb72ee5..8b3ca295c3ea9168604d7072f744d7b2492c3060 100644 --- a/googleapis/devtools/clouddebugger/v2/data.pb.go +++ b/googleapis/devtools/clouddebugger/v2/data.pb.go @@ -972,6 +972,9 @@ func (m *Debuggee) GetLabels() map[string]string { } func init() { + proto.RegisterEnum("google.devtools.clouddebugger.v2.StatusMessage_Reference", StatusMessage_Reference_name, StatusMessage_Reference_value) + proto.RegisterEnum("google.devtools.clouddebugger.v2.Breakpoint_Action", Breakpoint_Action_name, Breakpoint_Action_value) + proto.RegisterEnum("google.devtools.clouddebugger.v2.Breakpoint_LogLevel", Breakpoint_LogLevel_name, Breakpoint_LogLevel_value) proto.RegisterType((*FormatMessage)(nil), "google.devtools.clouddebugger.v2.FormatMessage") proto.RegisterType((*StatusMessage)(nil), "google.devtools.clouddebugger.v2.StatusMessage") proto.RegisterType((*SourceLocation)(nil), "google.devtools.clouddebugger.v2.SourceLocation") @@ -981,9 +984,6 @@ func init() { proto.RegisterMapType((map[string]string)(nil), "google.devtools.clouddebugger.v2.Breakpoint.LabelsEntry") proto.RegisterType((*Debuggee)(nil), "google.devtools.clouddebugger.v2.Debuggee") proto.RegisterMapType((map[string]string)(nil), "google.devtools.clouddebugger.v2.Debuggee.LabelsEntry") - proto.RegisterEnum("google.devtools.clouddebugger.v2.StatusMessage_Reference", StatusMessage_Reference_name, StatusMessage_Reference_value) - proto.RegisterEnum("google.devtools.clouddebugger.v2.Breakpoint_Action", Breakpoint_Action_name, Breakpoint_Action_value) - proto.RegisterEnum("google.devtools.clouddebugger.v2.Breakpoint_LogLevel", Breakpoint_LogLevel_name, Breakpoint_LogLevel_value) } func init() { diff --git a/googleapis/devtools/clouderrorreporting/v1beta1/error_stats_service.pb.go b/googleapis/devtools/clouderrorreporting/v1beta1/error_stats_service.pb.go index 036dc06acae1e41bbb32b05c96d9d09c6e714fb6..6fd3f37a8995d3310b3af58a8d7299239e65dd9c 100644 --- a/googleapis/devtools/clouderrorreporting/v1beta1/error_stats_service.pb.go +++ b/googleapis/devtools/clouderrorreporting/v1beta1/error_stats_service.pb.go @@ -909,6 +909,9 @@ func (m *DeleteEventsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_DeleteEventsResponse proto.InternalMessageInfo func init() { + proto.RegisterEnum("google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment", TimedCountAlignment_name, TimedCountAlignment_value) + proto.RegisterEnum("google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder", ErrorGroupOrder_name, ErrorGroupOrder_value) + proto.RegisterEnum("google.devtools.clouderrorreporting.v1beta1.QueryTimeRange_Period", QueryTimeRange_Period_name, QueryTimeRange_Period_value) proto.RegisterType((*ListGroupStatsRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest") proto.RegisterType((*ListGroupStatsResponse)(nil), "google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse") proto.RegisterType((*ErrorGroupStats)(nil), "google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats") @@ -919,9 +922,6 @@ func init() { proto.RegisterType((*ServiceContextFilter)(nil), "google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter") proto.RegisterType((*DeleteEventsRequest)(nil), "google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest") proto.RegisterType((*DeleteEventsResponse)(nil), "google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse") - proto.RegisterEnum("google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment", TimedCountAlignment_name, TimedCountAlignment_value) - proto.RegisterEnum("google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder", ErrorGroupOrder_name, ErrorGroupOrder_value) - proto.RegisterEnum("google.devtools.clouderrorreporting.v1beta1.QueryTimeRange_Period", QueryTimeRange_Period_name, QueryTimeRange_Period_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/devtools/cloudprofiler/v2/profiler.pb.go b/googleapis/devtools/cloudprofiler/v2/profiler.pb.go index aff7f3d9c2e1922a87cf08aee84a71a8f5c7afc6..b41a22ecffc148cff5a1bd4c979c1e44bf2cd031 100644 --- a/googleapis/devtools/cloudprofiler/v2/profiler.pb.go +++ b/googleapis/devtools/cloudprofiler/v2/profiler.pb.go @@ -429,6 +429,7 @@ func (m *Deployment) GetLabels() map[string]string { } func init() { + proto.RegisterEnum("google.devtools.cloudprofiler.v2.ProfileType", ProfileType_name, ProfileType_value) proto.RegisterType((*CreateProfileRequest)(nil), "google.devtools.cloudprofiler.v2.CreateProfileRequest") proto.RegisterType((*CreateOfflineProfileRequest)(nil), "google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest") proto.RegisterType((*UpdateProfileRequest)(nil), "google.devtools.cloudprofiler.v2.UpdateProfileRequest") @@ -436,7 +437,6 @@ func init() { proto.RegisterMapType((map[string]string)(nil), "google.devtools.cloudprofiler.v2.Profile.LabelsEntry") proto.RegisterType((*Deployment)(nil), "google.devtools.cloudprofiler.v2.Deployment") proto.RegisterMapType((map[string]string)(nil), "google.devtools.cloudprofiler.v2.Deployment.LabelsEntry") - proto.RegisterEnum("google.devtools.cloudprofiler.v2.ProfileType", ProfileType_name, ProfileType_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/devtools/cloudtrace/v1/trace.pb.go b/googleapis/devtools/cloudtrace/v1/trace.pb.go index 15c45153952463afe0fa4864fe4357ee8eb39a58..36fea18fc3ab680913b47ba946fa475db651c047 100644 --- a/googleapis/devtools/cloudtrace/v1/trace.pb.go +++ b/googleapis/devtools/cloudtrace/v1/trace.pb.go @@ -653,6 +653,8 @@ func (m *PatchTracesRequest) GetTraces() *Traces { } func init() { + proto.RegisterEnum("google.devtools.cloudtrace.v1.TraceSpan_SpanKind", TraceSpan_SpanKind_name, TraceSpan_SpanKind_value) + proto.RegisterEnum("google.devtools.cloudtrace.v1.ListTracesRequest_ViewType", ListTracesRequest_ViewType_name, ListTracesRequest_ViewType_value) proto.RegisterType((*Trace)(nil), "google.devtools.cloudtrace.v1.Trace") proto.RegisterType((*Traces)(nil), "google.devtools.cloudtrace.v1.Traces") proto.RegisterType((*TraceSpan)(nil), "google.devtools.cloudtrace.v1.TraceSpan") @@ -661,8 +663,6 @@ func init() { proto.RegisterType((*ListTracesResponse)(nil), "google.devtools.cloudtrace.v1.ListTracesResponse") proto.RegisterType((*GetTraceRequest)(nil), "google.devtools.cloudtrace.v1.GetTraceRequest") proto.RegisterType((*PatchTracesRequest)(nil), "google.devtools.cloudtrace.v1.PatchTracesRequest") - proto.RegisterEnum("google.devtools.cloudtrace.v1.TraceSpan_SpanKind", TraceSpan_SpanKind_name, TraceSpan_SpanKind_value) - proto.RegisterEnum("google.devtools.cloudtrace.v1.ListTracesRequest_ViewType", ListTracesRequest_ViewType_name, ListTracesRequest_ViewType_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/devtools/cloudtrace/v2/trace.pb.go b/googleapis/devtools/cloudtrace/v2/trace.pb.go index 4f45a28f579dec3787b6d45de05ed789aee0c528..dd2d831ef911be657493eda2589eaa89b7b50a76 100644 --- a/googleapis/devtools/cloudtrace/v2/trace.pb.go +++ b/googleapis/devtools/cloudtrace/v2/trace.pb.go @@ -1293,6 +1293,8 @@ func (m *TruncatableString) GetTruncatedByteCount() int32 { } func init() { + proto.RegisterEnum("google.devtools.cloudtrace.v2.Span_TimeEvent_MessageEvent_Type", Span_TimeEvent_MessageEvent_Type_name, Span_TimeEvent_MessageEvent_Type_value) + proto.RegisterEnum("google.devtools.cloudtrace.v2.Span_Link_Type", Span_Link_Type_name, Span_Link_Type_value) proto.RegisterType((*Span)(nil), "google.devtools.cloudtrace.v2.Span") proto.RegisterType((*Span_Attributes)(nil), "google.devtools.cloudtrace.v2.Span.Attributes") proto.RegisterMapType((map[string]*AttributeValue)(nil), "google.devtools.cloudtrace.v2.Span.Attributes.AttributeMapEntry") @@ -1308,8 +1310,6 @@ func init() { proto.RegisterType((*StackTrace_StackFrames)(nil), "google.devtools.cloudtrace.v2.StackTrace.StackFrames") proto.RegisterType((*Module)(nil), "google.devtools.cloudtrace.v2.Module") proto.RegisterType((*TruncatableString)(nil), "google.devtools.cloudtrace.v2.TruncatableString") - proto.RegisterEnum("google.devtools.cloudtrace.v2.Span_TimeEvent_MessageEvent_Type", Span_TimeEvent_MessageEvent_Type_name, Span_TimeEvent_MessageEvent_Type_value) - proto.RegisterEnum("google.devtools.cloudtrace.v2.Span_Link_Type", Span_Link_Type_name, Span_Link_Type_value) } func init() { diff --git a/googleapis/devtools/containeranalysis/v1alpha1/bill_of_materials.pb.go b/googleapis/devtools/containeranalysis/v1alpha1/bill_of_materials.pb.go index 2d51eaf822370261fa0141a767129a8739e4516c..600b7c01ae179ea085bc903d16ad7024ff5443d9 100644 --- a/googleapis/devtools/containeranalysis/v1alpha1/bill_of_materials.pb.go +++ b/googleapis/devtools/containeranalysis/v1alpha1/bill_of_materials.pb.go @@ -342,12 +342,12 @@ func (m *PackageManager_Installation) GetLocation() []*PackageManager_Location { } func init() { + proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.PackageManager_Architecture", PackageManager_Architecture_name, PackageManager_Architecture_value) proto.RegisterType((*PackageManager)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager") proto.RegisterType((*PackageManager_Distribution)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Distribution") proto.RegisterType((*PackageManager_Location)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Location") proto.RegisterType((*PackageManager_Package)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Package") proto.RegisterType((*PackageManager_Installation)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Installation") - proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.PackageManager_Architecture", PackageManager_Architecture_name, PackageManager_Architecture_value) } func init() { diff --git a/googleapis/devtools/containeranalysis/v1alpha1/containeranalysis.pb.go b/googleapis/devtools/containeranalysis/v1alpha1/containeranalysis.pb.go index ead9a501b527ca9af87fdcf7af20533d5deacdb9..8a1cbe11a118db378a97439145186b0b7ae92d30 100644 --- a/googleapis/devtools/containeranalysis/v1alpha1/containeranalysis.pb.go +++ b/googleapis/devtools/containeranalysis/v1alpha1/containeranalysis.pb.go @@ -3384,6 +3384,11 @@ func (m *UpdateScanConfigRequest) GetUpdateMask() *field_mask.FieldMask { } func init() { + proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.Note_Kind", Note_Kind_name, Note_Kind_value) + proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.Deployable_Deployment_Platform", Deployable_Deployment_Platform_name, Deployable_Deployment_Platform_value) + proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.Discovery_Discovered_AnalysisStatus", Discovery_Discovered_AnalysisStatus_name, Discovery_Discovered_AnalysisStatus_value) + proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.BuildSignature_KeyType", BuildSignature_KeyType_name, BuildSignature_KeyType_value) + proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.PgpSignedAttestation_ContentType", PgpSignedAttestation_ContentType_name, PgpSignedAttestation_ContentType_value) proto.RegisterType((*Occurrence)(nil), "google.devtools.containeranalysis.v1alpha1.Occurrence") proto.RegisterType((*Resource)(nil), "google.devtools.containeranalysis.v1alpha1.Resource") proto.RegisterType((*Note)(nil), "google.devtools.containeranalysis.v1alpha1.Note") @@ -3425,11 +3430,6 @@ func init() { proto.RegisterType((*ListScanConfigsRequest)(nil), "google.devtools.containeranalysis.v1alpha1.ListScanConfigsRequest") proto.RegisterType((*ListScanConfigsResponse)(nil), "google.devtools.containeranalysis.v1alpha1.ListScanConfigsResponse") proto.RegisterType((*UpdateScanConfigRequest)(nil), "google.devtools.containeranalysis.v1alpha1.UpdateScanConfigRequest") - proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.Note_Kind", Note_Kind_name, Note_Kind_value) - proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.Deployable_Deployment_Platform", Deployable_Deployment_Platform_name, Deployable_Deployment_Platform_value) - proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.Discovery_Discovered_AnalysisStatus", Discovery_Discovered_AnalysisStatus_name, Discovery_Discovered_AnalysisStatus_value) - proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.BuildSignature_KeyType", BuildSignature_KeyType_name, BuildSignature_KeyType_value) - proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.PgpSignedAttestation_ContentType", PgpSignedAttestation_ContentType_name, PgpSignedAttestation_ContentType_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/devtools/containeranalysis/v1alpha1/image_basis.pb.go b/googleapis/devtools/containeranalysis/v1alpha1/image_basis.pb.go index 830e3a5e937373446f75efe491a708d9c99ebdc2..07f90f3ff3f4686bf9d9d44d048021d5ed2716e4 100644 --- a/googleapis/devtools/containeranalysis/v1alpha1/image_basis.pb.go +++ b/googleapis/devtools/containeranalysis/v1alpha1/image_basis.pb.go @@ -391,12 +391,12 @@ func (m *DockerImage_Derived) GetBaseResourceUrl() string { } func init() { + proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.DockerImage_Layer_Directive", DockerImage_Layer_Directive_name, DockerImage_Layer_Directive_value) proto.RegisterType((*DockerImage)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage") proto.RegisterType((*DockerImage_Layer)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Layer") proto.RegisterType((*DockerImage_Fingerprint)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Fingerprint") proto.RegisterType((*DockerImage_Basis)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Basis") proto.RegisterType((*DockerImage_Derived)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Derived") - proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.DockerImage_Layer_Directive", DockerImage_Layer_Directive_name, DockerImage_Layer_Directive_value) } func init() { diff --git a/googleapis/devtools/containeranalysis/v1alpha1/package_vulnerability.pb.go b/googleapis/devtools/containeranalysis/v1alpha1/package_vulnerability.pb.go index eee1f16e61d4b888fb42870a3deef37317b22f98..73233ac1973e96cf137e164a5ea29be1b4a4effc 100644 --- a/googleapis/devtools/containeranalysis/v1alpha1/package_vulnerability.pb.go +++ b/googleapis/devtools/containeranalysis/v1alpha1/package_vulnerability.pb.go @@ -556,14 +556,14 @@ func (m *VulnerabilityType_VulnerabilityLocation) GetVersion() *VulnerabilityTyp } func init() { + proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity", VulnerabilityType_Severity_name, VulnerabilityType_Severity_value) + proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Version_VersionKind", VulnerabilityType_Version_VersionKind_name, VulnerabilityType_Version_VersionKind_value) proto.RegisterType((*VulnerabilityType)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType") proto.RegisterType((*VulnerabilityType_Version)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.Version") proto.RegisterType((*VulnerabilityType_Detail)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.Detail") proto.RegisterType((*VulnerabilityType_VulnerabilityDetails)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.VulnerabilityDetails") proto.RegisterType((*VulnerabilityType_PackageIssue)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.PackageIssue") proto.RegisterType((*VulnerabilityType_VulnerabilityLocation)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.VulnerabilityLocation") - proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity", VulnerabilityType_Severity_name, VulnerabilityType_Severity_value) - proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Version_VersionKind", VulnerabilityType_Version_VersionKind_name, VulnerabilityType_Version_VersionKind_value) } func init() { diff --git a/googleapis/devtools/containeranalysis/v1alpha1/provenance.pb.go b/googleapis/devtools/containeranalysis/v1alpha1/provenance.pb.go index aab61cbb51088316465a7aa2f322a7616a0727dc..f5a6e674a135cc923e878358321944754f215656 100644 --- a/googleapis/devtools/containeranalysis/v1alpha1/provenance.pb.go +++ b/googleapis/devtools/containeranalysis/v1alpha1/provenance.pb.go @@ -914,6 +914,7 @@ func (m *Artifact) GetNames() []string { } func init() { + proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.Hash_HashType", Hash_HashType_name, Hash_HashType_value) proto.RegisterType((*BuildProvenance)(nil), "google.devtools.containeranalysis.v1alpha1.BuildProvenance") proto.RegisterMapType((map[string]string)(nil), "google.devtools.containeranalysis.v1alpha1.BuildProvenance.BuildOptionsEntry") proto.RegisterType((*Source)(nil), "google.devtools.containeranalysis.v1alpha1.Source") @@ -924,7 +925,6 @@ func init() { proto.RegisterType((*RepoSource)(nil), "google.devtools.containeranalysis.v1alpha1.RepoSource") proto.RegisterType((*Command)(nil), "google.devtools.containeranalysis.v1alpha1.Command") proto.RegisterType((*Artifact)(nil), "google.devtools.containeranalysis.v1alpha1.Artifact") - proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.Hash_HashType", Hash_HashType_name, Hash_HashType_value) } func init() { diff --git a/googleapis/devtools/containeranalysis/v1alpha1/source_context.pb.go b/googleapis/devtools/containeranalysis/v1alpha1/source_context.pb.go index 5c60026ee8b5d1ecc4c9b170727aeca0fe57aec5..d18f60022877df8cb94cc3d20cf7e3104674099c 100644 --- a/googleapis/devtools/containeranalysis/v1alpha1/source_context.pb.go +++ b/googleapis/devtools/containeranalysis/v1alpha1/source_context.pb.go @@ -872,6 +872,7 @@ func (m *ProjectRepoId) GetRepoName() string { } func init() { + proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.AliasContext_Kind", AliasContext_Kind_name, AliasContext_Kind_value) proto.RegisterType((*SourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.SourceContext") proto.RegisterMapType((map[string]string)(nil), "google.devtools.containeranalysis.v1alpha1.SourceContext.LabelsEntry") proto.RegisterType((*AliasContext)(nil), "google.devtools.containeranalysis.v1alpha1.AliasContext") @@ -880,7 +881,6 @@ func init() { proto.RegisterType((*GitSourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.GitSourceContext") proto.RegisterType((*RepoId)(nil), "google.devtools.containeranalysis.v1alpha1.RepoId") proto.RegisterType((*ProjectRepoId)(nil), "google.devtools.containeranalysis.v1alpha1.ProjectRepoId") - proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.AliasContext_Kind", AliasContext_Kind_name, AliasContext_Kind_value) } func init() { diff --git a/googleapis/devtools/containeranalysis/v1beta1/attestation/attestation.pb.go b/googleapis/devtools/containeranalysis/v1beta1/attestation/attestation.pb.go index d36a9d96bc5b59dcca2a767516df64641181b5c0..187ae73072c6ac4dcef7d9c7a0cb985844529c89 100644 --- a/googleapis/devtools/containeranalysis/v1beta1/attestation/attestation.pb.go +++ b/googleapis/devtools/containeranalysis/v1beta1/attestation/attestation.pb.go @@ -463,12 +463,12 @@ func _Attestation_OneofSizer(msg proto.Message) (n int) { } func init() { + proto.RegisterEnum("grafeas.v1beta1.attestation.PgpSignedAttestation_ContentType", PgpSignedAttestation_ContentType_name, PgpSignedAttestation_ContentType_value) proto.RegisterType((*PgpSignedAttestation)(nil), "grafeas.v1beta1.attestation.PgpSignedAttestation") proto.RegisterType((*Authority)(nil), "grafeas.v1beta1.attestation.Authority") proto.RegisterType((*Authority_Hint)(nil), "grafeas.v1beta1.attestation.Authority.Hint") proto.RegisterType((*Details)(nil), "grafeas.v1beta1.attestation.Details") proto.RegisterType((*Attestation)(nil), "grafeas.v1beta1.attestation.Attestation") - proto.RegisterEnum("grafeas.v1beta1.attestation.PgpSignedAttestation_ContentType", PgpSignedAttestation_ContentType_name, PgpSignedAttestation_ContentType_value) } func init() { diff --git a/googleapis/devtools/containeranalysis/v1beta1/build/build.pb.go b/googleapis/devtools/containeranalysis/v1beta1/build/build.pb.go index 0e18250cacb6fadd5dba36a9429737368dcc81c7..d81f595c8a0cb4f159839db4f9dbf7c8ad7dd874 100644 --- a/googleapis/devtools/containeranalysis/v1beta1/build/build.pb.go +++ b/googleapis/devtools/containeranalysis/v1beta1/build/build.pb.go @@ -251,10 +251,10 @@ func (m *Details) GetProvenanceBytes() string { } func init() { + proto.RegisterEnum("grafeas.v1beta1.build.BuildSignature_KeyType", BuildSignature_KeyType_name, BuildSignature_KeyType_value) proto.RegisterType((*Build)(nil), "grafeas.v1beta1.build.Build") proto.RegisterType((*BuildSignature)(nil), "grafeas.v1beta1.build.BuildSignature") proto.RegisterType((*Details)(nil), "grafeas.v1beta1.build.Details") - proto.RegisterEnum("grafeas.v1beta1.build.BuildSignature_KeyType", BuildSignature_KeyType_name, BuildSignature_KeyType_value) } func init() { diff --git a/googleapis/devtools/containeranalysis/v1beta1/common/common.pb.go b/googleapis/devtools/containeranalysis/v1beta1/common/common.pb.go index 38e29b0accce9d03cc3bd404a52c7530651c7f5b..191fdf0346ddebbdbed3c574b457fb1ccec7d71b 100644 --- a/googleapis/devtools/containeranalysis/v1beta1/common/common.pb.go +++ b/googleapis/devtools/containeranalysis/v1beta1/common/common.pb.go @@ -123,8 +123,8 @@ func (m *RelatedUrl) GetLabel() string { } func init() { - proto.RegisterType((*RelatedUrl)(nil), "grafeas.v1beta1.RelatedUrl") proto.RegisterEnum("grafeas.v1beta1.NoteKind", NoteKind_name, NoteKind_value) + proto.RegisterType((*RelatedUrl)(nil), "grafeas.v1beta1.RelatedUrl") } func init() { diff --git a/googleapis/devtools/containeranalysis/v1beta1/deployment/deployment.pb.go b/googleapis/devtools/containeranalysis/v1beta1/deployment/deployment.pb.go index fe0aa10beeb4a455abc88c5258e6ae1bfa9e3b98..12bbf98d0e3f8960e9dbee4f4bbc97ad49bbfceb 100644 --- a/googleapis/devtools/containeranalysis/v1beta1/deployment/deployment.pb.go +++ b/googleapis/devtools/containeranalysis/v1beta1/deployment/deployment.pb.go @@ -236,10 +236,10 @@ func (m *Deployment) GetPlatform() Deployment_Platform { } func init() { + proto.RegisterEnum("grafeas.v1beta1.deployment.Deployment_Platform", Deployment_Platform_name, Deployment_Platform_value) proto.RegisterType((*Deployable)(nil), "grafeas.v1beta1.deployment.Deployable") proto.RegisterType((*Details)(nil), "grafeas.v1beta1.deployment.Details") proto.RegisterType((*Deployment)(nil), "grafeas.v1beta1.deployment.Deployment") - proto.RegisterEnum("grafeas.v1beta1.deployment.Deployment_Platform", Deployment_Platform_name, Deployment_Platform_value) } func init() { diff --git a/googleapis/devtools/containeranalysis/v1beta1/discovery/discovery.pb.go b/googleapis/devtools/containeranalysis/v1beta1/discovery/discovery.pb.go index 4902dd4a193f40630a1638f64f6d59e0760c9410..7683f56625a905e0860d3a255c0014cda2e04c62 100644 --- a/googleapis/devtools/containeranalysis/v1beta1/discovery/discovery.pb.go +++ b/googleapis/devtools/containeranalysis/v1beta1/discovery/discovery.pb.go @@ -256,11 +256,11 @@ func (m *Discovered) GetAnalysisStatusError() *status.Status { } func init() { + proto.RegisterEnum("grafeas.v1beta1.discovery.Discovered_ContinuousAnalysis", Discovered_ContinuousAnalysis_name, Discovered_ContinuousAnalysis_value) + proto.RegisterEnum("grafeas.v1beta1.discovery.Discovered_AnalysisStatus", Discovered_AnalysisStatus_name, Discovered_AnalysisStatus_value) proto.RegisterType((*Discovery)(nil), "grafeas.v1beta1.discovery.Discovery") proto.RegisterType((*Details)(nil), "grafeas.v1beta1.discovery.Details") proto.RegisterType((*Discovered)(nil), "grafeas.v1beta1.discovery.Discovered") - proto.RegisterEnum("grafeas.v1beta1.discovery.Discovered_ContinuousAnalysis", Discovered_ContinuousAnalysis_name, Discovered_ContinuousAnalysis_value) - proto.RegisterEnum("grafeas.v1beta1.discovery.Discovered_AnalysisStatus", Discovered_AnalysisStatus_name, Discovered_AnalysisStatus_value) } func init() { diff --git a/googleapis/devtools/containeranalysis/v1beta1/image/image.pb.go b/googleapis/devtools/containeranalysis/v1beta1/image/image.pb.go index 280793eaf2edd99663823c5a57cbef8b474a0058..61b1f1745eff654a63b3e867206c3447562de379 100644 --- a/googleapis/devtools/containeranalysis/v1beta1/image/image.pb.go +++ b/googleapis/devtools/containeranalysis/v1beta1/image/image.pb.go @@ -395,12 +395,12 @@ func (m *Derived) GetBaseResourceUrl() string { } func init() { + proto.RegisterEnum("grafeas.v1beta1.image.Layer_Directive", Layer_Directive_name, Layer_Directive_value) proto.RegisterType((*Layer)(nil), "grafeas.v1beta1.image.Layer") proto.RegisterType((*Fingerprint)(nil), "grafeas.v1beta1.image.Fingerprint") proto.RegisterType((*Basis)(nil), "grafeas.v1beta1.image.Basis") proto.RegisterType((*Details)(nil), "grafeas.v1beta1.image.Details") proto.RegisterType((*Derived)(nil), "grafeas.v1beta1.image.Derived") - proto.RegisterEnum("grafeas.v1beta1.image.Layer_Directive", Layer_Directive_name, Layer_Directive_value) } func init() { diff --git a/googleapis/devtools/containeranalysis/v1beta1/package/package.pb.go b/googleapis/devtools/containeranalysis/v1beta1/package/package.pb.go index 1575315f697ce270cf5e58f39d2f022d72390e97..f3ef223349709c50a20cebc99bb1f6138c16be61 100644 --- a/googleapis/devtools/containeranalysis/v1beta1/package/package.pb.go +++ b/googleapis/devtools/containeranalysis/v1beta1/package/package.pb.go @@ -456,14 +456,14 @@ func (m *Version) GetKind() Version_VersionKind { } func init() { + proto.RegisterEnum("grafeas.v1beta1.package.Architecture", Architecture_name, Architecture_value) + proto.RegisterEnum("grafeas.v1beta1.package.Version_VersionKind", Version_VersionKind_name, Version_VersionKind_value) proto.RegisterType((*Distribution)(nil), "grafeas.v1beta1.package.Distribution") proto.RegisterType((*Location)(nil), "grafeas.v1beta1.package.Location") proto.RegisterType((*Package)(nil), "grafeas.v1beta1.package.Package") proto.RegisterType((*Details)(nil), "grafeas.v1beta1.package.Details") proto.RegisterType((*Installation)(nil), "grafeas.v1beta1.package.Installation") proto.RegisterType((*Version)(nil), "grafeas.v1beta1.package.Version") - proto.RegisterEnum("grafeas.v1beta1.package.Architecture", Architecture_name, Architecture_value) - proto.RegisterEnum("grafeas.v1beta1.package.Version_VersionKind", Version_VersionKind_name, Version_VersionKind_value) } func init() { diff --git a/googleapis/devtools/containeranalysis/v1beta1/provenance/provenance.pb.go b/googleapis/devtools/containeranalysis/v1beta1/provenance/provenance.pb.go index 096a8984531b5ea254f51b65dd37db23a3fa7d92..d4692371ddce10f6a191ea7fd29564e8d9ced3c1 100644 --- a/googleapis/devtools/containeranalysis/v1beta1/provenance/provenance.pb.go +++ b/googleapis/devtools/containeranalysis/v1beta1/provenance/provenance.pb.go @@ -529,6 +529,7 @@ func (m *Artifact) GetNames() []string { } func init() { + proto.RegisterEnum("grafeas.v1beta1.provenance.Hash_HashType", Hash_HashType_name, Hash_HashType_value) proto.RegisterType((*BuildProvenance)(nil), "grafeas.v1beta1.provenance.BuildProvenance") proto.RegisterMapType((map[string]string)(nil), "grafeas.v1beta1.provenance.BuildProvenance.BuildOptionsEntry") proto.RegisterType((*Source)(nil), "grafeas.v1beta1.provenance.Source") @@ -537,7 +538,6 @@ func init() { proto.RegisterType((*Hash)(nil), "grafeas.v1beta1.provenance.Hash") proto.RegisterType((*Command)(nil), "grafeas.v1beta1.provenance.Command") proto.RegisterType((*Artifact)(nil), "grafeas.v1beta1.provenance.Artifact") - proto.RegisterEnum("grafeas.v1beta1.provenance.Hash_HashType", Hash_HashType_name, Hash_HashType_value) } func init() { diff --git a/googleapis/devtools/containeranalysis/v1beta1/source/source.pb.go b/googleapis/devtools/containeranalysis/v1beta1/source/source.pb.go index 5d3bb78e9ae0bda0199ad47fda424c8f9fd4d73d..997359117fb065f8cbda2a41984aaaa27550d4eb 100644 --- a/googleapis/devtools/containeranalysis/v1beta1/source/source.pb.go +++ b/googleapis/devtools/containeranalysis/v1beta1/source/source.pb.go @@ -870,6 +870,7 @@ func (m *ProjectRepoId) GetRepoName() string { } func init() { + proto.RegisterEnum("grafeas.v1beta1.source.AliasContext_Kind", AliasContext_Kind_name, AliasContext_Kind_value) proto.RegisterType((*SourceContext)(nil), "grafeas.v1beta1.source.SourceContext") proto.RegisterMapType((map[string]string)(nil), "grafeas.v1beta1.source.SourceContext.LabelsEntry") proto.RegisterType((*AliasContext)(nil), "grafeas.v1beta1.source.AliasContext") @@ -878,7 +879,6 @@ func init() { proto.RegisterType((*GitSourceContext)(nil), "grafeas.v1beta1.source.GitSourceContext") proto.RegisterType((*RepoId)(nil), "grafeas.v1beta1.source.RepoId") proto.RegisterType((*ProjectRepoId)(nil), "grafeas.v1beta1.source.ProjectRepoId") - proto.RegisterEnum("grafeas.v1beta1.source.AliasContext_Kind", AliasContext_Kind_name, AliasContext_Kind_value) } func init() { diff --git a/googleapis/devtools/containeranalysis/v1beta1/vulnerability/vulnerability.pb.go b/googleapis/devtools/containeranalysis/v1beta1/vulnerability/vulnerability.pb.go index 2cf5368482c317e1be84f3825df26eb5c89a5219..9dc214a9ba617a14678034f449a96959b92a512a 100644 --- a/googleapis/devtools/containeranalysis/v1beta1/vulnerability/vulnerability.pb.go +++ b/googleapis/devtools/containeranalysis/v1beta1/vulnerability/vulnerability.pb.go @@ -466,12 +466,12 @@ func (m *VulnerabilityLocation) GetVersion() *_package.Version { } func init() { + proto.RegisterEnum("grafeas.v1beta1.vulnerability.Severity", Severity_name, Severity_value) proto.RegisterType((*Vulnerability)(nil), "grafeas.v1beta1.vulnerability.Vulnerability") proto.RegisterType((*Vulnerability_Detail)(nil), "grafeas.v1beta1.vulnerability.Vulnerability.Detail") proto.RegisterType((*Details)(nil), "grafeas.v1beta1.vulnerability.Details") proto.RegisterType((*PackageIssue)(nil), "grafeas.v1beta1.vulnerability.PackageIssue") proto.RegisterType((*VulnerabilityLocation)(nil), "grafeas.v1beta1.vulnerability.VulnerabilityLocation") - proto.RegisterEnum("grafeas.v1beta1.vulnerability.Severity", Severity_name, Severity_value) } func init() { diff --git a/googleapis/devtools/remoteexecution/v1test/remote_execution.pb.go b/googleapis/devtools/remoteexecution/v1test/remote_execution.pb.go index 2724cb88b070566828cae190aae8d4b05aed0779..12b05a8201f2fbdfe9b2a8e4a2d9fca099dad99a 100644 --- a/googleapis/devtools/remoteexecution/v1test/remote_execution.pb.go +++ b/googleapis/devtools/remoteexecution/v1test/remote_execution.pb.go @@ -2136,6 +2136,7 @@ func (m *RequestMetadata) GetCorrelatedInvocationsId() string { } func init() { + proto.RegisterEnum("google.devtools.remoteexecution.v1test.ExecuteOperationMetadata_Stage", ExecuteOperationMetadata_Stage_name, ExecuteOperationMetadata_Stage_value) proto.RegisterType((*Action)(nil), "google.devtools.remoteexecution.v1test.Action") proto.RegisterType((*Command)(nil), "google.devtools.remoteexecution.v1test.Command") proto.RegisterType((*Command_EnvironmentVariable)(nil), "google.devtools.remoteexecution.v1test.Command.EnvironmentVariable") @@ -2166,7 +2167,6 @@ func init() { proto.RegisterType((*GetTreeResponse)(nil), "google.devtools.remoteexecution.v1test.GetTreeResponse") proto.RegisterType((*ToolDetails)(nil), "google.devtools.remoteexecution.v1test.ToolDetails") proto.RegisterType((*RequestMetadata)(nil), "google.devtools.remoteexecution.v1test.RequestMetadata") - proto.RegisterEnum("google.devtools.remoteexecution.v1test.ExecuteOperationMetadata_Stage", ExecuteOperationMetadata_Stage_name, ExecuteOperationMetadata_Stage_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/devtools/remoteworkers/v1test2/bots.pb.go b/googleapis/devtools/remoteworkers/v1test2/bots.pb.go index 81a7fdcf2e8093241a38dc6b832d6733c1af1828..745b8eb31a307f9905df18ea30512b182ab1357a 100644 --- a/googleapis/devtools/remoteworkers/v1test2/bots.pb.go +++ b/googleapis/devtools/remoteworkers/v1test2/bots.pb.go @@ -711,16 +711,16 @@ func (m *PostBotEventTempRequest) GetMsg() string { } func init() { + proto.RegisterEnum("google.devtools.remoteworkers.v1test2.BotStatus", BotStatus_name, BotStatus_value) + proto.RegisterEnum("google.devtools.remoteworkers.v1test2.LeaseState", LeaseState_name, LeaseState_value) + proto.RegisterEnum("google.devtools.remoteworkers.v1test2.AdminTemp_Command", AdminTemp_Command_name, AdminTemp_Command_value) + proto.RegisterEnum("google.devtools.remoteworkers.v1test2.PostBotEventTempRequest_Type", PostBotEventTempRequest_Type_name, PostBotEventTempRequest_Type_value) proto.RegisterType((*BotSession)(nil), "google.devtools.remoteworkers.v1test2.BotSession") proto.RegisterType((*Lease)(nil), "google.devtools.remoteworkers.v1test2.Lease") proto.RegisterType((*AdminTemp)(nil), "google.devtools.remoteworkers.v1test2.AdminTemp") proto.RegisterType((*CreateBotSessionRequest)(nil), "google.devtools.remoteworkers.v1test2.CreateBotSessionRequest") proto.RegisterType((*UpdateBotSessionRequest)(nil), "google.devtools.remoteworkers.v1test2.UpdateBotSessionRequest") proto.RegisterType((*PostBotEventTempRequest)(nil), "google.devtools.remoteworkers.v1test2.PostBotEventTempRequest") - proto.RegisterEnum("google.devtools.remoteworkers.v1test2.BotStatus", BotStatus_name, BotStatus_value) - proto.RegisterEnum("google.devtools.remoteworkers.v1test2.LeaseState", LeaseState_name, LeaseState_value) - proto.RegisterEnum("google.devtools.remoteworkers.v1test2.AdminTemp_Command", AdminTemp_Command_name, AdminTemp_Command_value) - proto.RegisterEnum("google.devtools.remoteworkers.v1test2.PostBotEventTempRequest_Type", PostBotEventTempRequest_Type_name, PostBotEventTempRequest_Type_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/devtools/resultstore/v2/action.pb.go b/googleapis/devtools/resultstore/v2/action.pb.go index 217c8c5a8218a3602df947d1dd389400d4bb0a98..69cd52402a415aee49488feda597f3f45344ec7f 100644 --- a/googleapis/devtools/resultstore/v2/action.pb.go +++ b/googleapis/devtools/resultstore/v2/action.pb.go @@ -1340,6 +1340,9 @@ func (m *FileProcessingError) GetMessage() string { } func init() { + proto.RegisterEnum("google.devtools.resultstore.v2.ExecutionStrategy", ExecutionStrategy_name, ExecutionStrategy_value) + proto.RegisterEnum("google.devtools.resultstore.v2.TestCaching", TestCaching_name, TestCaching_value) + proto.RegisterEnum("google.devtools.resultstore.v2.FileProcessingErrorType", FileProcessingErrorType_name, FileProcessingErrorType_value) proto.RegisterType((*Action)(nil), "google.devtools.resultstore.v2.Action") proto.RegisterType((*Action_Id)(nil), "google.devtools.resultstore.v2.Action.Id") proto.RegisterType((*BuildAction)(nil), "google.devtools.resultstore.v2.BuildAction") @@ -1353,9 +1356,6 @@ func init() { proto.RegisterType((*TestWarning)(nil), "google.devtools.resultstore.v2.TestWarning") proto.RegisterType((*FileProcessingErrors)(nil), "google.devtools.resultstore.v2.FileProcessingErrors") proto.RegisterType((*FileProcessingError)(nil), "google.devtools.resultstore.v2.FileProcessingError") - proto.RegisterEnum("google.devtools.resultstore.v2.ExecutionStrategy", ExecutionStrategy_name, ExecutionStrategy_value) - proto.RegisterEnum("google.devtools.resultstore.v2.TestCaching", TestCaching_name, TestCaching_value) - proto.RegisterEnum("google.devtools.resultstore.v2.FileProcessingErrorType", FileProcessingErrorType_name, FileProcessingErrorType_value) } func init() { diff --git a/googleapis/devtools/resultstore/v2/common.pb.go b/googleapis/devtools/resultstore/v2/common.pb.go index 016f364a2f0407773e71a2ac87a2bac70709423b..26e3a2a70d78209add1b30d942d9d1c790d39075 100644 --- a/googleapis/devtools/resultstore/v2/common.pb.go +++ b/googleapis/devtools/resultstore/v2/common.pb.go @@ -541,12 +541,12 @@ func _Dependency_OneofSizer(msg proto.Message) (n int) { } func init() { + proto.RegisterEnum("google.devtools.resultstore.v2.Language", Language_name, Language_value) + proto.RegisterEnum("google.devtools.resultstore.v2.Status", Status_name, Status_value) proto.RegisterType((*StatusAttributes)(nil), "google.devtools.resultstore.v2.StatusAttributes") proto.RegisterType((*Property)(nil), "google.devtools.resultstore.v2.Property") proto.RegisterType((*Timing)(nil), "google.devtools.resultstore.v2.Timing") proto.RegisterType((*Dependency)(nil), "google.devtools.resultstore.v2.Dependency") - proto.RegisterEnum("google.devtools.resultstore.v2.Language", Language_name, Language_value) - proto.RegisterEnum("google.devtools.resultstore.v2.Status", Status_name, Status_value) } func init() { diff --git a/googleapis/devtools/resultstore/v2/target.pb.go b/googleapis/devtools/resultstore/v2/target.pb.go index 89652b8d502437d9ccd9638f0831de85c3626aec..ee382c2c46db4b8dda3e5cfc1896b9ddbfb95d98 100644 --- a/googleapis/devtools/resultstore/v2/target.pb.go +++ b/googleapis/devtools/resultstore/v2/target.pb.go @@ -387,12 +387,12 @@ func (m *TestAttributes) GetSize() TestSize { } func init() { + proto.RegisterEnum("google.devtools.resultstore.v2.TargetType", TargetType_name, TargetType_value) + proto.RegisterEnum("google.devtools.resultstore.v2.TestSize", TestSize_name, TestSize_value) proto.RegisterType((*Target)(nil), "google.devtools.resultstore.v2.Target") proto.RegisterType((*Target_Id)(nil), "google.devtools.resultstore.v2.Target.Id") proto.RegisterType((*TargetAttributes)(nil), "google.devtools.resultstore.v2.TargetAttributes") proto.RegisterType((*TestAttributes)(nil), "google.devtools.resultstore.v2.TestAttributes") - proto.RegisterEnum("google.devtools.resultstore.v2.TargetType", TargetType_name, TargetType_value) - proto.RegisterEnum("google.devtools.resultstore.v2.TestSize", TestSize_name, TestSize_value) } func init() { diff --git a/googleapis/devtools/resultstore/v2/test_suite.pb.go b/googleapis/devtools/resultstore/v2/test_suite.pb.go index c939c206a960f78ec4d6f08fa9ff8c18eda7bc25..b69f1c7fe5c4000eab97f5e475b68882941d4c75 100644 --- a/googleapis/devtools/resultstore/v2/test_suite.pb.go +++ b/googleapis/devtools/resultstore/v2/test_suite.pb.go @@ -583,12 +583,12 @@ func (m *TestError) GetStackTrace() string { } func init() { + proto.RegisterEnum("google.devtools.resultstore.v2.TestCase_Result", TestCase_Result_name, TestCase_Result_value) proto.RegisterType((*TestSuite)(nil), "google.devtools.resultstore.v2.TestSuite") proto.RegisterType((*Test)(nil), "google.devtools.resultstore.v2.Test") proto.RegisterType((*TestCase)(nil), "google.devtools.resultstore.v2.TestCase") proto.RegisterType((*TestFailure)(nil), "google.devtools.resultstore.v2.TestFailure") proto.RegisterType((*TestError)(nil), "google.devtools.resultstore.v2.TestError") - proto.RegisterEnum("google.devtools.resultstore.v2.TestCase_Result", TestCase_Result_name, TestCase_Result_value) } func init() { diff --git a/googleapis/devtools/source/v1/source_context.pb.go b/googleapis/devtools/source/v1/source_context.pb.go index 3e42cfb607ddcc58ce12b7899ffb945bc4335d7e..6fe3814bd850497a4f08dd7fc461698427d5714f 100644 --- a/googleapis/devtools/source/v1/source_context.pb.go +++ b/googleapis/devtools/source/v1/source_context.pb.go @@ -1110,6 +1110,7 @@ func (m *CloudWorkspaceId) GetName() string { } func init() { + proto.RegisterEnum("google.devtools.source.v1.AliasContext_Kind", AliasContext_Kind_name, AliasContext_Kind_value) proto.RegisterType((*SourceContext)(nil), "google.devtools.source.v1.SourceContext") proto.RegisterType((*ExtendedSourceContext)(nil), "google.devtools.source.v1.ExtendedSourceContext") proto.RegisterMapType((map[string]string)(nil), "google.devtools.source.v1.ExtendedSourceContext.LabelsEntry") @@ -1121,7 +1122,6 @@ func init() { proto.RegisterType((*RepoId)(nil), "google.devtools.source.v1.RepoId") proto.RegisterType((*ProjectRepoId)(nil), "google.devtools.source.v1.ProjectRepoId") proto.RegisterType((*CloudWorkspaceId)(nil), "google.devtools.source.v1.CloudWorkspaceId") - proto.RegisterEnum("google.devtools.source.v1.AliasContext_Kind", AliasContext_Kind_name, AliasContext_Kind_value) } func init() { diff --git a/googleapis/firestore/admin/v1beta1/firestore_admin.pb.go b/googleapis/firestore/admin/v1beta1/firestore_admin.pb.go index 33340bc1414246b285d85dfaa76bb11907076263..87b71b7eafd5c05d442b94af61973b8db4f918cb 100644 --- a/googleapis/firestore/admin/v1beta1/firestore_admin.pb.go +++ b/googleapis/firestore/admin/v1beta1/firestore_admin.pb.go @@ -876,6 +876,8 @@ func (m *ImportDocumentsMetadata) GetInputUriPrefix() string { } func init() { + proto.RegisterEnum("google.firestore.admin.v1beta1.OperationState", OperationState_name, OperationState_value) + proto.RegisterEnum("google.firestore.admin.v1beta1.IndexOperationMetadata_OperationType", IndexOperationMetadata_OperationType_name, IndexOperationMetadata_OperationType_value) proto.RegisterType((*IndexOperationMetadata)(nil), "google.firestore.admin.v1beta1.IndexOperationMetadata") proto.RegisterType((*Progress)(nil), "google.firestore.admin.v1beta1.Progress") proto.RegisterType((*CreateIndexRequest)(nil), "google.firestore.admin.v1beta1.CreateIndexRequest") @@ -888,8 +890,6 @@ func init() { proto.RegisterType((*ExportDocumentsResponse)(nil), "google.firestore.admin.v1beta1.ExportDocumentsResponse") proto.RegisterType((*ExportDocumentsMetadata)(nil), "google.firestore.admin.v1beta1.ExportDocumentsMetadata") proto.RegisterType((*ImportDocumentsMetadata)(nil), "google.firestore.admin.v1beta1.ImportDocumentsMetadata") - proto.RegisterEnum("google.firestore.admin.v1beta1.OperationState", OperationState_name, OperationState_value) - proto.RegisterEnum("google.firestore.admin.v1beta1.IndexOperationMetadata_OperationType", IndexOperationMetadata_OperationType_name, IndexOperationMetadata_OperationType_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/firestore/admin/v1beta1/index.pb.go b/googleapis/firestore/admin/v1beta1/index.pb.go index 995d7ae042c48623980042285e3969f2c952f5b2..a041ff68ac834e6bde131bf157db27b07b3396fa 100644 --- a/googleapis/firestore/admin/v1beta1/index.pb.go +++ b/googleapis/firestore/admin/v1beta1/index.pb.go @@ -232,10 +232,10 @@ func (m *Index) GetState() Index_State { } func init() { - proto.RegisterType((*IndexField)(nil), "google.firestore.admin.v1beta1.IndexField") - proto.RegisterType((*Index)(nil), "google.firestore.admin.v1beta1.Index") proto.RegisterEnum("google.firestore.admin.v1beta1.IndexField_Mode", IndexField_Mode_name, IndexField_Mode_value) proto.RegisterEnum("google.firestore.admin.v1beta1.Index_State", Index_State_name, Index_State_value) + proto.RegisterType((*IndexField)(nil), "google.firestore.admin.v1beta1.IndexField") + proto.RegisterType((*Index)(nil), "google.firestore.admin.v1beta1.Index") } func init() { diff --git a/googleapis/firestore/admin/v1beta2/index.pb.go b/googleapis/firestore/admin/v1beta2/index.pb.go index 210a0aafaea4bd4a78c3406585fe5fc482adad86..646153732e0a56e6d01007f70030329a003d925d 100644 --- a/googleapis/firestore/admin/v1beta2/index.pb.go +++ b/googleapis/firestore/admin/v1beta2/index.pb.go @@ -406,12 +406,12 @@ func _Index_IndexField_OneofSizer(msg proto.Message) (n int) { } func init() { - proto.RegisterType((*Index)(nil), "google.firestore.admin.v1beta2.Index") - proto.RegisterType((*Index_IndexField)(nil), "google.firestore.admin.v1beta2.Index.IndexField") proto.RegisterEnum("google.firestore.admin.v1beta2.Index_QueryScope", Index_QueryScope_name, Index_QueryScope_value) proto.RegisterEnum("google.firestore.admin.v1beta2.Index_State", Index_State_name, Index_State_value) proto.RegisterEnum("google.firestore.admin.v1beta2.Index_IndexField_Order", Index_IndexField_Order_name, Index_IndexField_Order_value) proto.RegisterEnum("google.firestore.admin.v1beta2.Index_IndexField_ArrayConfig", Index_IndexField_ArrayConfig_name, Index_IndexField_ArrayConfig_value) + proto.RegisterType((*Index)(nil), "google.firestore.admin.v1beta2.Index") + proto.RegisterType((*Index_IndexField)(nil), "google.firestore.admin.v1beta2.Index.IndexField") } func init() { diff --git a/googleapis/firestore/admin/v1beta2/operation.pb.go b/googleapis/firestore/admin/v1beta2/operation.pb.go index 2b2563476011c4e17a2425217b665199de43a4e2..59c1725179e9a13dabf61e6821700aa16169d321 100644 --- a/googleapis/firestore/admin/v1beta2/operation.pb.go +++ b/googleapis/firestore/admin/v1beta2/operation.pb.go @@ -312,11 +312,11 @@ func (m *Progress) GetCompletedWork() int64 { } func init() { + proto.RegisterEnum("google.firestore.admin.v1beta2.OperationState", OperationState_name, OperationState_value) + proto.RegisterEnum("google.firestore.admin.v1beta2.FieldOperationMetadata_IndexConfigDelta_ChangeType", FieldOperationMetadata_IndexConfigDelta_ChangeType_name, FieldOperationMetadata_IndexConfigDelta_ChangeType_value) proto.RegisterType((*FieldOperationMetadata)(nil), "google.firestore.admin.v1beta2.FieldOperationMetadata") proto.RegisterType((*FieldOperationMetadata_IndexConfigDelta)(nil), "google.firestore.admin.v1beta2.FieldOperationMetadata.IndexConfigDelta") proto.RegisterType((*Progress)(nil), "google.firestore.admin.v1beta2.Progress") - proto.RegisterEnum("google.firestore.admin.v1beta2.OperationState", OperationState_name, OperationState_value) - proto.RegisterEnum("google.firestore.admin.v1beta2.FieldOperationMetadata_IndexConfigDelta_ChangeType", FieldOperationMetadata_IndexConfigDelta_ChangeType_name, FieldOperationMetadata_IndexConfigDelta_ChangeType_value) } func init() { diff --git a/googleapis/firestore/v1beta1/firestore.pb.go b/googleapis/firestore/v1beta1/firestore.pb.go index 92e123e842dd56c1e5a2e00e9f7a1c5745ecff61..02d8f65ba83d547b3e97608af8031491dbd95a64 100644 --- a/googleapis/firestore/v1beta1/firestore.pb.go +++ b/googleapis/firestore/v1beta1/firestore.pb.go @@ -2955,6 +2955,7 @@ func (m *ListCollectionIdsResponse) GetNextPageToken() string { } func init() { + proto.RegisterEnum("google.firestore.v1beta1.TargetChange_TargetChangeType", TargetChange_TargetChangeType_name, TargetChange_TargetChangeType_value) proto.RegisterType((*GetDocumentRequest)(nil), "google.firestore.v1beta1.GetDocumentRequest") proto.RegisterType((*ListDocumentsRequest)(nil), "google.firestore.v1beta1.ListDocumentsRequest") proto.RegisterType((*ListDocumentsResponse)(nil), "google.firestore.v1beta1.ListDocumentsResponse") @@ -2982,7 +2983,6 @@ func init() { proto.RegisterType((*TargetChange)(nil), "google.firestore.v1beta1.TargetChange") proto.RegisterType((*ListCollectionIdsRequest)(nil), "google.firestore.v1beta1.ListCollectionIdsRequest") proto.RegisterType((*ListCollectionIdsResponse)(nil), "google.firestore.v1beta1.ListCollectionIdsResponse") - proto.RegisterEnum("google.firestore.v1beta1.TargetChange_TargetChangeType", TargetChange_TargetChangeType_name, TargetChange_TargetChangeType_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/firestore/v1beta1/query.pb.go b/googleapis/firestore/v1beta1/query.pb.go index 53e1b54acd7df0135b0f59d2bdad108bda7525d7..0c120d3e50c03cbba85abc3390f29e9dadeae586 100644 --- a/googleapis/firestore/v1beta1/query.pb.go +++ b/googleapis/firestore/v1beta1/query.pb.go @@ -949,6 +949,10 @@ func (m *Cursor) GetBefore() bool { } func init() { + proto.RegisterEnum("google.firestore.v1beta1.StructuredQuery_Direction", StructuredQuery_Direction_name, StructuredQuery_Direction_value) + proto.RegisterEnum("google.firestore.v1beta1.StructuredQuery_CompositeFilter_Operator", StructuredQuery_CompositeFilter_Operator_name, StructuredQuery_CompositeFilter_Operator_value) + proto.RegisterEnum("google.firestore.v1beta1.StructuredQuery_FieldFilter_Operator", StructuredQuery_FieldFilter_Operator_name, StructuredQuery_FieldFilter_Operator_value) + proto.RegisterEnum("google.firestore.v1beta1.StructuredQuery_UnaryFilter_Operator", StructuredQuery_UnaryFilter_Operator_name, StructuredQuery_UnaryFilter_Operator_value) proto.RegisterType((*StructuredQuery)(nil), "google.firestore.v1beta1.StructuredQuery") proto.RegisterType((*StructuredQuery_CollectionSelector)(nil), "google.firestore.v1beta1.StructuredQuery.CollectionSelector") proto.RegisterType((*StructuredQuery_Filter)(nil), "google.firestore.v1beta1.StructuredQuery.Filter") @@ -959,10 +963,6 @@ func init() { proto.RegisterType((*StructuredQuery_FieldReference)(nil), "google.firestore.v1beta1.StructuredQuery.FieldReference") proto.RegisterType((*StructuredQuery_Projection)(nil), "google.firestore.v1beta1.StructuredQuery.Projection") proto.RegisterType((*Cursor)(nil), "google.firestore.v1beta1.Cursor") - proto.RegisterEnum("google.firestore.v1beta1.StructuredQuery_Direction", StructuredQuery_Direction_name, StructuredQuery_Direction_value) - proto.RegisterEnum("google.firestore.v1beta1.StructuredQuery_CompositeFilter_Operator", StructuredQuery_CompositeFilter_Operator_name, StructuredQuery_CompositeFilter_Operator_value) - proto.RegisterEnum("google.firestore.v1beta1.StructuredQuery_FieldFilter_Operator", StructuredQuery_FieldFilter_Operator_name, StructuredQuery_FieldFilter_Operator_value) - proto.RegisterEnum("google.firestore.v1beta1.StructuredQuery_UnaryFilter_Operator", StructuredQuery_UnaryFilter_Operator_name, StructuredQuery_UnaryFilter_Operator_value) } func init() { diff --git a/googleapis/firestore/v1beta1/write.pb.go b/googleapis/firestore/v1beta1/write.pb.go index ed26a185412678b5428282ad50c30d60dd2c8d98..6bf07788102d65bf4b4d38dde7078290024bc8a7 100644 --- a/googleapis/firestore/v1beta1/write.pb.go +++ b/googleapis/firestore/v1beta1/write.pb.go @@ -811,6 +811,7 @@ func (m *ExistenceFilter) GetCount() int32 { } func init() { + proto.RegisterEnum("google.firestore.v1beta1.DocumentTransform_FieldTransform_ServerValue", DocumentTransform_FieldTransform_ServerValue_name, DocumentTransform_FieldTransform_ServerValue_value) proto.RegisterType((*Write)(nil), "google.firestore.v1beta1.Write") proto.RegisterType((*DocumentTransform)(nil), "google.firestore.v1beta1.DocumentTransform") proto.RegisterType((*DocumentTransform_FieldTransform)(nil), "google.firestore.v1beta1.DocumentTransform.FieldTransform") @@ -819,7 +820,6 @@ func init() { proto.RegisterType((*DocumentDelete)(nil), "google.firestore.v1beta1.DocumentDelete") proto.RegisterType((*DocumentRemove)(nil), "google.firestore.v1beta1.DocumentRemove") proto.RegisterType((*ExistenceFilter)(nil), "google.firestore.v1beta1.ExistenceFilter") - proto.RegisterEnum("google.firestore.v1beta1.DocumentTransform_FieldTransform_ServerValue", DocumentTransform_FieldTransform_ServerValue_name, DocumentTransform_FieldTransform_ServerValue_value) } func init() { diff --git a/googleapis/genomics/v1/annotations.pb.go b/googleapis/genomics/v1/annotations.pb.go index df660a7b3fd8caaae9d3556aba474137f94c9d5b..44704bdfc88a8f39f2556ec9d3d0cd5e10b97f48 100644 --- a/googleapis/genomics/v1/annotations.pb.go +++ b/googleapis/genomics/v1/annotations.pb.go @@ -1945,6 +1945,10 @@ func (m *SearchAnnotationsResponse) GetNextPageToken() string { } func init() { + proto.RegisterEnum("google.genomics.v1.AnnotationType", AnnotationType_name, AnnotationType_value) + proto.RegisterEnum("google.genomics.v1.VariantAnnotation_Type", VariantAnnotation_Type_name, VariantAnnotation_Type_value) + proto.RegisterEnum("google.genomics.v1.VariantAnnotation_Effect", VariantAnnotation_Effect_name, VariantAnnotation_Effect_value) + proto.RegisterEnum("google.genomics.v1.VariantAnnotation_ClinicalSignificance", VariantAnnotation_ClinicalSignificance_name, VariantAnnotation_ClinicalSignificance_value) proto.RegisterType((*AnnotationSet)(nil), "google.genomics.v1.AnnotationSet") proto.RegisterMapType((map[string]*_struct.ListValue)(nil), "google.genomics.v1.AnnotationSet.InfoEntry") proto.RegisterType((*Annotation)(nil), "google.genomics.v1.Annotation") @@ -1970,10 +1974,6 @@ func init() { proto.RegisterType((*DeleteAnnotationRequest)(nil), "google.genomics.v1.DeleteAnnotationRequest") proto.RegisterType((*SearchAnnotationsRequest)(nil), "google.genomics.v1.SearchAnnotationsRequest") proto.RegisterType((*SearchAnnotationsResponse)(nil), "google.genomics.v1.SearchAnnotationsResponse") - proto.RegisterEnum("google.genomics.v1.AnnotationType", AnnotationType_name, AnnotationType_value) - proto.RegisterEnum("google.genomics.v1.VariantAnnotation_Type", VariantAnnotation_Type_name, VariantAnnotation_Type_value) - proto.RegisterEnum("google.genomics.v1.VariantAnnotation_Effect", VariantAnnotation_Effect_name, VariantAnnotation_Effect_value) - proto.RegisterEnum("google.genomics.v1.VariantAnnotation_ClinicalSignificance", VariantAnnotation_ClinicalSignificance_name, VariantAnnotation_ClinicalSignificance_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/genomics/v1/cigar.pb.go b/googleapis/genomics/v1/cigar.pb.go index f77c6e77291132d525e35a56ef14557a9c06f5ca..93bc754a23f5782bbc435f60889e5f53f74ce37c 100644 --- a/googleapis/genomics/v1/cigar.pb.go +++ b/googleapis/genomics/v1/cigar.pb.go @@ -169,8 +169,8 @@ func (m *CigarUnit) GetReferenceSequence() string { } func init() { - proto.RegisterType((*CigarUnit)(nil), "google.genomics.v1.CigarUnit") proto.RegisterEnum("google.genomics.v1.CigarUnit_Operation", CigarUnit_Operation_name, CigarUnit_Operation_value) + proto.RegisterType((*CigarUnit)(nil), "google.genomics.v1.CigarUnit") } func init() { proto.RegisterFile("google/genomics/v1/cigar.proto", fileDescriptor_353bda9a6ec457b8) } diff --git a/googleapis/genomics/v1/reads.pb.go b/googleapis/genomics/v1/reads.pb.go index 631a3628d0133a63c7f4d36c98c2caffd7875be5..ace88afc791d8342a0ef5b17a3f7ff55f7ec0095 100644 --- a/googleapis/genomics/v1/reads.pb.go +++ b/googleapis/genomics/v1/reads.pb.go @@ -1082,6 +1082,7 @@ func (m *StreamReadsResponse) GetAlignments() []*Read { } func init() { + proto.RegisterEnum("google.genomics.v1.ImportReadGroupSetsRequest_PartitionStrategy", ImportReadGroupSetsRequest_PartitionStrategy_name, ImportReadGroupSetsRequest_PartitionStrategy_value) proto.RegisterType((*SearchReadGroupSetsRequest)(nil), "google.genomics.v1.SearchReadGroupSetsRequest") proto.RegisterType((*SearchReadGroupSetsResponse)(nil), "google.genomics.v1.SearchReadGroupSetsResponse") proto.RegisterType((*ImportReadGroupSetsRequest)(nil), "google.genomics.v1.ImportReadGroupSetsRequest") @@ -1097,7 +1098,6 @@ func init() { proto.RegisterType((*SearchReadsResponse)(nil), "google.genomics.v1.SearchReadsResponse") proto.RegisterType((*StreamReadsRequest)(nil), "google.genomics.v1.StreamReadsRequest") proto.RegisterType((*StreamReadsResponse)(nil), "google.genomics.v1.StreamReadsResponse") - proto.RegisterEnum("google.genomics.v1.ImportReadGroupSetsRequest_PartitionStrategy", ImportReadGroupSetsRequest_PartitionStrategy_name, ImportReadGroupSetsRequest_PartitionStrategy_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/genomics/v1/variants.pb.go b/googleapis/genomics/v1/variants.pb.go index fe0d459250ac0c2ca81ca5949cfacde98fc4684e..f2c29c766283a048b7133f1afe02af3b85af5927 100644 --- a/googleapis/genomics/v1/variants.pb.go +++ b/googleapis/genomics/v1/variants.pb.go @@ -2184,6 +2184,10 @@ func (m *StreamVariantsResponse) GetVariants() []*Variant { } func init() { + proto.RegisterEnum("google.genomics.v1.InfoMergeOperation", InfoMergeOperation_name, InfoMergeOperation_value) + proto.RegisterEnum("google.genomics.v1.VariantSetMetadata_Type", VariantSetMetadata_Type_name, VariantSetMetadata_Type_value) + proto.RegisterEnum("google.genomics.v1.ImportVariantsRequest_Format", ImportVariantsRequest_Format_name, ImportVariantsRequest_Format_value) + proto.RegisterEnum("google.genomics.v1.ExportVariantSetRequest_Format", ExportVariantSetRequest_Format_name, ExportVariantSetRequest_Format_value) proto.RegisterType((*VariantSetMetadata)(nil), "google.genomics.v1.VariantSetMetadata") proto.RegisterMapType((map[string]*_struct.ListValue)(nil), "google.genomics.v1.VariantSetMetadata.InfoEntry") proto.RegisterType((*VariantSet)(nil), "google.genomics.v1.VariantSet") @@ -2220,10 +2224,6 @@ func init() { proto.RegisterType((*GetCallSetRequest)(nil), "google.genomics.v1.GetCallSetRequest") proto.RegisterType((*StreamVariantsRequest)(nil), "google.genomics.v1.StreamVariantsRequest") proto.RegisterType((*StreamVariantsResponse)(nil), "google.genomics.v1.StreamVariantsResponse") - proto.RegisterEnum("google.genomics.v1.InfoMergeOperation", InfoMergeOperation_name, InfoMergeOperation_value) - proto.RegisterEnum("google.genomics.v1.VariantSetMetadata_Type", VariantSetMetadata_Type_name, VariantSetMetadata_Type_value) - proto.RegisterEnum("google.genomics.v1.ImportVariantsRequest_Format", ImportVariantsRequest_Format_name, ImportVariantsRequest_Format_value) - proto.RegisterEnum("google.genomics.v1.ExportVariantSetRequest_Format", ExportVariantSetRequest_Format_name, ExportVariantSetRequest_Format_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/genomics/v1alpha2/pipelines.pb.go b/googleapis/genomics/v1alpha2/pipelines.pb.go index 328a230d761901a0fb1452652c0a623e63ae8ea2..5be738f7ba3bcdeaef8fd5aaebff5fc499d2ea3f 100644 --- a/googleapis/genomics/v1alpha2/pipelines.pb.go +++ b/googleapis/genomics/v1alpha2/pipelines.pb.go @@ -1835,6 +1835,7 @@ func (m *DockerExecutor) GetCmd() string { } func init() { + proto.RegisterEnum("google.genomics.v1alpha2.PipelineResources_Disk_Type", PipelineResources_Disk_Type_name, PipelineResources_Disk_Type_value) proto.RegisterType((*ComputeEngine)(nil), "google.genomics.v1alpha2.ComputeEngine") proto.RegisterType((*RuntimeMetadata)(nil), "google.genomics.v1alpha2.RuntimeMetadata") proto.RegisterType((*Pipeline)(nil), "google.genomics.v1alpha2.Pipeline") @@ -1864,7 +1865,6 @@ func init() { proto.RegisterType((*PipelineParameter)(nil), "google.genomics.v1alpha2.PipelineParameter") proto.RegisterType((*PipelineParameter_LocalCopy)(nil), "google.genomics.v1alpha2.PipelineParameter.LocalCopy") proto.RegisterType((*DockerExecutor)(nil), "google.genomics.v1alpha2.DockerExecutor") - proto.RegisterEnum("google.genomics.v1alpha2.PipelineResources_Disk_Type", PipelineResources_Disk_Type_name, PipelineResources_Disk_Type_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/iam/admin/v1/iam.pb.go b/googleapis/iam/admin/v1/iam.pb.go index b4b2827882df0839736ac6d48302c56a47a119f4..88ced998fbd64ba2e6907c1941c9e90fd5d2dace 100644 --- a/googleapis/iam/admin/v1/iam.pb.go +++ b/googleapis/iam/admin/v1/iam.pb.go @@ -2123,6 +2123,14 @@ func (m *QueryTestablePermissionsResponse) GetNextPageToken() string { } func init() { + proto.RegisterEnum("google.iam.admin.v1.ServiceAccountKeyAlgorithm", ServiceAccountKeyAlgorithm_name, ServiceAccountKeyAlgorithm_value) + proto.RegisterEnum("google.iam.admin.v1.ServiceAccountPrivateKeyType", ServiceAccountPrivateKeyType_name, ServiceAccountPrivateKeyType_value) + proto.RegisterEnum("google.iam.admin.v1.ServiceAccountPublicKeyType", ServiceAccountPublicKeyType_name, ServiceAccountPublicKeyType_value) + proto.RegisterEnum("google.iam.admin.v1.RoleView", RoleView_name, RoleView_value) + proto.RegisterEnum("google.iam.admin.v1.ListServiceAccountKeysRequest_KeyType", ListServiceAccountKeysRequest_KeyType_name, ListServiceAccountKeysRequest_KeyType_value) + proto.RegisterEnum("google.iam.admin.v1.Role_RoleLaunchStage", Role_RoleLaunchStage_name, Role_RoleLaunchStage_value) + proto.RegisterEnum("google.iam.admin.v1.Permission_PermissionLaunchStage", Permission_PermissionLaunchStage_name, Permission_PermissionLaunchStage_value) + proto.RegisterEnum("google.iam.admin.v1.Permission_CustomRolesSupportLevel", Permission_CustomRolesSupportLevel_name, Permission_CustomRolesSupportLevel_value) proto.RegisterType((*ServiceAccount)(nil), "google.iam.admin.v1.ServiceAccount") proto.RegisterType((*CreateServiceAccountRequest)(nil), "google.iam.admin.v1.CreateServiceAccountRequest") proto.RegisterType((*ListServiceAccountsRequest)(nil), "google.iam.admin.v1.ListServiceAccountsRequest") @@ -2152,14 +2160,6 @@ func init() { proto.RegisterType((*Permission)(nil), "google.iam.admin.v1.Permission") proto.RegisterType((*QueryTestablePermissionsRequest)(nil), "google.iam.admin.v1.QueryTestablePermissionsRequest") proto.RegisterType((*QueryTestablePermissionsResponse)(nil), "google.iam.admin.v1.QueryTestablePermissionsResponse") - proto.RegisterEnum("google.iam.admin.v1.ServiceAccountKeyAlgorithm", ServiceAccountKeyAlgorithm_name, ServiceAccountKeyAlgorithm_value) - proto.RegisterEnum("google.iam.admin.v1.ServiceAccountPrivateKeyType", ServiceAccountPrivateKeyType_name, ServiceAccountPrivateKeyType_value) - proto.RegisterEnum("google.iam.admin.v1.ServiceAccountPublicKeyType", ServiceAccountPublicKeyType_name, ServiceAccountPublicKeyType_value) - proto.RegisterEnum("google.iam.admin.v1.RoleView", RoleView_name, RoleView_value) - proto.RegisterEnum("google.iam.admin.v1.ListServiceAccountKeysRequest_KeyType", ListServiceAccountKeysRequest_KeyType_name, ListServiceAccountKeysRequest_KeyType_value) - proto.RegisterEnum("google.iam.admin.v1.Role_RoleLaunchStage", Role_RoleLaunchStage_name, Role_RoleLaunchStage_value) - proto.RegisterEnum("google.iam.admin.v1.Permission_PermissionLaunchStage", Permission_PermissionLaunchStage_name, Permission_PermissionLaunchStage_value) - proto.RegisterEnum("google.iam.admin.v1.Permission_CustomRolesSupportLevel", Permission_CustomRolesSupportLevel_name, Permission_CustomRolesSupportLevel_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/iam/v1/policy.pb.go b/googleapis/iam/v1/policy.pb.go index 1e02f4f3a894fe3cc0378da1f0c6d2559a8cb993..5d966b067ca3c9af1a5319feda035eb5d34a334c 100644 --- a/googleapis/iam/v1/policy.pb.go +++ b/googleapis/iam/v1/policy.pb.go @@ -334,11 +334,11 @@ func (m *BindingDelta) GetMember() string { } func init() { + proto.RegisterEnum("google.iam.v1.BindingDelta_Action", BindingDelta_Action_name, BindingDelta_Action_value) proto.RegisterType((*Policy)(nil), "google.iam.v1.Policy") proto.RegisterType((*Binding)(nil), "google.iam.v1.Binding") proto.RegisterType((*PolicyDelta)(nil), "google.iam.v1.PolicyDelta") proto.RegisterType((*BindingDelta)(nil), "google.iam.v1.BindingDelta") - proto.RegisterEnum("google.iam.v1.BindingDelta_Action", BindingDelta_Action_name, BindingDelta_Action_value) } func init() { proto.RegisterFile("google/iam/v1/policy.proto", fileDescriptor_a3cd40b8a66b2a99) } diff --git a/googleapis/logging/v2/logging_config.pb.go b/googleapis/logging/v2/logging_config.pb.go index e7b79f016dab933ddc945ec5472607043eb5e3c9..24e92a433ba8e2a861cb566fd32e084f20711dfc 100644 --- a/googleapis/logging/v2/logging_config.pb.go +++ b/googleapis/logging/v2/logging_config.pb.go @@ -1049,6 +1049,7 @@ func (m *DeleteExclusionRequest) GetName() string { } func init() { + proto.RegisterEnum("google.logging.v2.LogSink_VersionFormat", LogSink_VersionFormat_name, LogSink_VersionFormat_value) proto.RegisterType((*LogSink)(nil), "google.logging.v2.LogSink") proto.RegisterType((*ListSinksRequest)(nil), "google.logging.v2.ListSinksRequest") proto.RegisterType((*ListSinksResponse)(nil), "google.logging.v2.ListSinksResponse") @@ -1063,7 +1064,6 @@ func init() { proto.RegisterType((*CreateExclusionRequest)(nil), "google.logging.v2.CreateExclusionRequest") proto.RegisterType((*UpdateExclusionRequest)(nil), "google.logging.v2.UpdateExclusionRequest") proto.RegisterType((*DeleteExclusionRequest)(nil), "google.logging.v2.DeleteExclusionRequest") - proto.RegisterEnum("google.logging.v2.LogSink_VersionFormat", LogSink_VersionFormat_name, LogSink_VersionFormat_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/logging/v2/logging_metrics.pb.go b/googleapis/logging/v2/logging_metrics.pb.go index c516b03c2499b2fb5a30346120c8b8648e9dce99..bfde92e406bcfd43948a0d70b9cc4f4abb20a671 100644 --- a/googleapis/logging/v2/logging_metrics.pb.go +++ b/googleapis/logging/v2/logging_metrics.pb.go @@ -559,6 +559,7 @@ func (m *DeleteLogMetricRequest) GetMetricName() string { } func init() { + proto.RegisterEnum("google.logging.v2.LogMetric_ApiVersion", LogMetric_ApiVersion_name, LogMetric_ApiVersion_value) proto.RegisterType((*LogMetric)(nil), "google.logging.v2.LogMetric") proto.RegisterMapType((map[string]string)(nil), "google.logging.v2.LogMetric.LabelExtractorsEntry") proto.RegisterType((*ListLogMetricsRequest)(nil), "google.logging.v2.ListLogMetricsRequest") @@ -567,7 +568,6 @@ func init() { proto.RegisterType((*CreateLogMetricRequest)(nil), "google.logging.v2.CreateLogMetricRequest") proto.RegisterType((*UpdateLogMetricRequest)(nil), "google.logging.v2.UpdateLogMetricRequest") proto.RegisterType((*DeleteLogMetricRequest)(nil), "google.logging.v2.DeleteLogMetricRequest") - proto.RegisterEnum("google.logging.v2.LogMetric_ApiVersion", LogMetric_ApiVersion_name, LogMetric_ApiVersion_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/monitoring/v3/alert.pb.go b/googleapis/monitoring/v3/alert.pb.go index 6497d07901cda6f45b876650049c663a3d68bf9b..f30ec39538d9aa3c78c79893171fa62d58894378 100644 --- a/googleapis/monitoring/v3/alert.pb.go +++ b/googleapis/monitoring/v3/alert.pb.go @@ -890,6 +890,7 @@ func (m *AlertPolicy_Condition_MetricAbsence) GetTrigger() *AlertPolicy_Conditio } func init() { + proto.RegisterEnum("google.monitoring.v3.AlertPolicy_ConditionCombinerType", AlertPolicy_ConditionCombinerType_name, AlertPolicy_ConditionCombinerType_value) proto.RegisterType((*AlertPolicy)(nil), "google.monitoring.v3.AlertPolicy") proto.RegisterMapType((map[string]string)(nil), "google.monitoring.v3.AlertPolicy.UserLabelsEntry") proto.RegisterType((*AlertPolicy_Documentation)(nil), "google.monitoring.v3.AlertPolicy.Documentation") @@ -897,7 +898,6 @@ func init() { proto.RegisterType((*AlertPolicy_Condition_Trigger)(nil), "google.monitoring.v3.AlertPolicy.Condition.Trigger") proto.RegisterType((*AlertPolicy_Condition_MetricThreshold)(nil), "google.monitoring.v3.AlertPolicy.Condition.MetricThreshold") proto.RegisterType((*AlertPolicy_Condition_MetricAbsence)(nil), "google.monitoring.v3.AlertPolicy.Condition.MetricAbsence") - proto.RegisterEnum("google.monitoring.v3.AlertPolicy_ConditionCombinerType", AlertPolicy_ConditionCombinerType_name, AlertPolicy_ConditionCombinerType_value) } func init() { proto.RegisterFile("google/monitoring/v3/alert.proto", fileDescriptor_014ef0e1a0f00a00) } diff --git a/googleapis/monitoring/v3/common.pb.go b/googleapis/monitoring/v3/common.pb.go index d0b0de625ab4b1fa3c8a7ec97a738374b81b634b..4e48c0e099eaa0b4498201a22f78d0eb60e949b1 100644 --- a/googleapis/monitoring/v3/common.pb.go +++ b/googleapis/monitoring/v3/common.pb.go @@ -822,13 +822,13 @@ func (m *Aggregation) GetGroupByFields() []string { } func init() { - proto.RegisterType((*TypedValue)(nil), "google.monitoring.v3.TypedValue") - proto.RegisterType((*TimeInterval)(nil), "google.monitoring.v3.TimeInterval") - proto.RegisterType((*Aggregation)(nil), "google.monitoring.v3.Aggregation") proto.RegisterEnum("google.monitoring.v3.ComparisonType", ComparisonType_name, ComparisonType_value) proto.RegisterEnum("google.monitoring.v3.ServiceTier", ServiceTier_name, ServiceTier_value) proto.RegisterEnum("google.monitoring.v3.Aggregation_Aligner", Aggregation_Aligner_name, Aggregation_Aligner_value) proto.RegisterEnum("google.monitoring.v3.Aggregation_Reducer", Aggregation_Reducer_name, Aggregation_Reducer_value) + proto.RegisterType((*TypedValue)(nil), "google.monitoring.v3.TypedValue") + proto.RegisterType((*TimeInterval)(nil), "google.monitoring.v3.TimeInterval") + proto.RegisterType((*Aggregation)(nil), "google.monitoring.v3.Aggregation") } func init() { proto.RegisterFile("google/monitoring/v3/common.proto", fileDescriptor_013c57c1dcbb8d65) } diff --git a/googleapis/monitoring/v3/metric_service.pb.go b/googleapis/monitoring/v3/metric_service.pb.go index e11cada83fed3173453a64030d39263ae5539100..e882c5b86e3dd9c0357bad7703c720186a8ba5b5 100644 --- a/googleapis/monitoring/v3/metric_service.pb.go +++ b/googleapis/monitoring/v3/metric_service.pb.go @@ -804,6 +804,7 @@ func (m *CreateTimeSeriesError) GetStatus() *status.Status { } func init() { + proto.RegisterEnum("google.monitoring.v3.ListTimeSeriesRequest_TimeSeriesView", ListTimeSeriesRequest_TimeSeriesView_name, ListTimeSeriesRequest_TimeSeriesView_value) proto.RegisterType((*ListMonitoredResourceDescriptorsRequest)(nil), "google.monitoring.v3.ListMonitoredResourceDescriptorsRequest") proto.RegisterType((*ListMonitoredResourceDescriptorsResponse)(nil), "google.monitoring.v3.ListMonitoredResourceDescriptorsResponse") proto.RegisterType((*GetMonitoredResourceDescriptorRequest)(nil), "google.monitoring.v3.GetMonitoredResourceDescriptorRequest") @@ -816,7 +817,6 @@ func init() { proto.RegisterType((*ListTimeSeriesResponse)(nil), "google.monitoring.v3.ListTimeSeriesResponse") proto.RegisterType((*CreateTimeSeriesRequest)(nil), "google.monitoring.v3.CreateTimeSeriesRequest") proto.RegisterType((*CreateTimeSeriesError)(nil), "google.monitoring.v3.CreateTimeSeriesError") - proto.RegisterEnum("google.monitoring.v3.ListTimeSeriesRequest_TimeSeriesView", ListTimeSeriesRequest_TimeSeriesView_name, ListTimeSeriesRequest_TimeSeriesView_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/monitoring/v3/notification.pb.go b/googleapis/monitoring/v3/notification.pb.go index d1a175a5f28123fb1a997cdd8ff8a2d231cbd6e1..6147a91d7bcc37fed00348a15edf09f00bbdb395 100644 --- a/googleapis/monitoring/v3/notification.pb.go +++ b/googleapis/monitoring/v3/notification.pb.go @@ -320,11 +320,11 @@ func (m *NotificationChannel) GetEnabled() *wrappers.BoolValue { } func init() { + proto.RegisterEnum("google.monitoring.v3.NotificationChannel_VerificationStatus", NotificationChannel_VerificationStatus_name, NotificationChannel_VerificationStatus_value) proto.RegisterType((*NotificationChannelDescriptor)(nil), "google.monitoring.v3.NotificationChannelDescriptor") proto.RegisterType((*NotificationChannel)(nil), "google.monitoring.v3.NotificationChannel") proto.RegisterMapType((map[string]string)(nil), "google.monitoring.v3.NotificationChannel.LabelsEntry") proto.RegisterMapType((map[string]string)(nil), "google.monitoring.v3.NotificationChannel.UserLabelsEntry") - proto.RegisterEnum("google.monitoring.v3.NotificationChannel_VerificationStatus", NotificationChannel_VerificationStatus_name, NotificationChannel_VerificationStatus_value) } func init() { diff --git a/googleapis/monitoring/v3/uptime.pb.go b/googleapis/monitoring/v3/uptime.pb.go index de492b9286df0eaecdcf2f69486592e03ea1d76c..f7dd41a4385cd088a10edd323688cfb8a3ceb350 100644 --- a/googleapis/monitoring/v3/uptime.pb.go +++ b/googleapis/monitoring/v3/uptime.pb.go @@ -883,6 +883,8 @@ func (m *UptimeCheckIp) GetIpAddress() string { } func init() { + proto.RegisterEnum("google.monitoring.v3.UptimeCheckRegion", UptimeCheckRegion_name, UptimeCheckRegion_value) + proto.RegisterEnum("google.monitoring.v3.GroupResourceType", GroupResourceType_name, GroupResourceType_value) proto.RegisterType((*InternalChecker)(nil), "google.monitoring.v3.InternalChecker") proto.RegisterType((*UptimeCheckConfig)(nil), "google.monitoring.v3.UptimeCheckConfig") proto.RegisterType((*UptimeCheckConfig_ResourceGroup)(nil), "google.monitoring.v3.UptimeCheckConfig.ResourceGroup") @@ -892,8 +894,6 @@ func init() { proto.RegisterType((*UptimeCheckConfig_TcpCheck)(nil), "google.monitoring.v3.UptimeCheckConfig.TcpCheck") proto.RegisterType((*UptimeCheckConfig_ContentMatcher)(nil), "google.monitoring.v3.UptimeCheckConfig.ContentMatcher") proto.RegisterType((*UptimeCheckIp)(nil), "google.monitoring.v3.UptimeCheckIp") - proto.RegisterEnum("google.monitoring.v3.UptimeCheckRegion", UptimeCheckRegion_name, UptimeCheckRegion_value) - proto.RegisterEnum("google.monitoring.v3.GroupResourceType", GroupResourceType_name, GroupResourceType_value) } func init() { proto.RegisterFile("google/monitoring/v3/uptime.proto", fileDescriptor_7ca0e36dfc8221d8) } diff --git a/googleapis/privacy/dlp/v2/dlp.pb.go b/googleapis/privacy/dlp/v2/dlp.pb.go index e028e2bb64631124f69268fa8ebbe3f0e09b1635..fd76b6d1d144777392365f9dbf3e050581c39d21 100644 --- a/googleapis/privacy/dlp/v2/dlp.pb.go +++ b/googleapis/privacy/dlp/v2/dlp.pb.go @@ -12518,6 +12518,20 @@ func (m *DeleteStoredInfoTypeRequest) GetName() string { } func init() { + proto.RegisterEnum("google.privacy.dlp.v2.ContentOption", ContentOption_name, ContentOption_value) + proto.RegisterEnum("google.privacy.dlp.v2.InfoTypeSupportedBy", InfoTypeSupportedBy_name, InfoTypeSupportedBy_value) + proto.RegisterEnum("google.privacy.dlp.v2.RelationalOperator", RelationalOperator_name, RelationalOperator_value) + proto.RegisterEnum("google.privacy.dlp.v2.DlpJobType", DlpJobType_name, DlpJobType_value) + proto.RegisterEnum("google.privacy.dlp.v2.StoredInfoTypeState", StoredInfoTypeState_name, StoredInfoTypeState_value) + proto.RegisterEnum("google.privacy.dlp.v2.ByteContentItem_BytesType", ByteContentItem_BytesType_name, ByteContentItem_BytesType_value) + proto.RegisterEnum("google.privacy.dlp.v2.OutputStorageConfig_OutputSchema", OutputStorageConfig_OutputSchema_name, OutputStorageConfig_OutputSchema_value) + proto.RegisterEnum("google.privacy.dlp.v2.TimePartConfig_TimePart", TimePartConfig_TimePart_name, TimePartConfig_TimePart_value) + proto.RegisterEnum("google.privacy.dlp.v2.CharsToIgnore_CommonCharsToIgnore", CharsToIgnore_CommonCharsToIgnore_name, CharsToIgnore_CommonCharsToIgnore_value) + proto.RegisterEnum("google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet", CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet_name, CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet_value) + proto.RegisterEnum("google.privacy.dlp.v2.RecordCondition_Expressions_LogicalOperator", RecordCondition_Expressions_LogicalOperator_name, RecordCondition_Expressions_LogicalOperator_value) + proto.RegisterEnum("google.privacy.dlp.v2.TransformationSummary_TransformationResultCode", TransformationSummary_TransformationResultCode_name, TransformationSummary_TransformationResultCode_value) + proto.RegisterEnum("google.privacy.dlp.v2.JobTrigger_Status", JobTrigger_Status_name, JobTrigger_Status_value) + proto.RegisterEnum("google.privacy.dlp.v2.DlpJob_JobState", DlpJob_JobState_name, DlpJob_JobState_value) proto.RegisterType((*InspectConfig)(nil), "google.privacy.dlp.v2.InspectConfig") proto.RegisterType((*InspectConfig_FindingLimits)(nil), "google.privacy.dlp.v2.InspectConfig.FindingLimits") proto.RegisterType((*InspectConfig_FindingLimits_InfoTypeLimit)(nil), "google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit") @@ -12664,20 +12678,6 @@ func init() { proto.RegisterType((*ListStoredInfoTypesRequest)(nil), "google.privacy.dlp.v2.ListStoredInfoTypesRequest") proto.RegisterType((*ListStoredInfoTypesResponse)(nil), "google.privacy.dlp.v2.ListStoredInfoTypesResponse") proto.RegisterType((*DeleteStoredInfoTypeRequest)(nil), "google.privacy.dlp.v2.DeleteStoredInfoTypeRequest") - proto.RegisterEnum("google.privacy.dlp.v2.ContentOption", ContentOption_name, ContentOption_value) - proto.RegisterEnum("google.privacy.dlp.v2.InfoTypeSupportedBy", InfoTypeSupportedBy_name, InfoTypeSupportedBy_value) - proto.RegisterEnum("google.privacy.dlp.v2.RelationalOperator", RelationalOperator_name, RelationalOperator_value) - proto.RegisterEnum("google.privacy.dlp.v2.DlpJobType", DlpJobType_name, DlpJobType_value) - proto.RegisterEnum("google.privacy.dlp.v2.StoredInfoTypeState", StoredInfoTypeState_name, StoredInfoTypeState_value) - proto.RegisterEnum("google.privacy.dlp.v2.ByteContentItem_BytesType", ByteContentItem_BytesType_name, ByteContentItem_BytesType_value) - proto.RegisterEnum("google.privacy.dlp.v2.OutputStorageConfig_OutputSchema", OutputStorageConfig_OutputSchema_name, OutputStorageConfig_OutputSchema_value) - proto.RegisterEnum("google.privacy.dlp.v2.TimePartConfig_TimePart", TimePartConfig_TimePart_name, TimePartConfig_TimePart_value) - proto.RegisterEnum("google.privacy.dlp.v2.CharsToIgnore_CommonCharsToIgnore", CharsToIgnore_CommonCharsToIgnore_name, CharsToIgnore_CommonCharsToIgnore_value) - proto.RegisterEnum("google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet", CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet_name, CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet_value) - proto.RegisterEnum("google.privacy.dlp.v2.RecordCondition_Expressions_LogicalOperator", RecordCondition_Expressions_LogicalOperator_name, RecordCondition_Expressions_LogicalOperator_value) - proto.RegisterEnum("google.privacy.dlp.v2.TransformationSummary_TransformationResultCode", TransformationSummary_TransformationResultCode_name, TransformationSummary_TransformationResultCode_value) - proto.RegisterEnum("google.privacy.dlp.v2.JobTrigger_Status", JobTrigger_Status_name, JobTrigger_Status_value) - proto.RegisterEnum("google.privacy.dlp.v2.DlpJob_JobState", DlpJob_JobState_name, DlpJob_JobState_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/privacy/dlp/v2/storage.pb.go b/googleapis/privacy/dlp/v2/storage.pb.go index fc5ea9f85b865cc76d4f2b2b02fba31f348c782c..46d22eddf9c143b927d5e7e58bb3988bb70f53aa 100644 --- a/googleapis/privacy/dlp/v2/storage.pb.go +++ b/googleapis/privacy/dlp/v2/storage.pb.go @@ -2564,6 +2564,10 @@ func (m *EntityId) GetField() *FieldId { } func init() { + proto.RegisterEnum("google.privacy.dlp.v2.Likelihood", Likelihood_name, Likelihood_value) + proto.RegisterEnum("google.privacy.dlp.v2.FileType", FileType_name, FileType_value) + proto.RegisterEnum("google.privacy.dlp.v2.CloudStorageOptions_SampleMethod", CloudStorageOptions_SampleMethod_name, CloudStorageOptions_SampleMethod_value) + proto.RegisterEnum("google.privacy.dlp.v2.BigQueryOptions_SampleMethod", BigQueryOptions_SampleMethod_name, BigQueryOptions_SampleMethod_value) proto.RegisterType((*InfoType)(nil), "google.privacy.dlp.v2.InfoType") proto.RegisterType((*StoredType)(nil), "google.privacy.dlp.v2.StoredType") proto.RegisterType((*CustomInfoType)(nil), "google.privacy.dlp.v2.CustomInfoType") @@ -2594,10 +2598,6 @@ func init() { proto.RegisterType((*BigQueryTable)(nil), "google.privacy.dlp.v2.BigQueryTable") proto.RegisterType((*BigQueryField)(nil), "google.privacy.dlp.v2.BigQueryField") proto.RegisterType((*EntityId)(nil), "google.privacy.dlp.v2.EntityId") - proto.RegisterEnum("google.privacy.dlp.v2.Likelihood", Likelihood_name, Likelihood_value) - proto.RegisterEnum("google.privacy.dlp.v2.FileType", FileType_name, FileType_value) - proto.RegisterEnum("google.privacy.dlp.v2.CloudStorageOptions_SampleMethod", CloudStorageOptions_SampleMethod_name, CloudStorageOptions_SampleMethod_value) - proto.RegisterEnum("google.privacy.dlp.v2.BigQueryOptions_SampleMethod", BigQueryOptions_SampleMethod_name, BigQueryOptions_SampleMethod_value) } func init() { diff --git a/googleapis/spanner/admin/database/v1/spanner_database_admin.pb.go b/googleapis/spanner/admin/database/v1/spanner_database_admin.pb.go index 8e77d5167e232c306506e8bf7d484ed14f922967..2196d8c609897de5de4efcb7f1d98d2216e03dc6 100644 --- a/googleapis/spanner/admin/database/v1/spanner_database_admin.pb.go +++ b/googleapis/spanner/admin/database/v1/spanner_database_admin.pb.go @@ -663,6 +663,7 @@ func (m *GetDatabaseDdlResponse) GetStatements() []string { } func init() { + proto.RegisterEnum("google.spanner.admin.database.v1.Database_State", Database_State_name, Database_State_value) proto.RegisterType((*Database)(nil), "google.spanner.admin.database.v1.Database") proto.RegisterType((*ListDatabasesRequest)(nil), "google.spanner.admin.database.v1.ListDatabasesRequest") proto.RegisterType((*ListDatabasesResponse)(nil), "google.spanner.admin.database.v1.ListDatabasesResponse") @@ -674,7 +675,6 @@ func init() { proto.RegisterType((*DropDatabaseRequest)(nil), "google.spanner.admin.database.v1.DropDatabaseRequest") proto.RegisterType((*GetDatabaseDdlRequest)(nil), "google.spanner.admin.database.v1.GetDatabaseDdlRequest") proto.RegisterType((*GetDatabaseDdlResponse)(nil), "google.spanner.admin.database.v1.GetDatabaseDdlResponse") - proto.RegisterEnum("google.spanner.admin.database.v1.Database_State", Database_State_name, Database_State_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/spanner/admin/instance/v1/spanner_instance_admin.pb.go b/googleapis/spanner/admin/instance/v1/spanner_instance_admin.pb.go index b1f63e53cf099d3ce1abe9b2f6732d81b0d79e47..5a95404e7d538a85d15afefab8cb79c5e0e919c1 100644 --- a/googleapis/spanner/admin/instance/v1/spanner_instance_admin.pb.go +++ b/googleapis/spanner/admin/instance/v1/spanner_instance_admin.pb.go @@ -888,6 +888,7 @@ func (m *UpdateInstanceMetadata) GetEndTime() *timestamp.Timestamp { } func init() { + proto.RegisterEnum("google.spanner.admin.instance.v1.Instance_State", Instance_State_name, Instance_State_value) proto.RegisterType((*InstanceConfig)(nil), "google.spanner.admin.instance.v1.InstanceConfig") proto.RegisterType((*Instance)(nil), "google.spanner.admin.instance.v1.Instance") proto.RegisterMapType((map[string]string)(nil), "google.spanner.admin.instance.v1.Instance.LabelsEntry") @@ -902,7 +903,6 @@ func init() { proto.RegisterType((*DeleteInstanceRequest)(nil), "google.spanner.admin.instance.v1.DeleteInstanceRequest") proto.RegisterType((*CreateInstanceMetadata)(nil), "google.spanner.admin.instance.v1.CreateInstanceMetadata") proto.RegisterType((*UpdateInstanceMetadata)(nil), "google.spanner.admin.instance.v1.UpdateInstanceMetadata") - proto.RegisterEnum("google.spanner.admin.instance.v1.Instance_State", Instance_State_name, Instance_State_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/spanner/v1/query_plan.pb.go b/googleapis/spanner/v1/query_plan.pb.go index 599b7913fc5e5978124ac06b9a094292e8296b02..4f19cac9663bc20fb476de6336db98f9c1228dc0 100644 --- a/googleapis/spanner/v1/query_plan.pb.go +++ b/googleapis/spanner/v1/query_plan.pb.go @@ -338,12 +338,12 @@ func (m *QueryPlan) GetPlanNodes() []*PlanNode { } func init() { + proto.RegisterEnum("google.spanner.v1.PlanNode_Kind", PlanNode_Kind_name, PlanNode_Kind_value) proto.RegisterType((*PlanNode)(nil), "google.spanner.v1.PlanNode") proto.RegisterType((*PlanNode_ChildLink)(nil), "google.spanner.v1.PlanNode.ChildLink") proto.RegisterType((*PlanNode_ShortRepresentation)(nil), "google.spanner.v1.PlanNode.ShortRepresentation") proto.RegisterMapType((map[string]int32)(nil), "google.spanner.v1.PlanNode.ShortRepresentation.SubqueriesEntry") proto.RegisterType((*QueryPlan)(nil), "google.spanner.v1.QueryPlan") - proto.RegisterEnum("google.spanner.v1.PlanNode_Kind", PlanNode_Kind_name, PlanNode_Kind_value) } func init() { proto.RegisterFile("google/spanner/v1/query_plan.proto", fileDescriptor_14e5ab0c0507d181) } diff --git a/googleapis/spanner/v1/spanner.pb.go b/googleapis/spanner/v1/spanner.pb.go index 6ad13269dcb711a0a227c97dd0c4a53ef428a7f0..777229be7bfa7283f0de42c6e8645ad3fc7d695b 100644 --- a/googleapis/spanner/v1/spanner.pb.go +++ b/googleapis/spanner/v1/spanner.pb.go @@ -1395,6 +1395,7 @@ func (m *RollbackRequest) GetTransactionId() []byte { } func init() { + proto.RegisterEnum("google.spanner.v1.ExecuteSqlRequest_QueryMode", ExecuteSqlRequest_QueryMode_name, ExecuteSqlRequest_QueryMode_value) proto.RegisterType((*CreateSessionRequest)(nil), "google.spanner.v1.CreateSessionRequest") proto.RegisterType((*Session)(nil), "google.spanner.v1.Session") proto.RegisterMapType((map[string]string)(nil), "google.spanner.v1.Session.LabelsEntry") @@ -1415,7 +1416,6 @@ func init() { proto.RegisterType((*CommitRequest)(nil), "google.spanner.v1.CommitRequest") proto.RegisterType((*CommitResponse)(nil), "google.spanner.v1.CommitResponse") proto.RegisterType((*RollbackRequest)(nil), "google.spanner.v1.RollbackRequest") - proto.RegisterEnum("google.spanner.v1.ExecuteSqlRequest_QueryMode", ExecuteSqlRequest_QueryMode_name, ExecuteSqlRequest_QueryMode_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/googleapis/spanner/v1/type.pb.go b/googleapis/spanner/v1/type.pb.go index e3edbdda67a07a6ccefc2875b51e3b76361c7f7f..0021b0ae7e13aafe3ba7a731f7772be01fc8810f 100644 --- a/googleapis/spanner/v1/type.pb.go +++ b/googleapis/spanner/v1/type.pb.go @@ -263,10 +263,10 @@ func (m *StructType_Field) GetType() *Type { } func init() { + proto.RegisterEnum("google.spanner.v1.TypeCode", TypeCode_name, TypeCode_value) proto.RegisterType((*Type)(nil), "google.spanner.v1.Type") proto.RegisterType((*StructType)(nil), "google.spanner.v1.StructType") proto.RegisterType((*StructType_Field)(nil), "google.spanner.v1.StructType.Field") - proto.RegisterEnum("google.spanner.v1.TypeCode", TypeCode_name, TypeCode_value) } func init() { proto.RegisterFile("google/spanner/v1/type.proto", fileDescriptor_dc1f2442a7aeba2a) } diff --git a/googleapis/storagetransfer/v1/transfer_types.pb.go b/googleapis/storagetransfer/v1/transfer_types.pb.go index 73a44dc53d2e6a69bc9475dafd508bba788a7d4e..0b12d4cbe32e116e2872b79ab78ca44580962c2b 100644 --- a/googleapis/storagetransfer/v1/transfer_types.pb.go +++ b/googleapis/storagetransfer/v1/transfer_types.pb.go @@ -1430,6 +1430,8 @@ func (m *TransferOperation) GetTransferJobName() string { } func init() { + proto.RegisterEnum("google.storagetransfer.v1.TransferJob_Status", TransferJob_Status_name, TransferJob_Status_value) + proto.RegisterEnum("google.storagetransfer.v1.TransferOperation_Status", TransferOperation_Status_name, TransferOperation_Status_value) proto.RegisterType((*GoogleServiceAccount)(nil), "google.storagetransfer.v1.GoogleServiceAccount") proto.RegisterType((*AwsAccessKey)(nil), "google.storagetransfer.v1.AwsAccessKey") proto.RegisterType((*ObjectConditions)(nil), "google.storagetransfer.v1.ObjectConditions") @@ -1444,8 +1446,6 @@ func init() { proto.RegisterType((*ErrorSummary)(nil), "google.storagetransfer.v1.ErrorSummary") proto.RegisterType((*TransferCounters)(nil), "google.storagetransfer.v1.TransferCounters") proto.RegisterType((*TransferOperation)(nil), "google.storagetransfer.v1.TransferOperation") - proto.RegisterEnum("google.storagetransfer.v1.TransferJob_Status", TransferJob_Status_name, TransferJob_Status_value) - proto.RegisterEnum("google.storagetransfer.v1.TransferOperation_Status", TransferOperation_Status_name, TransferOperation_Status_value) } func init() { diff --git a/googleapis/streetview/publish/v1/rpcmessages.pb.go b/googleapis/streetview/publish/v1/rpcmessages.pb.go index 43e1736d97313b8ca0771ce1df6cdbd318964935..691177d035e40f6e192f7d8ac092ed8a143891e5 100644 --- a/googleapis/streetview/publish/v1/rpcmessages.pb.go +++ b/googleapis/streetview/publish/v1/rpcmessages.pb.go @@ -718,6 +718,7 @@ func (m *BatchDeletePhotosResponse) GetStatus() []*status.Status { } func init() { + proto.RegisterEnum("google.streetview.publish.v1.PhotoView", PhotoView_name, PhotoView_value) proto.RegisterType((*CreatePhotoRequest)(nil), "google.streetview.publish.v1.CreatePhotoRequest") proto.RegisterType((*GetPhotoRequest)(nil), "google.streetview.publish.v1.GetPhotoRequest") proto.RegisterType((*BatchGetPhotosRequest)(nil), "google.streetview.publish.v1.BatchGetPhotosRequest") @@ -731,7 +732,6 @@ func init() { proto.RegisterType((*DeletePhotoRequest)(nil), "google.streetview.publish.v1.DeletePhotoRequest") proto.RegisterType((*BatchDeletePhotosRequest)(nil), "google.streetview.publish.v1.BatchDeletePhotosRequest") proto.RegisterType((*BatchDeletePhotosResponse)(nil), "google.streetview.publish.v1.BatchDeletePhotosResponse") - proto.RegisterEnum("google.streetview.publish.v1.PhotoView", PhotoView_name, PhotoView_value) } func init() { diff --git a/googleapis/watcher/v1/watch.pb.go b/googleapis/watcher/v1/watch.pb.go index 832e990246e6be5102698fa9850a8cb30cf11053..f93f299da178b3da705be6900154110df5594b10 100644 --- a/googleapis/watcher/v1/watch.pb.go +++ b/googleapis/watcher/v1/watch.pb.go @@ -297,10 +297,10 @@ func (m *Change) GetContinued() bool { } func init() { + proto.RegisterEnum("google.watcher.v1.Change_State", Change_State_name, Change_State_value) proto.RegisterType((*Request)(nil), "google.watcher.v1.Request") proto.RegisterType((*ChangeBatch)(nil), "google.watcher.v1.ChangeBatch") proto.RegisterType((*Change)(nil), "google.watcher.v1.Change") - proto.RegisterEnum("google.watcher.v1.Change_State", Change_State_name, Change_State_value) } // Reference imports to suppress errors if they are not otherwise used. diff --git a/protobuf/ptype/type.pb.go b/protobuf/ptype/type.pb.go index 6e0f4cf81e28fe7c62a49c6828343eca7093dcbe..e0e43a772b83e97ad96654455a0e9d538a87d87b 100644 --- a/protobuf/ptype/type.pb.go +++ b/protobuf/ptype/type.pb.go @@ -586,14 +586,14 @@ func (m *Option) GetValue() *any.Any { } func init() { + proto.RegisterEnum("google.protobuf.Syntax", Syntax_name, Syntax_value) + proto.RegisterEnum("google.protobuf.Field_Kind", Field_Kind_name, Field_Kind_value) + proto.RegisterEnum("google.protobuf.Field_Cardinality", Field_Cardinality_name, Field_Cardinality_value) proto.RegisterType((*Type)(nil), "google.protobuf.Type") proto.RegisterType((*Field)(nil), "google.protobuf.Field") proto.RegisterType((*Enum)(nil), "google.protobuf.Enum") proto.RegisterType((*EnumValue)(nil), "google.protobuf.EnumValue") proto.RegisterType((*Option)(nil), "google.protobuf.Option") - proto.RegisterEnum("google.protobuf.Syntax", Syntax_name, Syntax_value) - proto.RegisterEnum("google.protobuf.Field_Kind", Field_Kind_name, Field_Kind_value) - proto.RegisterEnum("google.protobuf.Field_Cardinality", Field_Cardinality_name, Field_Cardinality_value) } func init() { proto.RegisterFile("google/protobuf/type.proto", fileDescriptor_dd271cc1e348c538) }