diff --git a/CommonProtos/metadata/Rpc/Context/AttributeContext.php b/CommonProtos/metadata/Rpc/Context/AttributeContext.php index 6336f6a6648..a8408bb0968 100644 --- a/CommonProtos/metadata/Rpc/Context/AttributeContext.php +++ b/CommonProtos/metadata/Rpc/Context/AttributeContext.php @@ -19,7 +19,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Struct::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xBB\x12\x0A*google/rpc/context/attribute_context.proto\x12\x12google.rpc.context\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x83\x10\x0A\x10AttributeContext\x129\x0A\x06origin\x18\x07 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x129\x0A\x06source\x18\x01 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x12>\x0A\x0Bdestination\x18\x02 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x12=\x0A\x07request\x18\x03 \x01(\x0B2,.google.rpc.context.AttributeContext.Request\x12?\x0A\x08response\x18\x04 \x01(\x0B2-.google.rpc.context.AttributeContext.Response\x12?\x0A\x08resource\x18\x05 \x01(\x0B2-.google.rpc.context.AttributeContext.Resource\x125\x0A\x03api\x18\x06 \x01(\x0B2(.google.rpc.context.AttributeContext.Api\x12(\x0A\x0Aextensions\x18\x08 \x03(\x0B2\x14.google.protobuf.Any\x1A\xBE\x01\x0A\x04Peer\x12\x0A\x0A\x02ip\x18\x01 \x01(\x09\x12\x0C\x0A\x04port\x18\x02 \x01(\x03\x12E\x0A\x06labels\x18\x06 \x03(\x0B25.google.rpc.context.AttributeContext.Peer.LabelsEntry\x12\x11\x0A\x09principal\x18\x07 \x01(\x09\x12\x13\x0A\x0Bregion_code\x18\x08 \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1AL\x0A\x03Api\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x12\x11\x0A\x09operation\x18\x02 \x01(\x09\x12\x10\x0A\x08protocol\x18\x03 \x01(\x09\x12\x0F\x0A\x07version\x18\x04 \x01(\x09\x1A\x7F\x0A\x04Auth\x12\x11\x0A\x09principal\x18\x01 \x01(\x09\x12\x11\x0A\x09audiences\x18\x02 \x03(\x09\x12\x11\x0A\x09presenter\x18\x03 \x01(\x09\x12'\x0A\x06claims\x18\x04 \x01(\x0B2\x17.google.protobuf.Struct\x12\x15\x0A\x0Daccess_levels\x18\x05 \x03(\x09\x1A\xEF\x02\x0A\x07Request\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0E\x0A\x06method\x18\x02 \x01(\x09\x12J\x0A\x07headers\x18\x03 \x03(\x0B29.google.rpc.context.AttributeContext.Request.HeadersEntry\x12\x0C\x0A\x04path\x18\x04 \x01(\x09\x12\x0C\x0A\x04host\x18\x05 \x01(\x09\x12\x0E\x0A\x06scheme\x18\x06 \x01(\x09\x12\x0D\x0A\x05query\x18\x07 \x01(\x09\x12(\x0A\x04time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0C\x0A\x04size\x18\x0A \x01(\x03\x12\x10\x0A\x08protocol\x18\x0B \x01(\x09\x12\x0E\x0A\x06reason\x18\x0C \x01(\x09\x127\x0A\x04auth\x18\x0D \x01(\x0B2).google.rpc.context.AttributeContext.Auth\x1A.\x0A\x0CHeadersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x81\x02\x0A\x08Response\x12\x0C\x0A\x04code\x18\x01 \x01(\x03\x12\x0C\x0A\x04size\x18\x02 \x01(\x03\x12K\x0A\x07headers\x18\x03 \x03(\x0B2:.google.rpc.context.AttributeContext.Response.HeadersEntry\x12(\x0A\x04time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x122\x0A\x0Fbackend_latency\x18\x05 \x01(\x0B2\x19.google.protobuf.Duration\x1A.\x0A\x0CHeadersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x90\x04\x0A\x08Resource\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12\x0C\x0A\x04type\x18\x03 \x01(\x09\x12I\x0A\x06labels\x18\x04 \x03(\x0B29.google.rpc.context.AttributeContext.Resource.LabelsEntry\x12\x0B\x0A\x03uid\x18\x05 \x01(\x09\x12S\x0A\x0Bannotations\x18\x06 \x03(\x0B2>.google.rpc.context.AttributeContext.Resource.AnnotationsEntry\x12\x14\x0A\x0Cdisplay_name\x18\x07 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bdelete_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0C\x0A\x04etag\x18\x0B \x01(\x09\x12\x10\x0A\x08location\x18\x0C \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A2\x0A\x10AnnotationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x8B\x01\x0A\x16com.google.rpc.contextB\x15AttributeContextProtoP\x01ZUgoogle.golang.org/genproto/googleapis/rpc/context/attribute_context;attribute_context\xF8\x01\x01b\x06proto3" + "\x0A\xC8\x12\x0A*google/rpc/context/attribute_context.proto\x12\x12google.rpc.context\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x93\x10\x0A\x10AttributeContext\x129\x0A\x06origin\x18\x07 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x129\x0A\x06source\x18\x01 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x12>\x0A\x0Bdestination\x18\x02 \x01(\x0B2).google.rpc.context.AttributeContext.Peer\x12=\x0A\x07request\x18\x03 \x01(\x0B2,.google.rpc.context.AttributeContext.Request\x12?\x0A\x08response\x18\x04 \x01(\x0B2-.google.rpc.context.AttributeContext.Response\x12?\x0A\x08resource\x18\x05 \x01(\x0B2-.google.rpc.context.AttributeContext.Resource\x125\x0A\x03api\x18\x06 \x01(\x0B2(.google.rpc.context.AttributeContext.Api\x12(\x0A\x0Aextensions\x18\x08 \x03(\x0B2\x14.google.protobuf.Any\x1A\xBE\x01\x0A\x04Peer\x12\x0A\x0A\x02ip\x18\x01 \x01(\x09\x12\x0C\x0A\x04port\x18\x02 \x01(\x03\x12E\x0A\x06labels\x18\x06 \x03(\x0B25.google.rpc.context.AttributeContext.Peer.LabelsEntry\x12\x11\x0A\x09principal\x18\x07 \x01(\x09\x12\x13\x0A\x0Bregion_code\x18\x08 \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1AL\x0A\x03Api\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x12\x11\x0A\x09operation\x18\x02 \x01(\x09\x12\x10\x0A\x08protocol\x18\x03 \x01(\x09\x12\x0F\x0A\x07version\x18\x04 \x01(\x09\x1A\x7F\x0A\x04Auth\x12\x11\x0A\x09principal\x18\x01 \x01(\x09\x12\x11\x0A\x09audiences\x18\x02 \x03(\x09\x12\x11\x0A\x09presenter\x18\x03 \x01(\x09\x12'\x0A\x06claims\x18\x04 \x01(\x0B2\x17.google.protobuf.Struct\x12\x15\x0A\x0Daccess_levels\x18\x05 \x03(\x09\x1A\xFF\x02\x0A\x07Request\x12\x0A\x0A\x02id\x18\x01 \x01(\x09\x12\x0E\x0A\x06method\x18\x02 \x01(\x09\x12J\x0A\x07headers\x18\x03 \x03(\x0B29.google.rpc.context.AttributeContext.Request.HeadersEntry\x12\x0C\x0A\x04path\x18\x04 \x01(\x09\x12\x0C\x0A\x04host\x18\x05 \x01(\x09\x12\x0E\x0A\x06scheme\x18\x06 \x01(\x09\x12\x0D\x0A\x05query\x18\x07 \x01(\x09\x12(\x0A\x04time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0C\x0A\x04size\x18\x0A \x01(\x03\x12\x10\x0A\x08protocol\x18\x0B \x01(\x09\x12\x0E\x0A\x06reason\x18\x0C \x01(\x09\x127\x0A\x04auth\x18\x0D \x01(\x0B2).google.rpc.context.AttributeContext.Auth\x12\x0E\x0A\x06origin\x18\x0E \x01(\x09\x1A.\x0A\x0CHeadersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x81\x02\x0A\x08Response\x12\x0C\x0A\x04code\x18\x01 \x01(\x03\x12\x0C\x0A\x04size\x18\x02 \x01(\x03\x12K\x0A\x07headers\x18\x03 \x03(\x0B2:.google.rpc.context.AttributeContext.Response.HeadersEntry\x12(\x0A\x04time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x122\x0A\x0Fbackend_latency\x18\x05 \x01(\x0B2\x19.google.protobuf.Duration\x1A.\x0A\x0CHeadersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\x90\x04\x0A\x08Resource\x12\x0F\x0A\x07service\x18\x01 \x01(\x09\x12\x0C\x0A\x04name\x18\x02 \x01(\x09\x12\x0C\x0A\x04type\x18\x03 \x01(\x09\x12I\x0A\x06labels\x18\x04 \x03(\x0B29.google.rpc.context.AttributeContext.Resource.LabelsEntry\x12\x0B\x0A\x03uid\x18\x05 \x01(\x09\x12S\x0A\x0Bannotations\x18\x06 \x03(\x0B2>.google.rpc.context.AttributeContext.Resource.AnnotationsEntry\x12\x14\x0A\x0Cdisplay_name\x18\x07 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x09 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bdelete_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x0C\x0A\x04etag\x18\x0B \x01(\x09\x12\x10\x0A\x08location\x18\x0C \x01(\x09\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A2\x0A\x10AnnotationsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x88\x01\x0A\x16com.google.rpc.contextB\x15AttributeContextProtoP\x01ZUgoogle.golang.org/genproto/googleapis/rpc/context/attribute_context;attribute_contextb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/metadata/Rpc/Status.php b/CommonProtos/metadata/Rpc/Status.php index 6122a270663..c81dc85f8e6 100644 --- a/CommonProtos/metadata/Rpc/Status.php +++ b/CommonProtos/metadata/Rpc/Status.php @@ -16,7 +16,7 @@ public static function initOnce() { } \GPBMetadata\Google\Protobuf\Any::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xE0\x01\x0A\x17google/rpc/status.proto\x12\x0Agoogle.rpc\"N\x0A\x06Status\x12\x0C\x0A\x04code\x18\x01 \x01(\x05\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\x12%\x0A\x07details\x18\x03 \x03(\x0B2\x14.google.protobuf.AnyBa\x0A\x0Ecom.google.rpcB\x0BStatusProtoP\x01Z7google.golang.org/genproto/googleapis/rpc/status;status\xF8\x01\x01\xA2\x02\x03RPCb\x06proto3" + "\x0A\xDD\x01\x0A\x17google/rpc/status.proto\x12\x0Agoogle.rpc\"N\x0A\x06Status\x12\x0C\x0A\x04code\x18\x01 \x01(\x05\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\x12%\x0A\x07details\x18\x03 \x03(\x0B2\x14.google.protobuf.AnyB^\x0A\x0Ecom.google.rpcB\x0BStatusProtoP\x01Z7google.golang.org/genproto/googleapis/rpc/status;status\xA2\x02\x03RPCb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/src/Api/CommonLanguageSettings.php b/CommonProtos/src/Api/CommonLanguageSettings.php index 2a3ad65deaf..81ac5835fff 100644 --- a/CommonProtos/src/Api/CommonLanguageSettings.php +++ b/CommonProtos/src/Api/CommonLanguageSettings.php @@ -31,6 +31,7 @@ class CommonLanguageSettings extends \Google\Protobuf\Internal\Message private $destinations; /** * Configuration for which RPCs should be generated in the GAPIC client. + * Note: This field should not be used in most cases. * * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; */ @@ -49,6 +50,7 @@ class CommonLanguageSettings extends \Google\Protobuf\Internal\Message * The destination where API teams want this client library to be published. * @type \Google\Api\SelectiveGapicGeneration $selective_gapic_generation * Configuration for which RPCs should be generated in the GAPIC client. + * Note: This field should not be used in most cases. * } */ public function __construct($data = NULL) { @@ -118,6 +120,7 @@ public function setDestinations($var) /** * Configuration for which RPCs should be generated in the GAPIC client. + * Note: This field should not be used in most cases. * * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; * @return \Google\Api\SelectiveGapicGeneration|null @@ -139,6 +142,7 @@ public function clearSelectiveGapicGeneration() /** * Configuration for which RPCs should be generated in the GAPIC client. + * Note: This field should not be used in most cases. * * Generated from protobuf field .google.api.SelectiveGapicGeneration selective_gapic_generation = 3; * @param \Google\Api\SelectiveGapicGeneration $var diff --git a/CommonProtos/src/Api/SelectiveGapicGeneration.php b/CommonProtos/src/Api/SelectiveGapicGeneration.php index a6cbea6126c..b45b635066d 100644 --- a/CommonProtos/src/Api/SelectiveGapicGeneration.php +++ b/CommonProtos/src/Api/SelectiveGapicGeneration.php @@ -11,6 +11,7 @@ /** * This message is used to configure the generation of a subset of the RPCs in * a service for client libraries. + * Note: This feature should not be used in most cases. * * Generated from protobuf message google.api.SelectiveGapicGeneration */ diff --git a/CommonProtos/src/Rpc/BadRequest/FieldViolation.php b/CommonProtos/src/Rpc/BadRequest/FieldViolation.php index 7c1dde3c12c..cabb624a80e 100644 --- a/CommonProtos/src/Rpc/BadRequest/FieldViolation.php +++ b/CommonProtos/src/Rpc/BadRequest/FieldViolation.php @@ -35,15 +35,15 @@ class FieldViolation extends \Google\Protobuf\Internal\Message * } * In this example, in proto `field` could take one of the following values: * * `full_name` for a violation in the `full_name` value - * * `email_addresses[1].email` for a violation in the `email` field of the + * * `email_addresses[0].email` for a violation in the `email` field of the * first `email_addresses` message - * * `email_addresses[3].type[2]` for a violation in the second `type` + * * `email_addresses[2].type[1]` for a violation in the second `type` * value in the third `email_addresses` message. * In JSON, the same values are represented as: * * `fullName` for a violation in the `fullName` value - * * `emailAddresses[1].email` for a violation in the `email` field of the + * * `emailAddresses[0].email` for a violation in the `email` field of the * first `emailAddresses` message - * * `emailAddresses[3].type[2]` for a violation in the second `type` + * * `emailAddresses[2].type[1]` for a violation in the second `type` * value in the third `emailAddresses` message. * * Generated from protobuf field string field = 1; @@ -100,15 +100,15 @@ class FieldViolation extends \Google\Protobuf\Internal\Message * } * In this example, in proto `field` could take one of the following values: * * `full_name` for a violation in the `full_name` value - * * `email_addresses[1].email` for a violation in the `email` field of the + * * `email_addresses[0].email` for a violation in the `email` field of the * first `email_addresses` message - * * `email_addresses[3].type[2]` for a violation in the second `type` + * * `email_addresses[2].type[1]` for a violation in the second `type` * value in the third `email_addresses` message. * In JSON, the same values are represented as: * * `fullName` for a violation in the `fullName` value - * * `emailAddresses[1].email` for a violation in the `email` field of the + * * `emailAddresses[0].email` for a violation in the `email` field of the * first `emailAddresses` message - * * `emailAddresses[3].type[2]` for a violation in the second `type` + * * `emailAddresses[2].type[1]` for a violation in the second `type` * value in the third `emailAddresses` message. * @type string $description * A description of why the request element is bad. @@ -149,15 +149,15 @@ public function __construct($data = NULL) { * } * In this example, in proto `field` could take one of the following values: * * `full_name` for a violation in the `full_name` value - * * `email_addresses[1].email` for a violation in the `email` field of the + * * `email_addresses[0].email` for a violation in the `email` field of the * first `email_addresses` message - * * `email_addresses[3].type[2]` for a violation in the second `type` + * * `email_addresses[2].type[1]` for a violation in the second `type` * value in the third `email_addresses` message. * In JSON, the same values are represented as: * * `fullName` for a violation in the `fullName` value - * * `emailAddresses[1].email` for a violation in the `email` field of the + * * `emailAddresses[0].email` for a violation in the `email` field of the * first `emailAddresses` message - * * `emailAddresses[3].type[2]` for a violation in the second `type` + * * `emailAddresses[2].type[1]` for a violation in the second `type` * value in the third `emailAddresses` message. * * Generated from protobuf field string field = 1; @@ -188,15 +188,15 @@ public function getField() * } * In this example, in proto `field` could take one of the following values: * * `full_name` for a violation in the `full_name` value - * * `email_addresses[1].email` for a violation in the `email` field of the + * * `email_addresses[0].email` for a violation in the `email` field of the * first `email_addresses` message - * * `email_addresses[3].type[2]` for a violation in the second `type` + * * `email_addresses[2].type[1]` for a violation in the second `type` * value in the third `email_addresses` message. * In JSON, the same values are represented as: * * `fullName` for a violation in the `fullName` value - * * `emailAddresses[1].email` for a violation in the `email` field of the + * * `emailAddresses[0].email` for a violation in the `email` field of the * first `emailAddresses` message - * * `emailAddresses[3].type[2]` for a violation in the second `type` + * * `emailAddresses[2].type[1]` for a violation in the second `type` * value in the third `emailAddresses` message. * * Generated from protobuf field string field = 1; diff --git a/CommonProtos/src/Rpc/Context/AttributeContext/Request.php b/CommonProtos/src/Rpc/Context/AttributeContext/Request.php index 9d0a1ed62e8..cb5338fbd2b 100644 --- a/CommonProtos/src/Rpc/Context/AttributeContext/Request.php +++ b/CommonProtos/src/Rpc/Context/AttributeContext/Request.php @@ -100,6 +100,15 @@ class Request extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; */ protected $auth = null; + /** + * The values from Origin header from the HTTP request, such as + * "https://console.cloud.google.com". Modern browsers can only have one + * origin. Special browsers and/or HTTP clients may require multiple + * origins. + * + * Generated from protobuf field string origin = 14; + */ + protected $origin = ''; /** * Constructor. @@ -142,6 +151,11 @@ class Request extends \Google\Protobuf\Internal\Message * @type \Google\Rpc\Context\AttributeContext\Auth $auth * The request authentication. May be absent for unauthenticated requests. * Derived from the HTTP request `Authorization` header or equivalent. + * @type string $origin + * The values from Origin header from the HTTP request, such as + * "https://console.cloud.google.com". Modern browsers can only have one + * origin. Special browsers and/or HTTP clients may require multiple + * origins. * } */ public function __construct($data = NULL) { @@ -503,5 +517,37 @@ public function setAuth($var) return $this; } + /** + * The values from Origin header from the HTTP request, such as + * "https://console.cloud.google.com". Modern browsers can only have one + * origin. Special browsers and/or HTTP clients may require multiple + * origins. + * + * Generated from protobuf field string origin = 14; + * @return string + */ + public function getOrigin() + { + return $this->origin; + } + + /** + * The values from Origin header from the HTTP request, such as + * "https://console.cloud.google.com". Modern browsers can only have one + * origin. Special browsers and/or HTTP clients may require multiple + * origins. + * + * Generated from protobuf field string origin = 14; + * @param string $var + * @return $this + */ + public function setOrigin($var) + { + GPBUtil::checkString($var, True); + $this->origin = $var; + + return $this; + } + }