Skip to content

Commit

Permalink
docs: fix docstring formatting
Browse files Browse the repository at this point in the history
Committer: @parthea
PiperOrigin-RevId: 405938813
  • Loading branch information
Google APIs authored and copybara-github committed Oct 27, 2021
1 parent 2781c73 commit 3792423
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 36 deletions.
7 changes: 4 additions & 3 deletions google/cloud/retail/v2/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ message FulfillmentInfo {
// [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2.FulfillmentInfo.type].
//
// A maximum of 3000 values are allowed. Each value must be a string with a
// length limit of 30 characters, matching the pattern [a-zA-Z0-9_-]+, such as
// "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned.
// length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such
// as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
// returned.
repeated string place_ids = 2;
}

Expand Down Expand Up @@ -414,7 +415,7 @@ message Promotion {
// ID of the promotion. For example, "free gift".
//
// The value value must be a UTF-8 encoded string with a length limit of 128
// characters, and match the pattern: [a-zA-Z][a-zA-Z0-9_]*. For example,
// characters, and match the pattern: `[a-zA-Z][a-zA-Z0-9_]*`. For example,
// id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is
// returned.
//
Expand Down
10 changes: 5 additions & 5 deletions google/cloud/retail/v2/completion_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,18 @@ message CompleteQueryRequest {

// The device type context for completion suggestions.
// It is useful to apply different suggestions on different device types, e.g.
// DESKTOP, MOBILE. If it is empty, the suggestions are across all device
// `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device
// types.
//
// Supported formats:
//
// * UNKNOWN_DEVICE_TYPE
// * `UNKNOWN_DEVICE_TYPE`
//
// * DESKTOP
// * `DESKTOP`
//
// * MOBILE
// * `MOBILE`
//
// * A customized string starts with OTHER_, e.g. OTHER_IPHONE.
// * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
string device_type = 4;

// Determines which dataset to use for fetching completion. "user-data" will
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/retail/v2/import_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ message ImportProductsRequest {
// Unique identifier provided by client, within the ancestor
// dataset scope. Ensures idempotency and used for request deduplication.
// Server-generated if unspecified. Up to 128 characters long and must match
// the pattern: "[a-zA-Z0-9_]+". This is returned as [Operation.name][] in
// the pattern: `[a-zA-Z0-9_]+`. This is returned as [Operation.name][] in
// [ImportMetadata][google.cloud.retail.v2.ImportMetadata].
//
// Only supported when
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/retail/v2/product.proto
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ message Product {
// * The key must be a UTF-8 encoded string with a length limit of 128
// characters.
// * For indexable attribute, the key must match the pattern:
// [a-zA-Z0-9][a-zA-Z0-9_]*. For example, key0LikeThis or KEY_1_LIKE_THIS.
// `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, key0LikeThis or KEY_1_LIKE_THIS.
map<string, CustomAttribute> attributes = 12;

// Custom tags associated with the product.
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/retail/v2/product_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ message AddFulfillmentPlacesRequest {
//
// At least 1 value is required, and a maximum of 2000 values are allowed.
// Each value must be a string with a length limit of 10 characters, matching
// the pattern [a-zA-Z0-9_-]+, such as "store1" or "REGION-2". Otherwise, an
// the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an
// INVALID_ARGUMENT error is returned.
//
// If the total number of place IDs exceeds 2000 for this
Expand Down Expand Up @@ -611,7 +611,7 @@ message RemoveFulfillmentPlacesRequest {
//
// At least 1 value is required, and a maximum of 2000 values are allowed.
// Each value must be a string with a length limit of 10 characters, matching
// the pattern [a-zA-Z0-9_-]+, such as "store1" or "REGION-2". Otherwise, an
// the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an
// INVALID_ARGUMENT error is returned.
repeated string place_ids = 3 [(google.api.field_behavior) = REQUIRED];

Expand Down
7 changes: 4 additions & 3 deletions google/cloud/retail/v2alpha/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ message FulfillmentInfo {
// [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2alpha.FulfillmentInfo.type].
//
// A maximum of 3000 values are allowed. Each value must be a string with a
// length limit of 30 characters, matching the pattern [a-zA-Z0-9_-]+, such as
// "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned.
// length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such
// as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
// returned.
repeated string place_ids = 2;
}

Expand Down Expand Up @@ -423,7 +424,7 @@ message Promotion {
// ID of the promotion. For example, "free gift".
//
// The value value must be a UTF-8 encoded string with a length limit of 128
// characters, and match the pattern: [a-zA-Z][a-zA-Z0-9_]*. For example,
// characters, and match the pattern: `[a-zA-Z][a-zA-Z0-9_]*`. For example,
// id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is
// returned.
//
Expand Down
10 changes: 5 additions & 5 deletions google/cloud/retail/v2alpha/completion_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,18 @@ message CompleteQueryRequest {

// The device type context for completion suggestions.
// It is useful to apply different suggestions on different device types, e.g.
// DESKTOP, MOBILE. If it is empty, the suggestions are across all device
// `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device
// types.
//
// Supported formats:
//
// * UNKNOWN_DEVICE_TYPE
// * `UNKNOWN_DEVICE_TYPE`
//
// * DESKTOP
// * `DESKTOP`
//
// * MOBILE
// * `MOBILE`
//
// * A customized string starts with OTHER_, e.g. OTHER_IPHONE.
// * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
string device_type = 4;

// Determines which dataset to use for fetching completion. "user-data" will
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/retail/v2alpha/import_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ message ImportProductsRequest {
// Unique identifier provided by client, within the ancestor
// dataset scope. Ensures idempotency and used for request deduplication.
// Server-generated if unspecified. Up to 128 characters long and must match
// the pattern: "[a-zA-Z0-9_]+". This is returned as [Operation.name][] in
// the pattern: `[a-zA-Z0-9_]+`. This is returned as [Operation.name][] in
// [ImportMetadata][google.cloud.retail.v2alpha.ImportMetadata].
//
// Only supported when
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/retail/v2alpha/product.proto
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ message Product {
// * The key must be a UTF-8 encoded string with a length limit of 128
// characters.
// * For indexable attribute, the key must match the pattern:
// [a-zA-Z0-9][a-zA-Z0-9_]*. For example, key0LikeThis or KEY_1_LIKE_THIS.
// `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, key0LikeThis or KEY_1_LIKE_THIS.
map<string, CustomAttribute> attributes = 12;

// Custom tags associated with the product.
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/retail/v2alpha/product_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ message AddFulfillmentPlacesRequest {
//
// At least 1 value is required, and a maximum of 2000 values are allowed.
// Each value must be a string with a length limit of 10 characters, matching
// the pattern [a-zA-Z0-9_-]+, such as "store1" or "REGION-2". Otherwise, an
// the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an
// INVALID_ARGUMENT error is returned.
//
// If the total number of place IDs exceeds 2000 for this
Expand Down Expand Up @@ -640,7 +640,7 @@ message RemoveFulfillmentPlacesRequest {
//
// At least 1 value is required, and a maximum of 2000 values are allowed.
// Each value must be a string with a length limit of 10 characters, matching
// the pattern [a-zA-Z0-9_-]+, such as "store1" or "REGION-2". Otherwise, an
// the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an
// INVALID_ARGUMENT error is returned.
repeated string place_ids = 3 [(google.api.field_behavior) = REQUIRED];

Expand Down
7 changes: 4 additions & 3 deletions google/cloud/retail/v2beta/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,9 @@ message FulfillmentInfo {
// [FulfillmentInfo.type.same-day-delivery][google.cloud.retail.v2beta.FulfillmentInfo.type].
//
// A maximum of 3000 values are allowed. Each value must be a string with a
// length limit of 30 characters, matching the pattern [a-zA-Z0-9_-]+, such as
// "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned.
// length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such
// as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
// returned.
repeated string place_ids = 2;
}

Expand Down Expand Up @@ -422,7 +423,7 @@ message Promotion {
// ID of the promotion. For example, "free gift".
//
// The value value must be a UTF-8 encoded string with a length limit of 128
// characters, and match the pattern: [a-zA-Z][a-zA-Z0-9_]*. For example,
// characters, and match the pattern: `[a-zA-Z][a-zA-Z0-9_]*`. For example,
// id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is
// returned.
//
Expand Down
10 changes: 5 additions & 5 deletions google/cloud/retail/v2beta/completion_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,18 @@ message CompleteQueryRequest {

// The device type context for completion suggestions.
// It is useful to apply different suggestions on different device types, e.g.
// DESKTOP, MOBILE. If it is empty, the suggestions are across all device
// `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device
// types.
//
// Supported formats:
//
// * UNKNOWN_DEVICE_TYPE
// * `UNKNOWN_DEVICE_TYPE`
//
// * DESKTOP
// * `DESKTOP`
//
// * MOBILE
// * `MOBILE`
//
// * A customized string starts with OTHER_, e.g. OTHER_IPHONE.
// * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
string device_type = 4;

// Determines which dataset to use for fetching completion. "user-data" will
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/retail/v2beta/import_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ message ImportProductsRequest {
// Unique identifier provided by client, within the ancestor
// dataset scope. Ensures idempotency and used for request deduplication.
// Server-generated if unspecified. Up to 128 characters long and must match
// the pattern: "[a-zA-Z0-9_]+". This is returned as [Operation.name][] in
// the pattern: `[a-zA-Z0-9_]+`. This is returned as [Operation.name][] in
// [ImportMetadata][google.cloud.retail.v2beta.ImportMetadata].
//
// Only supported when
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/retail/v2beta/product.proto
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ message Product {
// * The key must be a UTF-8 encoded string with a length limit of 128
// characters.
// * For indexable attribute, the key must match the pattern:
// [a-zA-Z0-9][a-zA-Z0-9_]*. For example, key0LikeThis or KEY_1_LIKE_THIS.
// `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, key0LikeThis or KEY_1_LIKE_THIS.
map<string, CustomAttribute> attributes = 12;

// Custom tags associated with the product.
Expand Down
4 changes: 2 additions & 2 deletions google/cloud/retail/v2beta/product_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ message AddFulfillmentPlacesRequest {
//
// At least 1 value is required, and a maximum of 2000 values are allowed.
// Each value must be a string with a length limit of 10 characters, matching
// the pattern [a-zA-Z0-9_-]+, such as "store1" or "REGION-2". Otherwise, an
// the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an
// INVALID_ARGUMENT error is returned.
//
// If the total number of place IDs exceeds 2000 for this
Expand Down Expand Up @@ -616,7 +616,7 @@ message RemoveFulfillmentPlacesRequest {
//
// At least 1 value is required, and a maximum of 2000 values are allowed.
// Each value must be a string with a length limit of 10 characters, matching
// the pattern [a-zA-Z0-9_-]+, such as "store1" or "REGION-2". Otherwise, an
// the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an
// INVALID_ARGUMENT error is returned.
repeated string place_ids = 3 [(google.api.field_behavior) = REQUIRED];

Expand Down

0 comments on commit 3792423

Please sign in to comment.