Skip to content

Commit

Permalink
Move protos to src folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
meztez committed Dec 11, 2023
1 parent 1199c68 commit 63e44c0
Show file tree
Hide file tree
Showing 16 changed files with 45 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: bigrquerystorage
Type: Package
Title: R Client for BigQuery Storage API
Version: 1.99.9000
Version: 2.0.0
Authors@R: c(
person("Bruno", "Tremblay", role = c("aut", "cre"), email = "openr@neoxone.com"),
person(family = "Google LLC", role = c("cph", "fnd")))
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ esac

# Compile proto files
srcdir="$PWD/src"
cd ./inst/protos
cd ./src/protos
protoc --experimental_allow_proto3_optional --cpp_out=${srcdir} ${PROTO_FILES}
protoc --plugin=protoc-gen-grpc=$(which grpc_cpp_plugin) --grpc_out=${srcdir} google/cloud/bigquery/storage/v1/storage.proto
if [ $? -ne 0 ]; then
Expand Down
3 changes: 2 additions & 1 deletion scripts/protos.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#* Get latest version required proto from googleapis
unlink("./scripts/googleapis", recursive = TRUE)
system("git clone --depth 1 https://github.com/googleapis/googleapis ./scripts/googleapis")

fpath <- grep("bigquery/storage/v1/", dir("./scripts/googleapis", "storage.proto$", full.names = TRUE, recursive = TRUE), value = TRUE)
Expand All @@ -15,7 +16,7 @@ import_path <- function(fpath) {
}

fpath <- c(fpath, import_path(fpath))
inst_path <- gsub(".*scripts/googleapis/", "./inst/protos/", fpath)
inst_path <- gsub(".*scripts/googleapis/", "./src/protos/", fpath)
for (path in inst_path) {
if (!dir.exists(dirname(path))) {
dir.create(dirname(path), recursive = TRUE, showWarnings = FALSE)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,19 @@ message MethodSettings {
// total_poll_timeout:
// seconds: 54000 # 90 minutes
LongRunning long_running = 2;

// List of top-level fields of the request message, that should be
// automatically populated by the client libraries based on their
// (google.api.field_info).format. Currently supported format: UUID4.
//
// Example of a YAML configuration:
//
// publishing:
// method_settings:
// - selector: google.example.v1.ExampleService.CreateExample
// auto_populated_fields:
// - request_id
repeated string auto_populated_fields = 3;
}

// The organization for which the client libraries are being published.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,18 @@ enum FieldBehavior {
// a non-empty value will be returned. The user will not be aware of what
// non-empty value to expect.
NON_EMPTY_DEFAULT = 7;

// Denotes that the field in a resource (a message annotated with
// google.api.resource) is used in the resource name to uniquely identify the
// resource. For AIP-compliant APIs, this should only be applied to the
// `name` field on the resource.
//
// This behavior should not be applied to references to other resources within
// the message.
//
// The identifier field of resources often have different field behavior
// depending on the request it is embedded in (e.g. for Create methods name
// is optional and unused, while for Update methods it is required). Instead
// of method-specific annotations, only `IDENTIFIER` is required.
IDENTIFIER = 8;
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,18 @@ message AppendRowsRequest {
// Currently, field name can only be top-level column name, can't be a struct
// field path like 'foo.bar'.
map<string, MissingValueInterpretation> missing_value_interpretations = 7;

// Optional. Default missing value interpretation for all columns in the
// table. When a value is specified on an `AppendRowsRequest`, it is applied
// to all requests on the connection from that point forward, until a
// subsequent `AppendRowsRequest` sets it to a different value.
// `missing_value_interpretation` can override
// `default_missing_value_interpretation`. For example, if you want to write
// `NULL` instead of using default values for some columns, you can set
// `default_missing_value_interpretation` to `DEFAULT_VALUE` and at the same
// time, set `missing_value_interpretations` to `NULL_VALUE` on those columns.
MissingValueInterpretation default_missing_value_interpretation = 8
[(google.api.field_behavior) = OPTIONAL];
}

// Response message for `AppendRows`.
Expand Down Expand Up @@ -705,7 +717,8 @@ message StorageError {
// There is an encryption error while using customer-managed encryption key.
CMEK_ENCRYPTION_ERROR = 12;

// Key Management Service (KMS) service returned an error.
// Key Management Service (KMS) service returned an error, which can be
// retried.
KMS_SERVICE_ERROR = 13;

// Permission denied while using customer-managed encryption key.
Expand Down
File renamed without changes.

0 comments on commit 63e44c0

Please sign in to comment.