diff --git a/mixer/v1/istio.mixer.v1.pb.html b/mixer/v1/istio.mixer.v1.pb.html
index 442d9ccace..0519b1616b 100644
--- a/mixer/v1/istio.mixer.v1.pb.html
+++ b/mixer/v1/istio.mixer.v1.pb.html
@@ -2,7 +2,7 @@
title: istio.mixer.v1
layout: protoc-gen-docs
generator: protoc-gen-docs
-number_of_entries: 20
+number_of_entries: 21
---
This package defines the Mixer API that the sidecar proxy uses to perform
precondition checks, manage quotas, and report telemetry.
@@ -754,16 +754,13 @@ ReportRequest
can be provided in a single message in order to improve communication efficiency. The
client can accumulate a set of actions and send them all in one single message.
-Although each Attributes message is semantically treated as an independent
-stand-alone entity unrelated to the other attributes within the message, this
-message format leverages delta-encoding between attribute messages in order to
-substantially reduce the request size and improve end-to-end efficiency. Each
-individual set of attributes is used to modify the previous set. This eliminates
-the need to redundantly send the same attributes multiple times over within
-a single request.
-
-If a client is not sophisticated and doesn’t want to use delta-encoding,
-a degenerate case is to include all attributes in every individual message.
+
+
+
+repeatedAttributesSemantics |
+ReportRequest.RepeatedAttributesSemantics |
+
+ Indicates how to decode the attributes sets in this request.
|
@@ -787,6 +784,40 @@ ReportRequest
The number of words in the global dictionary.
To detect global dictionary out of sync between client and server.
+
+
+
+
+
+ReportRequest.RepeatedAttributesSemantics
+
+Used to signal how the sets of compressed attributes should be reconstitued server-side.
+
+
+
+
+| Name |
+Description |
+
+
+
+
+DELTA_ENCODING |
+
+ Use delta encoding between sets of compressed attributes to reduce the overall on-wire
+request size. Each individual set of attributes is used to modify the previous set.
+NOTE: There is no way with this encoding to specify attribute value deletion. This
+option should be used with extreme caution.
+
+ |
+
+
+INDEPENDENT_ENCODING |
+
+ Treat each set of compressed attributes as complete - independent from other sets
+in this request. This will result in on-wire duplication of attributes and values, but
+will allow for proper accounting of absent values in overall encoding.
+
|
diff --git a/mixer/v1/mixer.pb.go b/mixer/v1/mixer.pb.go
index 0f6c334879..e759f9372a 100644
--- a/mixer/v1/mixer.pb.go
+++ b/mixer/v1/mixer.pb.go
@@ -82,6 +82,34 @@ func (HeaderOperation_Operation) EnumDescriptor() ([]byte, []int) {
return fileDescriptorMixer, []int{3, 0}
}
+// Used to signal how the sets of compressed attributes should be reconstitued server-side.
+type ReportRequest_RepeatedAttributesSemantics int32
+
+const (
+ // Use delta encoding between sets of compressed attributes to reduce the overall on-wire
+ // request size. Each individual set of attributes is used to modify the previous set.
+ // NOTE: There is no way with this encoding to specify attribute value deletion. This
+ // option should be used with extreme caution.
+ DELTA_ENCODING ReportRequest_RepeatedAttributesSemantics = 0
+ // Treat each set of compressed attributes as complete - independent from other sets
+ // in this request. This will result in on-wire duplication of attributes and values, but
+ // will allow for proper accounting of absent values in overall encoding.
+ INDEPENDENT_ENCODING ReportRequest_RepeatedAttributesSemantics = 1
+)
+
+var ReportRequest_RepeatedAttributesSemantics_name = map[int32]string{
+ 0: "DELTA_ENCODING",
+ 1: "INDEPENDENT_ENCODING",
+}
+var ReportRequest_RepeatedAttributesSemantics_value = map[string]int32{
+ "DELTA_ENCODING": 0,
+ "INDEPENDENT_ENCODING": 1,
+}
+
+func (ReportRequest_RepeatedAttributesSemantics) EnumDescriptor() ([]byte, []int) {
+ return fileDescriptorMixer, []int{5, 0}
+}
+
// Used to get a thumbs-up/thumbs-down before performing an action.
type CheckRequest struct {
// The attributes to use for this request.
@@ -255,18 +283,9 @@ type ReportRequest struct {
// Each `Attributes` element represents the state of a single action. Multiple actions
// can be provided in a single message in order to improve communication efficiency. The
// client can accumulate a set of actions and send them all in one single message.
- //
- // Although each `Attributes` message is semantically treated as an independent
- // stand-alone entity unrelated to the other attributes within the message, this
- // message format leverages delta-encoding between attribute messages in order to
- // substantially reduce the request size and improve end-to-end efficiency. Each
- // individual set of attributes is used to modify the previous set. This eliminates
- // the need to redundantly send the same attributes multiple times over within
- // a single request.
- //
- // If a client is not sophisticated and doesn't want to use delta-encoding,
- // a degenerate case is to include all attributes in every individual message.
Attributes []CompressedAttributes `protobuf:"bytes,1,rep,name=attributes" json:"attributes"`
+ // Indicates how to decode the attributes sets in this request.
+ RepeatedAttributesSemantics ReportRequest_RepeatedAttributesSemantics `protobuf:"varint,4,opt,name=repeated_attributes_semantics,json=repeatedAttributesSemantics,proto3,enum=istio.mixer.v1.ReportRequest_RepeatedAttributesSemantics" json:"repeated_attributes_semantics,omitempty"`
// The default message-level dictionary for all the attributes.
// Individual attribute messages can have their own dictionaries, but if they don't
// then this set of words, if it is provided, is used instead.
@@ -305,6 +324,7 @@ func init() {
proto.RegisterType((*ReportResponse)(nil), "istio.mixer.v1.ReportResponse")
proto.RegisterEnum("istio.mixer.v1.ReferencedAttributes_Condition", ReferencedAttributes_Condition_name, ReferencedAttributes_Condition_value)
proto.RegisterEnum("istio.mixer.v1.HeaderOperation_Operation", HeaderOperation_Operation_name, HeaderOperation_Operation_value)
+ proto.RegisterEnum("istio.mixer.v1.ReportRequest_RepeatedAttributesSemantics", ReportRequest_RepeatedAttributesSemantics_name, ReportRequest_RepeatedAttributesSemantics_value)
}
func (x ReferencedAttributes_Condition) String() string {
s, ok := ReferencedAttributes_Condition_name[int32(x)]
@@ -320,6 +340,13 @@ func (x HeaderOperation_Operation) String() string {
}
return strconv.Itoa(int(x))
}
+func (x ReportRequest_RepeatedAttributesSemantics) String() string {
+ s, ok := ReportRequest_RepeatedAttributesSemantics_name[int32(x)]
+ if ok {
+ return s
+ }
+ return strconv.Itoa(int(x))
+}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
@@ -903,6 +930,11 @@ func (m *ReportRequest) MarshalTo(dAtA []byte) (int, error) {
i++
i = encodeVarintMixer(dAtA, i, uint64(m.GlobalWordCount))
}
+ if m.RepeatedAttributesSemantics != 0 {
+ dAtA[i] = 0x20
+ i++
+ i = encodeVarintMixer(dAtA, i, uint64(m.RepeatedAttributesSemantics))
+ }
return i, nil
}
@@ -1117,6 +1149,9 @@ func (m *ReportRequest) Size() (n int) {
if m.GlobalWordCount != 0 {
n += 1 + sovMixer(uint64(m.GlobalWordCount))
}
+ if m.RepeatedAttributesSemantics != 0 {
+ n += 1 + sovMixer(uint64(m.RepeatedAttributesSemantics))
+ }
return n
}
@@ -1277,6 +1312,7 @@ func (this *ReportRequest) String() string {
`Attributes:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Attributes), "CompressedAttributes", "CompressedAttributes", 1), `&`, ``, 1) + `,`,
`DefaultWords:` + fmt.Sprintf("%v", this.DefaultWords) + `,`,
`GlobalWordCount:` + fmt.Sprintf("%v", this.GlobalWordCount) + `,`,
+ `RepeatedAttributesSemantics:` + fmt.Sprintf("%v", this.RepeatedAttributesSemantics) + `,`,
`}`,
}, "")
return s
@@ -2810,6 +2846,25 @@ func (m *ReportRequest) Unmarshal(dAtA []byte) error {
break
}
}
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field RepeatedAttributesSemantics", wireType)
+ }
+ m.RepeatedAttributesSemantics = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowMixer
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.RepeatedAttributesSemantics |= (ReportRequest_RepeatedAttributesSemantics(b) & 0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
default:
iNdEx = preIndex
skippy, err := skipMixer(dAtA[iNdEx:])
@@ -2989,76 +3044,81 @@ var (
func init() { proto.RegisterFile("mixer/v1/mixer.proto", fileDescriptorMixer) }
var fileDescriptorMixer = []byte{
- // 1133 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xbf, 0x73, 0xe3, 0x44,
- 0x14, 0xb6, 0x2c, 0xdb, 0x89, 0x9f, 0x63, 0xc7, 0xd9, 0x71, 0x88, 0xe3, 0xe1, 0x94, 0x8c, 0xf9,
- 0x31, 0x3e, 0x0a, 0x39, 0x97, 0x6b, 0x18, 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x77,
+ 0xbf, 0x61, 0x19, 0x9d, 0xe6, 0x4e, 0xab, 0xdd, 0xd9, 0x52, 0x25, 0x54, 0x81, 0x72, 0xbb, 0xd3,
+ 0x32, 0x62, 0xb6, 0x1a, 0x9d, 0xfd, 0xb1, 0x45, 0xae, 0xa9, 0x50, 0x4a, 0xca, 0xe2, 0x1f, 0x64,
+ 0xfd, 0x5b, 0x19, 0xb2, 0xdb, 0x71, 0xc9, 0x68, 0x13, 0xb2, 0xec, 0xf2, 0x44, 0x6f, 0x9e, 0xf5,
+ 0x74, 0xa9, 0x5e, 0x3f, 0xf3, 0xc6, 0xad, 0x49, 0xa8, 0x0d, 0x39, 0x9e, 0x03, 0x5d, 0x3f, 0x73,
+ 0x24, 0x55, 0xed, 0x34, 0x73, 0x02, 0xb5, 0xb1, 0xfd, 0xfc, 0x58, 0x93, 0x5e, 0x1c, 0x6b, 0xd2,
+ 0xcf, 0xc7, 0x9a, 0xf4, 0xf2, 0x58, 0x93, 0x9e, 0x8d, 0x34, 0xf9, 0x87, 0x91, 0x26, 0x3d, 0x1f,
+ 0x69, 0xf2, 0x8b, 0x91, 0x26, 0xff, 0x36, 0xd2, 0xe4, 0xbf, 0x46, 0x9a, 0xf4, 0x72, 0xa4, 0xc9,
+ 0x5f, 0xff, 0xae, 0x49, 0x0f, 0xaf, 0x70, 0x48, 0x8f, 0xd4, 0x6d, 0xdf, 0xab, 0x27, 0x4f, 0xe2,
+ 0x67, 0xb2, 0xfc, 0x4a, 0x96, 0x0f, 0x72, 0xec, 0x87, 0x78, 0xeb, 0xef, 0x00, 0x00, 0x00, 0xff,
+ 0xff, 0x7a, 0xa2, 0x01, 0x40, 0xa0, 0x0b, 0x00, 0x00,
}
diff --git a/mixer/v1/mixer.proto b/mixer/v1/mixer.proto
index 8d95d91ed0..f260e650d9 100644
--- a/mixer/v1/mixer.proto
+++ b/mixer/v1/mixer.proto
@@ -221,24 +221,32 @@ message RouteDirective {
// Used to report telemetry after performing one or more actions.
message ReportRequest {
+ // next value: 5
+
+ // Used to signal how the sets of compressed attributes should be reconstitued server-side.
+ enum RepeatedAttributesSemantics {
+ // Use delta encoding between sets of compressed attributes to reduce the overall on-wire
+ // request size. Each individual set of attributes is used to modify the previous set.
+ // NOTE: There is no way with this encoding to specify attribute value deletion. This
+ // option should be used with extreme caution.
+ DELTA_ENCODING = 0;
+
+ // Treat each set of compressed attributes as complete - independent from other sets
+ // in this request. This will result in on-wire duplication of attributes and values, but
+ // will allow for proper accounting of absent values in overall encoding.
+ INDEPENDENT_ENCODING = 1;
+ }
+
// The attributes to use for this request.
//
// Each `Attributes` element represents the state of a single action. Multiple actions
// can be provided in a single message in order to improve communication efficiency. The
// client can accumulate a set of actions and send them all in one single message.
- //
- // Although each `Attributes` message is semantically treated as an independent
- // stand-alone entity unrelated to the other attributes within the message, this
- // message format leverages delta-encoding between attribute messages in order to
- // substantially reduce the request size and improve end-to-end efficiency. Each
- // individual set of attributes is used to modify the previous set. This eliminates
- // the need to redundantly send the same attributes multiple times over within
- // a single request.
- //
- // If a client is not sophisticated and doesn't want to use delta-encoding,
- // a degenerate case is to include all attributes in every individual message.
repeated CompressedAttributes attributes = 1 [(gogoproto.nullable) = false];
+ // Indicates how to decode the attributes sets in this request.
+ RepeatedAttributesSemantics repeated_attributes_semantics = 4;
+
// The default message-level dictionary for all the attributes.
// Individual attribute messages can have their own dictionaries, but if they don't
// then this set of words, if it is provided, is used instead.
diff --git a/proto.lock b/proto.lock
index 9002723a2f..3589c51fcf 100644
--- a/proto.lock
+++ b/proto.lock
@@ -2120,6 +2120,19 @@
"integer": 2
}
]
+ },
+ {
+ "name": "ReportRequest.RepeatedAttributesSemantics",
+ "enum_fields": [
+ {
+ "name": "DELTA_ENCODING",
+ "integer": 0
+ },
+ {
+ "name": "INDEPENDENT_ENCODING",
+ "integer": 1
+ }
+ ]
}
],
"messages": [
@@ -2345,6 +2358,11 @@
"type": "CompressedAttributes",
"is_repeated": true
},
+ {
+ "id": 4,
+ "name": "repeated_attributes_semantics",
+ "type": "RepeatedAttributesSemantics"
+ },
{
"id": 2,
"name": "default_words",
diff --git a/python/istio_api/mixer/v1/mixer_pb2.py b/python/istio_api/mixer/v1/mixer_pb2.py
index 1741dfbdb7..7abd991287 100644
--- a/python/istio_api/mixer/v1/mixer_pb2.py
+++ b/python/istio_api/mixer/v1/mixer_pb2.py
@@ -23,7 +23,7 @@
name='mixer/v1/mixer.proto',
package='istio.mixer.v1',
syntax='proto3',
- serialized_pb=_b('\n\x14mixer/v1/mixer.proto\x12\x0eistio.mixer.v1\x1a\x14gogoproto/gogo.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x17google/rpc/status.proto\x1a\x19mixer/v1/attributes.proto\"\xd0\x02\n\x0c\x43heckRequest\x12>\n\nattributes\x18\x01 \x01(\x0b\x32$.istio.mixer.v1.CompressedAttributesB\x04\xc8\xde\x1f\x00\x12\x19\n\x11global_word_count\x18\x02 \x01(\r\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x03 \x01(\t\x12>\n\x06quotas\x18\x04 \x03(\x0b\x32(.istio.mixer.v1.CheckRequest.QuotasEntryB\x04\xc8\xde\x1f\x00\x1a\x32\n\x0bQuotaParams\x12\x0e\n\x06\x61mount\x18\x01 \x01(\x03\x12\x13\n\x0b\x62\x65st_effort\x18\x02 \x01(\x08\x1aW\n\x0bQuotasEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.istio.mixer.v1.CheckRequest.QuotaParams:\x02\x38\x01\"\xc3\x05\n\rCheckResponse\x12L\n\x0cprecondition\x18\x02 \x01(\x0b\x32\x30.istio.mixer.v1.CheckResponse.PreconditionResultB\x04\xc8\xde\x1f\x00\x12?\n\x06quotas\x18\x03 \x03(\x0b\x32).istio.mixer.v1.CheckResponse.QuotasEntryB\x04\xc8\xde\x1f\x00\x1a\x98\x02\n\x12PreconditionResult\x12(\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.StatusB\x04\xc8\xde\x1f\x00\x12;\n\x0evalid_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xc8\xde\x1f\x00\x98\xdf\x1f\x01\x12\x17\n\x0fvalid_use_count\x18\x03 \x01(\x05\x12\x43\n\x15referenced_attributes\x18\x05 \x01(\x0b\x32$.istio.mixer.v1.ReferencedAttributes\x12\x37\n\x0froute_directive\x18\x06 \x01(\x0b\x32\x1e.istio.mixer.v1.RouteDirectiveJ\x04\x08\x04\x10\x05\x1a\xad\x01\n\x0bQuotaResult\x12;\n\x0evalid_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xc8\xde\x1f\x00\x98\xdf\x1f\x01\x12\x16\n\x0egranted_amount\x18\x02 \x01(\x03\x12I\n\x15referenced_attributes\x18\x05 \x01(\x0b\x32$.istio.mixer.v1.ReferencedAttributesB\x04\xc8\xde\x1f\x00\x1aX\n\x0bQuotasEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).istio.mixer.v1.CheckResponse.QuotaResult:\x02\x38\x01\"\xca\x02\n\x14ReferencedAttributes\x12\r\n\x05words\x18\x01 \x03(\t\x12T\n\x11\x61ttribute_matches\x18\x02 \x03(\x0b\x32\x33.istio.mixer.v1.ReferencedAttributes.AttributeMatchB\x04\xc8\xde\x1f\x00\x1a\x81\x01\n\x0e\x41ttributeMatch\x12\x0c\n\x04name\x18\x01 \x01(\x11\x12\x41\n\tcondition\x18\x02 \x01(\x0e\x32..istio.mixer.v1.ReferencedAttributes.Condition\x12\r\n\x05regex\x18\x03 \x01(\t\x12\x0f\n\x07map_key\x18\x04 \x01(\x11\"I\n\tCondition\x12\x19\n\x15\x43ONDITION_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x41\x42SENCE\x10\x01\x12\t\n\x05\x45XACT\x10\x02\x12\t\n\x05REGEX\x10\x03\"\x9e\x01\n\x0fHeaderOperation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12<\n\toperation\x18\x03 \x01(\x0e\x32).istio.mixer.v1.HeaderOperation.Operation\"0\n\tOperation\x12\x0b\n\x07REPLACE\x10\x00\x12\n\n\x06REMOVE\x10\x01\x12\n\n\x06\x41PPEND\x10\x02\"\xe1\x01\n\x0eRouteDirective\x12H\n\x19request_header_operations\x18\x01 \x03(\x0b\x32\x1f.istio.mixer.v1.HeaderOperationB\x04\xc8\xde\x1f\x00\x12I\n\x1aresponse_header_operations\x18\x02 \x03(\x0b\x32\x1f.istio.mixer.v1.HeaderOperationB\x04\xc8\xde\x1f\x00\x12\x1c\n\x14\x64irect_response_code\x18\x03 \x01(\r\x12\x1c\n\x14\x64irect_response_body\x18\x04 \x01(\t\"\x81\x01\n\rReportRequest\x12>\n\nattributes\x18\x01 \x03(\x0b\x32$.istio.mixer.v1.CompressedAttributesB\x04\xc8\xde\x1f\x00\x12\x15\n\rdefault_words\x18\x02 \x03(\t\x12\x19\n\x11global_word_count\x18\x03 \x01(\r\"\x10\n\x0eReportResponse2\x9a\x01\n\x05Mixer\x12\x46\n\x05\x43heck\x12\x1c.istio.mixer.v1.CheckRequest\x1a\x1d.istio.mixer.v1.CheckResponse\"\x00\x12I\n\x06Report\x12\x1d.istio.mixer.v1.ReportRequest\x1a\x1e.istio.mixer.v1.ReportResponse\"\x00\x42)Z\x15istio.io/api/mixer/v1\x80\x01\x01\xf8\x01\x01\xc8\xe1\x1e\x00\xa8\xe2\x1e\x00\xf0\xe1\x1e\x00\x62\x06proto3')
+ serialized_pb=_b('\n\x14mixer/v1/mixer.proto\x12\x0eistio.mixer.v1\x1a\x14gogoproto/gogo.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x17google/rpc/status.proto\x1a\x19mixer/v1/attributes.proto\"\xd0\x02\n\x0c\x43heckRequest\x12>\n\nattributes\x18\x01 \x01(\x0b\x32$.istio.mixer.v1.CompressedAttributesB\x04\xc8\xde\x1f\x00\x12\x19\n\x11global_word_count\x18\x02 \x01(\r\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x03 \x01(\t\x12>\n\x06quotas\x18\x04 \x03(\x0b\x32(.istio.mixer.v1.CheckRequest.QuotasEntryB\x04\xc8\xde\x1f\x00\x1a\x32\n\x0bQuotaParams\x12\x0e\n\x06\x61mount\x18\x01 \x01(\x03\x12\x13\n\x0b\x62\x65st_effort\x18\x02 \x01(\x08\x1aW\n\x0bQuotasEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.istio.mixer.v1.CheckRequest.QuotaParams:\x02\x38\x01\"\xc3\x05\n\rCheckResponse\x12L\n\x0cprecondition\x18\x02 \x01(\x0b\x32\x30.istio.mixer.v1.CheckResponse.PreconditionResultB\x04\xc8\xde\x1f\x00\x12?\n\x06quotas\x18\x03 \x03(\x0b\x32).istio.mixer.v1.CheckResponse.QuotasEntryB\x04\xc8\xde\x1f\x00\x1a\x98\x02\n\x12PreconditionResult\x12(\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.StatusB\x04\xc8\xde\x1f\x00\x12;\n\x0evalid_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xc8\xde\x1f\x00\x98\xdf\x1f\x01\x12\x17\n\x0fvalid_use_count\x18\x03 \x01(\x05\x12\x43\n\x15referenced_attributes\x18\x05 \x01(\x0b\x32$.istio.mixer.v1.ReferencedAttributes\x12\x37\n\x0froute_directive\x18\x06 \x01(\x0b\x32\x1e.istio.mixer.v1.RouteDirectiveJ\x04\x08\x04\x10\x05\x1a\xad\x01\n\x0bQuotaResult\x12;\n\x0evalid_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x08\xc8\xde\x1f\x00\x98\xdf\x1f\x01\x12\x16\n\x0egranted_amount\x18\x02 \x01(\x03\x12I\n\x15referenced_attributes\x18\x05 \x01(\x0b\x32$.istio.mixer.v1.ReferencedAttributesB\x04\xc8\xde\x1f\x00\x1aX\n\x0bQuotasEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).istio.mixer.v1.CheckResponse.QuotaResult:\x02\x38\x01\"\xca\x02\n\x14ReferencedAttributes\x12\r\n\x05words\x18\x01 \x03(\t\x12T\n\x11\x61ttribute_matches\x18\x02 \x03(\x0b\x32\x33.istio.mixer.v1.ReferencedAttributes.AttributeMatchB\x04\xc8\xde\x1f\x00\x1a\x81\x01\n\x0e\x41ttributeMatch\x12\x0c\n\x04name\x18\x01 \x01(\x11\x12\x41\n\tcondition\x18\x02 \x01(\x0e\x32..istio.mixer.v1.ReferencedAttributes.Condition\x12\r\n\x05regex\x18\x03 \x01(\t\x12\x0f\n\x07map_key\x18\x04 \x01(\x11\"I\n\tCondition\x12\x19\n\x15\x43ONDITION_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x41\x42SENCE\x10\x01\x12\t\n\x05\x45XACT\x10\x02\x12\t\n\x05REGEX\x10\x03\"\x9e\x01\n\x0fHeaderOperation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12<\n\toperation\x18\x03 \x01(\x0e\x32).istio.mixer.v1.HeaderOperation.Operation\"0\n\tOperation\x12\x0b\n\x07REPLACE\x10\x00\x12\n\n\x06REMOVE\x10\x01\x12\n\n\x06\x41PPEND\x10\x02\"\xe1\x01\n\x0eRouteDirective\x12H\n\x19request_header_operations\x18\x01 \x03(\x0b\x32\x1f.istio.mixer.v1.HeaderOperationB\x04\xc8\xde\x1f\x00\x12I\n\x1aresponse_header_operations\x18\x02 \x03(\x0b\x32\x1f.istio.mixer.v1.HeaderOperationB\x04\xc8\xde\x1f\x00\x12\x1c\n\x14\x64irect_response_code\x18\x03 \x01(\r\x12\x1c\n\x14\x64irect_response_body\x18\x04 \x01(\t\"\xb0\x02\n\rReportRequest\x12>\n\nattributes\x18\x01 \x03(\x0b\x32$.istio.mixer.v1.CompressedAttributesB\x04\xc8\xde\x1f\x00\x12`\n\x1drepeated_attributes_semantics\x18\x04 \x01(\x0e\x32\x39.istio.mixer.v1.ReportRequest.RepeatedAttributesSemantics\x12\x15\n\rdefault_words\x18\x02 \x03(\t\x12\x19\n\x11global_word_count\x18\x03 \x01(\r\"K\n\x1bRepeatedAttributesSemantics\x12\x12\n\x0e\x44\x45LTA_ENCODING\x10\x00\x12\x18\n\x14INDEPENDENT_ENCODING\x10\x01\"\x10\n\x0eReportResponse2\x9a\x01\n\x05Mixer\x12\x46\n\x05\x43heck\x12\x1c.istio.mixer.v1.CheckRequest\x1a\x1d.istio.mixer.v1.CheckResponse\"\x00\x12I\n\x06Report\x12\x1d.istio.mixer.v1.ReportRequest\x1a\x1e.istio.mixer.v1.ReportResponse\"\x00\x42)Z\x15istio.io/api/mixer/v1\x80\x01\x01\xf8\x01\x01\xc8\xe1\x1e\x00\xa8\xe2\x1e\x00\xf0\xe1\x1e\x00\x62\x06proto3')
,
dependencies=[gogoproto_dot_gogo__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,mixer_dot_v1_dot_attributes__pb2.DESCRIPTOR,])
@@ -85,6 +85,28 @@
)
_sym_db.RegisterEnumDescriptor(_HEADEROPERATION_OPERATION)
+_REPORTREQUEST_REPEATEDATTRIBUTESSEMANTICS = _descriptor.EnumDescriptor(
+ name='RepeatedAttributesSemantics',
+ full_name='istio.mixer.v1.ReportRequest.RepeatedAttributesSemantics',
+ filename=None,
+ file=DESCRIPTOR,
+ values=[
+ _descriptor.EnumValueDescriptor(
+ name='DELTA_ENCODING', index=0, number=0,
+ options=None,
+ type=None),
+ _descriptor.EnumValueDescriptor(
+ name='INDEPENDENT_ENCODING', index=1, number=1,
+ options=None,
+ type=None),
+ ],
+ containing_type=None,
+ options=None,
+ serialized_start=2147,
+ serialized_end=2222,
+)
+_sym_db.RegisterEnumDescriptor(_REPORTREQUEST_REPEATEDATTRIBUTESSEMANTICS)
+
_CHECKREQUEST_QUOTAPARAMS = _descriptor.Descriptor(
name='QuotaParams',
@@ -592,14 +614,21 @@
is_extension=False, extension_scope=None,
options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\310\336\037\000')), file=DESCRIPTOR),
_descriptor.FieldDescriptor(
- name='default_words', full_name='istio.mixer.v1.ReportRequest.default_words', index=1,
+ name='repeated_attributes_semantics', full_name='istio.mixer.v1.ReportRequest.repeated_attributes_semantics', index=1,
+ number=4, type=14, cpp_type=8, label=1,
+ has_default_value=False, default_value=0,
+ message_type=None, enum_type=None, containing_type=None,
+ is_extension=False, extension_scope=None,
+ options=None, file=DESCRIPTOR),
+ _descriptor.FieldDescriptor(
+ name='default_words', full_name='istio.mixer.v1.ReportRequest.default_words', index=2,
number=2, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
- name='global_word_count', full_name='istio.mixer.v1.ReportRequest.global_word_count', index=2,
+ name='global_word_count', full_name='istio.mixer.v1.ReportRequest.global_word_count', index=3,
number=3, type=13, cpp_type=3, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
@@ -610,6 +639,7 @@
],
nested_types=[],
enum_types=[
+ _REPORTREQUEST_REPEATEDATTRIBUTESSEMANTICS,
],
options=None,
is_extendable=False,
@@ -618,7 +648,7 @@
oneofs=[
],
serialized_start=1918,
- serialized_end=2047,
+ serialized_end=2222,
)
@@ -641,8 +671,8 @@
extension_ranges=[],
oneofs=[
],
- serialized_start=2049,
- serialized_end=2065,
+ serialized_start=2224,
+ serialized_end=2240,
)
_CHECKREQUEST_QUOTAPARAMS.containing_type = _CHECKREQUEST
@@ -671,6 +701,8 @@
_ROUTEDIRECTIVE.fields_by_name['request_header_operations'].message_type = _HEADEROPERATION
_ROUTEDIRECTIVE.fields_by_name['response_header_operations'].message_type = _HEADEROPERATION
_REPORTREQUEST.fields_by_name['attributes'].message_type = mixer_dot_v1_dot_attributes__pb2._COMPRESSEDATTRIBUTES
+_REPORTREQUEST.fields_by_name['repeated_attributes_semantics'].enum_type = _REPORTREQUEST_REPEATEDATTRIBUTESSEMANTICS
+_REPORTREQUEST_REPEATEDATTRIBUTESSEMANTICS.containing_type = _REPORTREQUEST
DESCRIPTOR.message_types_by_name['CheckRequest'] = _CHECKREQUEST
DESCRIPTOR.message_types_by_name['CheckResponse'] = _CHECKRESPONSE
DESCRIPTOR.message_types_by_name['ReferencedAttributes'] = _REFERENCEDATTRIBUTES
@@ -815,8 +847,8 @@
file=DESCRIPTOR,
index=0,
options=None,
- serialized_start=2068,
- serialized_end=2222,
+ serialized_start=2243,
+ serialized_end=2397,
methods=[
_descriptor.MethodDescriptor(
name='Check',