Uses of Class
org.microproxy.contentviews.ProtoSchema
Packages that use ProtoSchema
-
Uses of ProtoSchema in org.microproxy.contentviews
Methods in org.microproxy.contentviews that return ProtoSchemaModifier and TypeMethodDescriptionstatic ProtoSchemaProtoSchema.empty()Returns a schema with only the well-known types.static ProtoSchemaReads aFileDescriptorSetfile, asprotoc --descriptor_set_outwrites it.ProtoSchema.merge(ProtoSchema other) This schema with the definitions ofotheradded; where both define a name,other's definition wins.static ProtoSchemaProtoSchema.parse(byte[] fileDescriptorSet) Parses a serializedFileDescriptorSet.ContentViews.schema()Returns the schema the protobuf and gRPC views decode with.Methods in org.microproxy.contentviews with parameters of type ProtoSchemaModifier and TypeMethodDescriptionstatic ProtoMessageProtobuf.decode(byte[] data, ProtoSchema schema, String messageType) Decodes a message asmessageTypeofschema; fields the type does not declare, or whose values do not match their declared type, are decoded without it.static byte[]Protobuf.encode(Map<?, ?> fields, ProtoSchema schema, String messageType) Encodes plain values asmessageType: keys may be field names, and values are encoded as their fields are declared (enum values may be names,sintfields are zigzag-encoded, packed fields packed, map fields from maps).ProtoSchema.merge(ProtoSchema other) This schema with the definitions ofotheradded; where both define a name,other's definition wins.ContentViews.withSchema(ProtoSchema schema) These views with the protobuf and gRPC views decoding withschema. -
Uses of ProtoSchema in org.microproxy.quic
Methods in org.microproxy.quic with parameters of type ProtoSchemaModifier and TypeMethodDescriptionQuicMessage.protobuf(ProtoSchema schema, String messageType) The payload as a protobuf message ofmessageType, its fields named byschema. -
Uses of ProtoSchema in org.microproxy.starlark
Methods in org.microproxy.starlark that return ProtoSchemaModifier and TypeMethodDescriptionStarlarkScript.protoSchema()Returns the protobuf schema the script decodes with, ornull.Methods in org.microproxy.starlark with parameters of type ProtoSchemaModifier and TypeMethodDescriptionScriptedProxy.Builder.protoSchema(ProtoSchema schema) A protobuf schema for the script'sprotobufandgrpcmodules: with it,protobuf.decode(data, type="pkg.Message")keys fields by name andprotobuf.encode(fields, type="pkg.Message")takes names.StarlarkScript.withProtoSchema(ProtoSchema schema) This script with a protobuf schema for itsprotobufandgrpcmodules, so thatprotobuf.decode(data, type="pkg.Message")decodes with field names (andencodetakes them).