+ * Exchange a JWT signed by third party identity provider to an OAuth 2.0 + * access token + *+ */ + public void generateIdentityBindingAccessToken( + com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse> + responseObserver) { + asyncUnimplementedUnaryCall( + getGenerateIdentityBindingAccessTokenMethodHelper(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -386,6 +471,14 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.iam.credentials.v1.SignJwtRequest, com.google.cloud.iam.credentials.v1.SignJwtResponse>( this, METHODID_SIGN_JWT))) + .addMethod( + getGenerateIdentityBindingAccessTokenMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest, + com.google.cloud.iam.credentials.v1 + .GenerateIdentityBindingAccessTokenResponse>( + this, METHODID_GENERATE_IDENTITY_BINDING_ACCESS_TOKEN))) .build(); } } @@ -486,6 +579,26 @@ public void signJwt( request, responseObserver); } + + /** + * + * + *
+ * Exchange a JWT signed by third party identity provider to an OAuth 2.0 + * access token + *+ */ + public void generateIdentityBindingAccessToken( + com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse> + responseObserver) { + asyncUnaryCall( + getChannel() + .newCall(getGenerateIdentityBindingAccessTokenMethodHelper(), getCallOptions()), + request, + responseObserver); + } } /** @@ -567,6 +680,24 @@ public com.google.cloud.iam.credentials.v1.SignJwtResponse signJwt( com.google.cloud.iam.credentials.v1.SignJwtRequest request) { return blockingUnaryCall(getChannel(), getSignJwtMethodHelper(), getCallOptions(), request); } + + /** + * + * + *
+ * Exchange a JWT signed by third party identity provider to an OAuth 2.0 + * access token + *+ */ + public com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse + generateIdentityBindingAccessToken( + com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest request) { + return blockingUnaryCall( + getChannel(), + getGenerateIdentityBindingAccessTokenMethodHelper(), + getCallOptions(), + request); + } } /** @@ -655,12 +786,31 @@ protected IAMCredentialsFutureStub build( return futureUnaryCall( getChannel().newCall(getSignJwtMethodHelper(), getCallOptions()), request); } + + /** + * + * + *
+ * Exchange a JWT signed by third party identity provider to an OAuth 2.0 + * access token + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse> + generateIdentityBindingAccessToken( + com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest request) { + return futureUnaryCall( + getChannel() + .newCall(getGenerateIdentityBindingAccessTokenMethodHelper(), getCallOptions()), + request); + } } private static final int METHODID_GENERATE_ACCESS_TOKEN = 0; private static final int METHODID_GENERATE_ID_TOKEN = 1; private static final int METHODID_SIGN_BLOB = 2; private static final int METHODID_SIGN_JWT = 3; + private static final int METHODID_GENERATE_IDENTITY_BINDING_ACCESS_TOKEN = 4; private static final class MethodHandlers
+ * The resource name of the service account for which the credentials + * are requested, in the following format: + * `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The resource name of the service account for which the credentials + * are requested, in the following format: + * `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SCOPE_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList scope_;
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ public com.google.protobuf.ProtocolStringList getScopeList() {
+ return scope_;
+ }
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ public int getScopeCount() {
+ return scope_.size();
+ }
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ public java.lang.String getScope(int index) {
+ return scope_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ public com.google.protobuf.ByteString getScopeBytes(int index) {
+ return scope_.getByteString(index);
+ }
+
+ public static final int JWT_FIELD_NUMBER = 3;
+ private volatile java.lang.Object jwt_;
+ /**
+ *
+ *
+ * + * Required. Input token. + * Must be in JWT format according to + * RFC7523 (https://tools.ietf.org/html/rfc7523) + * and must have 'kid' field in the header. + * Supported signing algorithms: RS256 (RS512, ES256, ES512 coming soon). + * Mandatory payload fields (along the lines of RFC 7523, section 3): + * - iss: issuer of the token. Must provide a discovery document at + * $iss/.well-known/openid-configuration . The document needs to be + * formatted according to section 4.2 of the OpenID Connect Discovery + * 1.0 specification. + * - iat: Issue time in seconds since epoch. Must be in the past. + * - exp: Expiration time in seconds since epoch. Must be less than 48 hours + * after iat. We recommend to create tokens that last shorter than 6 + * hours to improve security unless business reasons mandate longer + * expiration times. Shorter token lifetimes are generally more secure + * since tokens that have been exfiltrated by attackers can be used for + * a shorter time. you can configure the maximum lifetime of the + * incoming token in the configuration of the mapper. + * The resulting Google token will expire within an hour or at "exp", + * whichever is earlier. + * - sub: JWT subject, identity asserted in the JWT. + * - aud: Configured in the mapper policy. By default the service account + * email. + * Claims from the incoming token can be transferred into the output token + * accoding to the mapper configuration. The outgoing claim size is limited. + * Outgoing claims size must be less than 4kB serialized as JSON without + * whitespace. + * Example header: + * { + * "alg": "RS256", + * "kid": "92a4265e14ab04d4d228a48d10d4ca31610936f8" + * } + * Example payload: + * { + * "iss": "https://accounts.google.com", + * "iat": 1517963104, + * "exp": 1517966704, + * "aud": "https://iamcredentials.googleapis.com/", + * "sub": "113475438248934895348", + * "my_claims": { + * "additional_claim": "value" + * } + * } + *+ * + *
string jwt = 3;
+ */
+ public java.lang.String getJwt() {
+ java.lang.Object ref = jwt_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ jwt_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Input token. + * Must be in JWT format according to + * RFC7523 (https://tools.ietf.org/html/rfc7523) + * and must have 'kid' field in the header. + * Supported signing algorithms: RS256 (RS512, ES256, ES512 coming soon). + * Mandatory payload fields (along the lines of RFC 7523, section 3): + * - iss: issuer of the token. Must provide a discovery document at + * $iss/.well-known/openid-configuration . The document needs to be + * formatted according to section 4.2 of the OpenID Connect Discovery + * 1.0 specification. + * - iat: Issue time in seconds since epoch. Must be in the past. + * - exp: Expiration time in seconds since epoch. Must be less than 48 hours + * after iat. We recommend to create tokens that last shorter than 6 + * hours to improve security unless business reasons mandate longer + * expiration times. Shorter token lifetimes are generally more secure + * since tokens that have been exfiltrated by attackers can be used for + * a shorter time. you can configure the maximum lifetime of the + * incoming token in the configuration of the mapper. + * The resulting Google token will expire within an hour or at "exp", + * whichever is earlier. + * - sub: JWT subject, identity asserted in the JWT. + * - aud: Configured in the mapper policy. By default the service account + * email. + * Claims from the incoming token can be transferred into the output token + * accoding to the mapper configuration. The outgoing claim size is limited. + * Outgoing claims size must be less than 4kB serialized as JSON without + * whitespace. + * Example header: + * { + * "alg": "RS256", + * "kid": "92a4265e14ab04d4d228a48d10d4ca31610936f8" + * } + * Example payload: + * { + * "iss": "https://accounts.google.com", + * "iat": 1517963104, + * "exp": 1517966704, + * "aud": "https://iamcredentials.googleapis.com/", + * "sub": "113475438248934895348", + * "my_claims": { + * "additional_claim": "value" + * } + * } + *+ * + *
string jwt = 3;
+ */
+ public com.google.protobuf.ByteString getJwtBytes() {
+ java.lang.Object ref = jwt_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ jwt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ for (int i = 0; i < scope_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scope_.getRaw(i));
+ }
+ if (!getJwtBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jwt_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < scope_.size(); i++) {
+ dataSize += computeStringSizeNoTag(scope_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getScopeList().size();
+ }
+ if (!getJwtBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jwt_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest other =
+ (com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest) obj;
+
+ boolean result = true;
+ result = result && getName().equals(other.getName());
+ result = result && getScopeList().equals(other.getScopeList());
+ result = result && getJwt().equals(other.getJwt());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ if (getScopeCount() > 0) {
+ hash = (37 * hash) + SCOPE_FIELD_NUMBER;
+ hash = (53 * hash) + getScopeList().hashCode();
+ }
+ hash = (37 * hash) + JWT_FIELD_NUMBER;
+ hash = (53 * hash) + getJwt().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /** Protobuf type {@code google.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest} */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ * The resource name of the service account for which the credentials + * are requested, in the following format: + * `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. + *+ * + *
string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The resource name of the service account for which the credentials + * are requested, in the following format: + * `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. + *+ * + *
string name = 1;
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The resource name of the service account for which the credentials + * are requested, in the following format: + * `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. + *+ * + *
string name = 1;
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The resource name of the service account for which the credentials + * are requested, in the following format: + * `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. + *+ * + *
string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The resource name of the service account for which the credentials + * are requested, in the following format: + * `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. + *+ * + *
string name = 1;
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList scope_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureScopeIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ scope_ = new com.google.protobuf.LazyStringArrayList(scope_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ public com.google.protobuf.ProtocolStringList getScopeList() {
+ return scope_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ public int getScopeCount() {
+ return scope_.size();
+ }
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ public java.lang.String getScope(int index) {
+ return scope_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ public com.google.protobuf.ByteString getScopeBytes(int index) {
+ return scope_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ public Builder setScope(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureScopeIsMutable();
+ scope_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ public Builder addScope(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureScopeIsMutable();
+ scope_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ public Builder addAllScope(java.lang.Iterable+ * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ public Builder clearScope() {
+ scope_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ public Builder addScopeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureScopeIsMutable();
+ scope_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object jwt_ = "";
+ /**
+ *
+ *
+ * + * Required. Input token. + * Must be in JWT format according to + * RFC7523 (https://tools.ietf.org/html/rfc7523) + * and must have 'kid' field in the header. + * Supported signing algorithms: RS256 (RS512, ES256, ES512 coming soon). + * Mandatory payload fields (along the lines of RFC 7523, section 3): + * - iss: issuer of the token. Must provide a discovery document at + * $iss/.well-known/openid-configuration . The document needs to be + * formatted according to section 4.2 of the OpenID Connect Discovery + * 1.0 specification. + * - iat: Issue time in seconds since epoch. Must be in the past. + * - exp: Expiration time in seconds since epoch. Must be less than 48 hours + * after iat. We recommend to create tokens that last shorter than 6 + * hours to improve security unless business reasons mandate longer + * expiration times. Shorter token lifetimes are generally more secure + * since tokens that have been exfiltrated by attackers can be used for + * a shorter time. you can configure the maximum lifetime of the + * incoming token in the configuration of the mapper. + * The resulting Google token will expire within an hour or at "exp", + * whichever is earlier. + * - sub: JWT subject, identity asserted in the JWT. + * - aud: Configured in the mapper policy. By default the service account + * email. + * Claims from the incoming token can be transferred into the output token + * accoding to the mapper configuration. The outgoing claim size is limited. + * Outgoing claims size must be less than 4kB serialized as JSON without + * whitespace. + * Example header: + * { + * "alg": "RS256", + * "kid": "92a4265e14ab04d4d228a48d10d4ca31610936f8" + * } + * Example payload: + * { + * "iss": "https://accounts.google.com", + * "iat": 1517963104, + * "exp": 1517966704, + * "aud": "https://iamcredentials.googleapis.com/", + * "sub": "113475438248934895348", + * "my_claims": { + * "additional_claim": "value" + * } + * } + *+ * + *
string jwt = 3;
+ */
+ public java.lang.String getJwt() {
+ java.lang.Object ref = jwt_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ jwt_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Input token. + * Must be in JWT format according to + * RFC7523 (https://tools.ietf.org/html/rfc7523) + * and must have 'kid' field in the header. + * Supported signing algorithms: RS256 (RS512, ES256, ES512 coming soon). + * Mandatory payload fields (along the lines of RFC 7523, section 3): + * - iss: issuer of the token. Must provide a discovery document at + * $iss/.well-known/openid-configuration . The document needs to be + * formatted according to section 4.2 of the OpenID Connect Discovery + * 1.0 specification. + * - iat: Issue time in seconds since epoch. Must be in the past. + * - exp: Expiration time in seconds since epoch. Must be less than 48 hours + * after iat. We recommend to create tokens that last shorter than 6 + * hours to improve security unless business reasons mandate longer + * expiration times. Shorter token lifetimes are generally more secure + * since tokens that have been exfiltrated by attackers can be used for + * a shorter time. you can configure the maximum lifetime of the + * incoming token in the configuration of the mapper. + * The resulting Google token will expire within an hour or at "exp", + * whichever is earlier. + * - sub: JWT subject, identity asserted in the JWT. + * - aud: Configured in the mapper policy. By default the service account + * email. + * Claims from the incoming token can be transferred into the output token + * accoding to the mapper configuration. The outgoing claim size is limited. + * Outgoing claims size must be less than 4kB serialized as JSON without + * whitespace. + * Example header: + * { + * "alg": "RS256", + * "kid": "92a4265e14ab04d4d228a48d10d4ca31610936f8" + * } + * Example payload: + * { + * "iss": "https://accounts.google.com", + * "iat": 1517963104, + * "exp": 1517966704, + * "aud": "https://iamcredentials.googleapis.com/", + * "sub": "113475438248934895348", + * "my_claims": { + * "additional_claim": "value" + * } + * } + *+ * + *
string jwt = 3;
+ */
+ public com.google.protobuf.ByteString getJwtBytes() {
+ java.lang.Object ref = jwt_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ jwt_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Input token. + * Must be in JWT format according to + * RFC7523 (https://tools.ietf.org/html/rfc7523) + * and must have 'kid' field in the header. + * Supported signing algorithms: RS256 (RS512, ES256, ES512 coming soon). + * Mandatory payload fields (along the lines of RFC 7523, section 3): + * - iss: issuer of the token. Must provide a discovery document at + * $iss/.well-known/openid-configuration . The document needs to be + * formatted according to section 4.2 of the OpenID Connect Discovery + * 1.0 specification. + * - iat: Issue time in seconds since epoch. Must be in the past. + * - exp: Expiration time in seconds since epoch. Must be less than 48 hours + * after iat. We recommend to create tokens that last shorter than 6 + * hours to improve security unless business reasons mandate longer + * expiration times. Shorter token lifetimes are generally more secure + * since tokens that have been exfiltrated by attackers can be used for + * a shorter time. you can configure the maximum lifetime of the + * incoming token in the configuration of the mapper. + * The resulting Google token will expire within an hour or at "exp", + * whichever is earlier. + * - sub: JWT subject, identity asserted in the JWT. + * - aud: Configured in the mapper policy. By default the service account + * email. + * Claims from the incoming token can be transferred into the output token + * accoding to the mapper configuration. The outgoing claim size is limited. + * Outgoing claims size must be less than 4kB serialized as JSON without + * whitespace. + * Example header: + * { + * "alg": "RS256", + * "kid": "92a4265e14ab04d4d228a48d10d4ca31610936f8" + * } + * Example payload: + * { + * "iss": "https://accounts.google.com", + * "iat": 1517963104, + * "exp": 1517966704, + * "aud": "https://iamcredentials.googleapis.com/", + * "sub": "113475438248934895348", + * "my_claims": { + * "additional_claim": "value" + * } + * } + *+ * + *
string jwt = 3;
+ */
+ public Builder setJwt(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ jwt_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Input token. + * Must be in JWT format according to + * RFC7523 (https://tools.ietf.org/html/rfc7523) + * and must have 'kid' field in the header. + * Supported signing algorithms: RS256 (RS512, ES256, ES512 coming soon). + * Mandatory payload fields (along the lines of RFC 7523, section 3): + * - iss: issuer of the token. Must provide a discovery document at + * $iss/.well-known/openid-configuration . The document needs to be + * formatted according to section 4.2 of the OpenID Connect Discovery + * 1.0 specification. + * - iat: Issue time in seconds since epoch. Must be in the past. + * - exp: Expiration time in seconds since epoch. Must be less than 48 hours + * after iat. We recommend to create tokens that last shorter than 6 + * hours to improve security unless business reasons mandate longer + * expiration times. Shorter token lifetimes are generally more secure + * since tokens that have been exfiltrated by attackers can be used for + * a shorter time. you can configure the maximum lifetime of the + * incoming token in the configuration of the mapper. + * The resulting Google token will expire within an hour or at "exp", + * whichever is earlier. + * - sub: JWT subject, identity asserted in the JWT. + * - aud: Configured in the mapper policy. By default the service account + * email. + * Claims from the incoming token can be transferred into the output token + * accoding to the mapper configuration. The outgoing claim size is limited. + * Outgoing claims size must be less than 4kB serialized as JSON without + * whitespace. + * Example header: + * { + * "alg": "RS256", + * "kid": "92a4265e14ab04d4d228a48d10d4ca31610936f8" + * } + * Example payload: + * { + * "iss": "https://accounts.google.com", + * "iat": 1517963104, + * "exp": 1517966704, + * "aud": "https://iamcredentials.googleapis.com/", + * "sub": "113475438248934895348", + * "my_claims": { + * "additional_claim": "value" + * } + * } + *+ * + *
string jwt = 3;
+ */
+ public Builder clearJwt() {
+
+ jwt_ = getDefaultInstance().getJwt();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Input token. + * Must be in JWT format according to + * RFC7523 (https://tools.ietf.org/html/rfc7523) + * and must have 'kid' field in the header. + * Supported signing algorithms: RS256 (RS512, ES256, ES512 coming soon). + * Mandatory payload fields (along the lines of RFC 7523, section 3): + * - iss: issuer of the token. Must provide a discovery document at + * $iss/.well-known/openid-configuration . The document needs to be + * formatted according to section 4.2 of the OpenID Connect Discovery + * 1.0 specification. + * - iat: Issue time in seconds since epoch. Must be in the past. + * - exp: Expiration time in seconds since epoch. Must be less than 48 hours + * after iat. We recommend to create tokens that last shorter than 6 + * hours to improve security unless business reasons mandate longer + * expiration times. Shorter token lifetimes are generally more secure + * since tokens that have been exfiltrated by attackers can be used for + * a shorter time. you can configure the maximum lifetime of the + * incoming token in the configuration of the mapper. + * The resulting Google token will expire within an hour or at "exp", + * whichever is earlier. + * - sub: JWT subject, identity asserted in the JWT. + * - aud: Configured in the mapper policy. By default the service account + * email. + * Claims from the incoming token can be transferred into the output token + * accoding to the mapper configuration. The outgoing claim size is limited. + * Outgoing claims size must be less than 4kB serialized as JSON without + * whitespace. + * Example header: + * { + * "alg": "RS256", + * "kid": "92a4265e14ab04d4d228a48d10d4ca31610936f8" + * } + * Example payload: + * { + * "iss": "https://accounts.google.com", + * "iat": 1517963104, + * "exp": 1517966704, + * "aud": "https://iamcredentials.googleapis.com/", + * "sub": "113475438248934895348", + * "my_claims": { + * "additional_claim": "value" + * } + * } + *+ * + *
string jwt = 3;
+ */
+ public Builder setJwtBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ jwt_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest)
+ private static final com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest();
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The resource name of the service account for which the credentials + * are requested, in the following format: + * `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. + *+ * + *
string name = 1;
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * The resource name of the service account for which the credentials + * are requested, in the following format: + * `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ java.util.List+ * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ int getScopeCount();
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ java.lang.String getScope(int index);
+ /**
+ *
+ *
+ * + * Code to identify the scopes to be included in the OAuth 2.0 access token. + * See https://developers.google.com/identity/protocols/googlescopes for more + * information. + * At least one value required. + *+ * + *
repeated string scope = 2;
+ */
+ com.google.protobuf.ByteString getScopeBytes(int index);
+
+ /**
+ *
+ *
+ * + * Required. Input token. + * Must be in JWT format according to + * RFC7523 (https://tools.ietf.org/html/rfc7523) + * and must have 'kid' field in the header. + * Supported signing algorithms: RS256 (RS512, ES256, ES512 coming soon). + * Mandatory payload fields (along the lines of RFC 7523, section 3): + * - iss: issuer of the token. Must provide a discovery document at + * $iss/.well-known/openid-configuration . The document needs to be + * formatted according to section 4.2 of the OpenID Connect Discovery + * 1.0 specification. + * - iat: Issue time in seconds since epoch. Must be in the past. + * - exp: Expiration time in seconds since epoch. Must be less than 48 hours + * after iat. We recommend to create tokens that last shorter than 6 + * hours to improve security unless business reasons mandate longer + * expiration times. Shorter token lifetimes are generally more secure + * since tokens that have been exfiltrated by attackers can be used for + * a shorter time. you can configure the maximum lifetime of the + * incoming token in the configuration of the mapper. + * The resulting Google token will expire within an hour or at "exp", + * whichever is earlier. + * - sub: JWT subject, identity asserted in the JWT. + * - aud: Configured in the mapper policy. By default the service account + * email. + * Claims from the incoming token can be transferred into the output token + * accoding to the mapper configuration. The outgoing claim size is limited. + * Outgoing claims size must be less than 4kB serialized as JSON without + * whitespace. + * Example header: + * { + * "alg": "RS256", + * "kid": "92a4265e14ab04d4d228a48d10d4ca31610936f8" + * } + * Example payload: + * { + * "iss": "https://accounts.google.com", + * "iat": 1517963104, + * "exp": 1517966704, + * "aud": "https://iamcredentials.googleapis.com/", + * "sub": "113475438248934895348", + * "my_claims": { + * "additional_claim": "value" + * } + * } + *+ * + *
string jwt = 3;
+ */
+ java.lang.String getJwt();
+ /**
+ *
+ *
+ * + * Required. Input token. + * Must be in JWT format according to + * RFC7523 (https://tools.ietf.org/html/rfc7523) + * and must have 'kid' field in the header. + * Supported signing algorithms: RS256 (RS512, ES256, ES512 coming soon). + * Mandatory payload fields (along the lines of RFC 7523, section 3): + * - iss: issuer of the token. Must provide a discovery document at + * $iss/.well-known/openid-configuration . The document needs to be + * formatted according to section 4.2 of the OpenID Connect Discovery + * 1.0 specification. + * - iat: Issue time in seconds since epoch. Must be in the past. + * - exp: Expiration time in seconds since epoch. Must be less than 48 hours + * after iat. We recommend to create tokens that last shorter than 6 + * hours to improve security unless business reasons mandate longer + * expiration times. Shorter token lifetimes are generally more secure + * since tokens that have been exfiltrated by attackers can be used for + * a shorter time. you can configure the maximum lifetime of the + * incoming token in the configuration of the mapper. + * The resulting Google token will expire within an hour or at "exp", + * whichever is earlier. + * - sub: JWT subject, identity asserted in the JWT. + * - aud: Configured in the mapper policy. By default the service account + * email. + * Claims from the incoming token can be transferred into the output token + * accoding to the mapper configuration. The outgoing claim size is limited. + * Outgoing claims size must be less than 4kB serialized as JSON without + * whitespace. + * Example header: + * { + * "alg": "RS256", + * "kid": "92a4265e14ab04d4d228a48d10d4ca31610936f8" + * } + * Example payload: + * { + * "iss": "https://accounts.google.com", + * "iat": 1517963104, + * "exp": 1517966704, + * "aud": "https://iamcredentials.googleapis.com/", + * "sub": "113475438248934895348", + * "my_claims": { + * "additional_claim": "value" + * } + * } + *+ * + *
string jwt = 3;
+ */
+ com.google.protobuf.ByteString getJwtBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/GenerateIdentityBindingAccessTokenResponse.java b/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/GenerateIdentityBindingAccessTokenResponse.java
new file mode 100644
index 000000000000..bad691fb19aa
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/GenerateIdentityBindingAccessTokenResponse.java
@@ -0,0 +1,887 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/iam/credentials/v1/common.proto
+
+package com.google.cloud.iam.credentials.v1;
+
+/** Protobuf type {@code google.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse} */
+public final class GenerateIdentityBindingAccessTokenResponse
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse)
+ GenerateIdentityBindingAccessTokenResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GenerateIdentityBindingAccessTokenResponse.newBuilder() to construct.
+ private GenerateIdentityBindingAccessTokenResponse(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GenerateIdentityBindingAccessTokenResponse() {
+ accessToken_ = "";
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private GenerateIdentityBindingAccessTokenResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ accessToken_ = s;
+ break;
+ }
+ case 18:
+ {
+ com.google.protobuf.Timestamp.Builder subBuilder = null;
+ if (expireTime_ != null) {
+ subBuilder = expireTime_.toBuilder();
+ }
+ expireTime_ =
+ input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(expireTime_);
+ expireTime_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.iam.credentials.v1.IAMCredentialsCommonProto
+ .internal_static_google_iam_credentials_v1_GenerateIdentityBindingAccessTokenResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.iam.credentials.v1.IAMCredentialsCommonProto
+ .internal_static_google_iam_credentials_v1_GenerateIdentityBindingAccessTokenResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse.class,
+ com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse.Builder
+ .class);
+ }
+
+ public static final int ACCESS_TOKEN_FIELD_NUMBER = 1;
+ private volatile java.lang.Object accessToken_;
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ */
+ public java.lang.String getAccessToken() {
+ java.lang.Object ref = accessToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ accessToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ */
+ public com.google.protobuf.ByteString getAccessTokenBytes() {
+ java.lang.Object ref = accessToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ accessToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXPIRE_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp expireTime_;
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public boolean hasExpireTime() {
+ return expireTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public com.google.protobuf.Timestamp getExpireTime() {
+ return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
+ }
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
+ return getExpireTime();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getAccessTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessToken_);
+ }
+ if (expireTime_ != null) {
+ output.writeMessage(2, getExpireTime());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getAccessTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessToken_);
+ }
+ if (expireTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse other =
+ (com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse) obj;
+
+ boolean result = true;
+ result = result && getAccessToken().equals(other.getAccessToken());
+ result = result && (hasExpireTime() == other.hasExpireTime());
+ if (hasExpireTime()) {
+ result = result && getExpireTime().equals(other.getExpireTime());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ACCESS_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getAccessToken().hashCode();
+ if (hasExpireTime()) {
+ hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getExpireTime().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse
+ parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse
+ parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse
+ parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse
+ parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse
+ parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /** Protobuf type {@code google.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse} */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ */
+ public java.lang.String getAccessToken() {
+ java.lang.Object ref = accessToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ accessToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ */
+ public com.google.protobuf.ByteString getAccessTokenBytes() {
+ java.lang.Object ref = accessToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ accessToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ */
+ public Builder setAccessToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ accessToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ */
+ public Builder clearAccessToken() {
+
+ accessToken_ = getDefaultInstance().getAccessToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ */
+ public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ accessToken_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp expireTime_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ expireTimeBuilder_;
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public boolean hasExpireTime() {
+ return expireTimeBuilder_ != null || expireTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public com.google.protobuf.Timestamp getExpireTime() {
+ if (expireTimeBuilder_ == null) {
+ return expireTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : expireTime_;
+ } else {
+ return expireTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
+ if (expireTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expireTime_ = value;
+ onChanged();
+ } else {
+ expireTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (expireTimeBuilder_ == null) {
+ expireTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ expireTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
+ if (expireTimeBuilder_ == null) {
+ if (expireTime_ != null) {
+ expireTime_ =
+ com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial();
+ } else {
+ expireTime_ = value;
+ }
+ onChanged();
+ } else {
+ expireTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public Builder clearExpireTime() {
+ if (expireTimeBuilder_ == null) {
+ expireTime_ = null;
+ onChanged();
+ } else {
+ expireTime_ = null;
+ expireTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
+
+ onChanged();
+ return getExpireTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
+ if (expireTimeBuilder_ != null) {
+ return expireTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return expireTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : expireTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getExpireTimeFieldBuilder() {
+ if (expireTimeBuilder_ == null) {
+ expireTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getExpireTime(), getParentForChildren(), isClean());
+ expireTime_ = null;
+ }
+ return expireTimeBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse)
+ private static final com.google.cloud.iam.credentials.v1
+ .GenerateIdentityBindingAccessTokenResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse();
+ }
+
+ public static com.google.cloud.iam.credentials.v1.GenerateIdentityBindingAccessTokenResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ */
+ java.lang.String getAccessToken();
+ /**
+ *
+ *
+ * + * The OAuth 2.0 access token. + *+ * + *
string access_token = 1;
+ */
+ com.google.protobuf.ByteString getAccessTokenBytes();
+
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ boolean hasExpireTime();
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ com.google.protobuf.Timestamp getExpireTime();
+ /**
+ *
+ *
+ * + * Token expiration time. + * The expiration time is always set. + *+ * + *
.google.protobuf.Timestamp expire_time = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/IAMCredentialsCommonProto.java b/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/IAMCredentialsCommonProto.java
index 1913fb615541..a6aa1762c332 100644
--- a/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/IAMCredentialsCommonProto.java
+++ b/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/IAMCredentialsCommonProto.java
@@ -44,6 +44,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_iam_credentials_v1_GenerateIdTokenResponse_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_iam_credentials_v1_GenerateIdTokenResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_iam_credentials_v1_GenerateIdentityBindingAccessTokenRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_iam_credentials_v1_GenerateIdentityBindingAccessTokenRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_iam_credentials_v1_GenerateIdentityBindingAccessTokenResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_iam_credentials_v1_GenerateIdentityBindingAccessTokenResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -71,11 +79,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\030\002 \001(\t\"b\n\026GenerateIdTokenRequest\022\014\n\004name"
+ "\030\001 \001(\t\022\021\n\tdelegates\030\002 \003(\t\022\020\n\010audience\030\003 "
+ "\001(\t\022\025\n\rinclude_email\030\004 \001(\010\"(\n\027GenerateId"
- + "TokenResponse\022\r\n\005token\030\001 \001(\tB\213\001\n#com.goo"
- + "gle.cloud.iam.credentials.v1B\031IAMCredent"
- + "ialsCommonProtoP\001ZDgoogle.golang.org/gen"
- + "proto/googleapis/iam/credentials/v1;cred"
- + "entials\370\001\001b\006proto3"
+ + "TokenResponse\022\r\n\005token\030\001 \001(\t\"U\n)Generate"
+ + "IdentityBindingAccessTokenRequest\022\014\n\004nam"
+ + "e\030\001 \001(\t\022\r\n\005scope\030\002 \003(\t\022\013\n\003jwt\030\003 \001(\t\"s\n*G"
+ + "enerateIdentityBindingAccessTokenRespons"
+ + "e\022\024\n\014access_token\030\001 \001(\t\022/\n\013expire_time\030\002"
+ + " \001(\0132\032.google.protobuf.TimestampB\213\001\n#com"
+ + ".google.cloud.iam.credentials.v1B\031IAMCre"
+ + "dentialsCommonProtoP\001ZDgoogle.golang.org"
+ + "/genproto/googleapis/iam/credentials/v1;"
+ + "credentials\370\001\001b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
@@ -156,6 +169,22 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors(
new java.lang.String[] {
"Token",
});
+ internal_static_google_iam_credentials_v1_GenerateIdentityBindingAccessTokenRequest_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_google_iam_credentials_v1_GenerateIdentityBindingAccessTokenRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_iam_credentials_v1_GenerateIdentityBindingAccessTokenRequest_descriptor,
+ new java.lang.String[] {
+ "Name", "Scope", "Jwt",
+ });
+ internal_static_google_iam_credentials_v1_GenerateIdentityBindingAccessTokenResponse_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_google_iam_credentials_v1_GenerateIdentityBindingAccessTokenResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_iam_credentials_v1_GenerateIdentityBindingAccessTokenResponse_descriptor,
+ new java.lang.String[] {
+ "AccessToken", "ExpireTime",
+ });
com.google.protobuf.DurationProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
diff --git a/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/IAMCredentialsProto.java b/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/IAMCredentialsProto.java
index 6bd5863e9bb7..7ce6a8abdc5f 100644
--- a/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/IAMCredentialsProto.java
+++ b/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/java/com/google/cloud/iam/credentials/v1/IAMCredentialsProto.java
@@ -23,7 +23,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n.google/iam/credentials/v1/iamcredentia"
+ "ls.proto\022\031google.iam.credentials.v1\032\034goo"
+ "gle/api/annotations.proto\032&google/iam/cr"
- + "edentials/v1/common.proto2\340\005\n\016IAMCredent"
+ + "edentials/v1/common.proto2\353\007\n\016IAMCredent"
+ "ials\022\314\001\n\023GenerateAccessToken\0225.google.ia"
+ "m.credentials.v1.GenerateAccessTokenRequ"
+ "est\0326.google.iam.credentials.v1.Generate"
@@ -42,10 +42,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ls.v1.SignJwtRequest\032*.google.iam.creden"
+ "tials.v1.SignJwtResponse\":\202\323\344\223\0024\"//v1/{n"
+ "ame=projects/*/serviceAccounts/*}:signJw"
- + "t:\001*B\205\001\n#com.google.cloud.iam.credential"
- + "s.v1B\023IAMCredentialsProtoP\001ZDgoogle.gola"
- + "ng.org/genproto/googleapis/iam/credentia"
- + "ls/v1;credentials\370\001\001b\006proto3"
+ + "t:\001*\022\210\002\n\"GenerateIdentityBindingAccessTo"
+ + "ken\022D.google.iam.credentials.v1.Generate"
+ + "IdentityBindingAccessTokenRequest\032E.goog"
+ + "le.iam.credentials.v1.GenerateIdentityBi"
+ + "ndingAccessTokenResponse\"U\202\323\344\223\002O\"J/v1/{n"
+ + "ame=projects/*/serviceAccounts/*}:genera"
+ + "teIdentityBindingAccessToken:\001*B\205\001\n#com."
+ + "google.cloud.iam.credentials.v1B\023IAMCred"
+ + "entialsProtoP\001ZDgoogle.golang.org/genpro"
+ + "to/googleapis/iam/credentials/v1;credent"
+ + "ials\370\001\001b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
diff --git a/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/proto/google/iam/credentials/v1/common.proto b/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/proto/google/iam/credentials/v1/common.proto
index 4fb12530ce00..fa382a99ec4a 100644
--- a/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/proto/google/iam/credentials/v1/common.proto
+++ b/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/proto/google/iam/credentials/v1/common.proto
@@ -154,3 +154,71 @@ message GenerateIdTokenResponse {
string token = 1;
}
+message GenerateIdentityBindingAccessTokenRequest {
+ // The resource name of the service account for which the credentials
+ // are requested, in the following format:
+ // `projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}`.
+ string name = 1;
+
+ // Code to identify the scopes to be included in the OAuth 2.0 access token.
+ // See https://developers.google.com/identity/protocols/googlescopes for more
+ // information.
+ // At least one value required.
+ repeated string scope = 2;
+
+ // Required. Input token.
+ // Must be in JWT format according to
+ // RFC7523 (https://tools.ietf.org/html/rfc7523)
+ // and must have 'kid' field in the header.
+ // Supported signing algorithms: RS256 (RS512, ES256, ES512 coming soon).
+ // Mandatory payload fields (along the lines of RFC 7523, section 3):
+ // - iss: issuer of the token. Must provide a discovery document at
+ // $iss/.well-known/openid-configuration . The document needs to be
+ // formatted according to section 4.2 of the OpenID Connect Discovery
+ // 1.0 specification.
+ // - iat: Issue time in seconds since epoch. Must be in the past.
+ // - exp: Expiration time in seconds since epoch. Must be less than 48 hours
+ // after iat. We recommend to create tokens that last shorter than 6
+ // hours to improve security unless business reasons mandate longer
+ // expiration times. Shorter token lifetimes are generally more secure
+ // since tokens that have been exfiltrated by attackers can be used for
+ // a shorter time. you can configure the maximum lifetime of the
+ // incoming token in the configuration of the mapper.
+ // The resulting Google token will expire within an hour or at "exp",
+ // whichever is earlier.
+ // - sub: JWT subject, identity asserted in the JWT.
+ // - aud: Configured in the mapper policy. By default the service account
+ // email.
+ //
+ // Claims from the incoming token can be transferred into the output token
+ // accoding to the mapper configuration. The outgoing claim size is limited.
+ // Outgoing claims size must be less than 4kB serialized as JSON without
+ // whitespace.
+ //
+ // Example header:
+ // {
+ // "alg": "RS256",
+ // "kid": "92a4265e14ab04d4d228a48d10d4ca31610936f8"
+ // }
+ // Example payload:
+ // {
+ // "iss": "https://accounts.google.com",
+ // "iat": 1517963104,
+ // "exp": 1517966704,
+ // "aud": "https://iamcredentials.googleapis.com/",
+ // "sub": "113475438248934895348",
+ // "my_claims": {
+ // "additional_claim": "value"
+ // }
+ // }
+ string jwt = 3;
+}
+
+message GenerateIdentityBindingAccessTokenResponse {
+ // The OAuth 2.0 access token.
+ string access_token = 1;
+
+ // Token expiration time.
+ // The expiration time is always set.
+ google.protobuf.Timestamp expire_time = 2;
+}
diff --git a/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/proto/google/iam/credentials/v1/iamcredentials.proto b/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/proto/google/iam/credentials/v1/iamcredentials.proto
index 9ab1c3240c19..91902dfd2b06 100644
--- a/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/proto/google/iam/credentials/v1/iamcredentials.proto
+++ b/google-api-grpc/proto-google-cloud-iamcredentials-v1/src/main/proto/google/iam/credentials/v1/iamcredentials.proto
@@ -67,4 +67,15 @@ service IAMCredentials {
body: "*"
};
}
+
+ // Exchange a JWT signed by third party identity provider to an OAuth 2.0
+ // access token
+ rpc GenerateIdentityBindingAccessToken(
+ GenerateIdentityBindingAccessTokenRequest)
+ returns (GenerateIdentityBindingAccessTokenResponse) {
+ option (google.api.http) = {
+ post: "/v1/{name=projects/*/serviceAccounts/*}:generateIdentityBindingAccessToken"
+ body: "*"
+ };
+ }
}
diff --git a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml
index c89f566cf521..5b993ea3c0c8 100644
--- a/google-api-grpc/proto-google-cloud-iot-v1/pom.xml
+++ b/google-api-grpc/proto-google-cloud-iot-v1/pom.xml
@@ -3,13 +3,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- * The source’s display name. - * A source’s display name must be unique amongst its siblings, for example, + * The source's display name. + * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. * The display name must start and end with a letter or digit, may contain * letters, digits, spaces, hyphens, and underscores, and can be no longer @@ -190,8 +190,8 @@ public java.lang.String getDisplayName() { * * *- * The source’s display name. - * A source’s display name must be unique amongst its siblings, for example, + * The source's display name. + * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. * The display name must start and end with a letter or digit, may contain * letters, digits, spaces, hyphens, and underscores, and can be no longer @@ -733,8 +733,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *- * The source’s display name. - * A source’s display name must be unique amongst its siblings, for example, + * The source's display name. + * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. * The display name must start and end with a letter or digit, may contain * letters, digits, spaces, hyphens, and underscores, and can be no longer @@ -759,8 +759,8 @@ public java.lang.String getDisplayName() { * * *- * The source’s display name. - * A source’s display name must be unique amongst its siblings, for example, + * The source's display name. + * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. * The display name must start and end with a letter or digit, may contain * letters, digits, spaces, hyphens, and underscores, and can be no longer @@ -785,8 +785,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *- * The source’s display name. - * A source’s display name must be unique amongst its siblings, for example, + * The source's display name. + * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. * The display name must start and end with a letter or digit, may contain * letters, digits, spaces, hyphens, and underscores, and can be no longer @@ -809,8 +809,8 @@ public Builder setDisplayName(java.lang.String value) { * * *- * The source’s display name. - * A source’s display name must be unique amongst its siblings, for example, + * The source's display name. + * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. * The display name must start and end with a letter or digit, may contain * letters, digits, spaces, hyphens, and underscores, and can be no longer @@ -830,8 +830,8 @@ public Builder clearDisplayName() { * * *- * The source’s display name. - * A source’s display name must be unique amongst its siblings, for example, + * The source's display name. + * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. * The display name must start and end with a letter or digit, may contain * letters, digits, spaces, hyphens, and underscores, and can be no longer diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java index 66cae81cc763..dc8fd860dd9e 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SourceOrBuilder.java @@ -39,8 +39,8 @@ public interface SourceOrBuilder * * *- * The source’s display name. - * A source’s display name must be unique amongst its siblings, for example, + * The source's display name. + * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. * The display name must start and end with a letter or digit, may contain * letters, digits, spaces, hyphens, and underscores, and can be no longer @@ -55,8 +55,8 @@ public interface SourceOrBuilder * * *- * The source’s display name. - * A source’s display name must be unique amongst its siblings, for example, + * The source's display name. + * A source's display name must be unique amongst its siblings, for example, * two sources with the same parent can't share the same display name. * The display name must start and end with a letter or digit, may contain * letters, digits, spaces, hyphens, and underscores, and can be no longer diff --git a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto index 9dfc9490e9ab..5eabe2b1a349 100644 --- a/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto +++ b/google-api-grpc/proto-google-cloud-securitycenter-v1beta1/src/main/proto/google/cloud/securitycenter/v1beta1/source.proto @@ -34,8 +34,8 @@ message Source { // "organizations/123/sources/456" string name = 1; - // The source’s display name. - // A source’s display name must be unique amongst its siblings, for example, + // The source's display name. + // A source's display name must be unique amongst its siblings, for example, // two sources with the same parent can't share the same display name. // The display name must start and end with a letter or digit, may contain // letters, digits, spaces, hyphens, and underscores, and can be no longer diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml index 8180b5bada75..68024ddd15c2 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-database-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">4.0.0 proto-google-cloud-spanner-admin-database-v1 -1.1.1-SNAPSHOT +1.3.0 proto-google-cloud-spanner-admin-database-v1 PROTO library for proto-google-cloud-spanner-admin-database-v1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml index 7683d458eab2..073990653745 100644 --- a/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-admin-instance-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-admin-instance-v1 -1.1.1-SNAPSHOT +1.3.0 proto-google-cloud-spanner-admin-instance-v1 PROTO library for proto-google-cloud-spanner-admin-instance-v1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml index a330eb296b88..7f26c51b8624 100644 --- a/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-spanner-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-spanner-v1 -1.1.1-SNAPSHOT +1.3.0 proto-google-cloud-spanner-v1 PROTO library for proto-google-cloud-spanner-v1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml index 9dad448d8b5e..39ffc4de3f92 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml index 298b14fe7c05..3f9019a1a8c3 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1beta1 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-speech-v1beta1 PROTO library for proto-google-cloud-speech-v1beta1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml index d83c2488e57c..ac74bb0b7f0d 100644 --- a/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-speech-v1p1beta1 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml index 17c4d83a0c9f..b160e4563793 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta2 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml index fe7ecb564859..c1a5adc5952c 100644 --- a/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/google-api-grpc/proto-google-cloud-tasks-v2beta3/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-tasks-v2beta3 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml index 16c71bf32d26..b07371b5b30e 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-texttospeech-v1 PROTO library for proto-google-cloud-texttospeech-v1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml index 34fa65caca03..e210392b9d3f 100644 --- a/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-texttospeech-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-texttospeech-v1beta1 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-texttospeech-v1beta1 PROTO library for proto-google-cloud-texttospeech-v1beta1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml index a8f108775091..6b9f009f7c9a 100644 --- a/google-api-grpc/proto-google-cloud-trace-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v1 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-trace-v1 PROTO library for proto-google-cloud-trace-v1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml index 90c47d20ec63..4dc92882884f 100644 --- a/google-api-grpc/proto-google-cloud-trace-v2/pom.xml +++ b/google-api-grpc/proto-google-cloud-trace-v2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-trace-v2 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-trace-v2 PROTO library for proto-google-cloud-trace-v2 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml index d6043658f381..ac6060c29a4b 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-video-intelligence-v1 PROTO library for proto-google-cloud-video-intelligence-v1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml index 88b24e924ac7..84b21d49651f 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta1 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-video-intelligence-v1beta1 PROTO library for proto-google-cloud-video-intelligence-v1beta1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml index 62ff0320ff88..357b9dd4e3a6 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1beta2/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1beta2 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-video-intelligence-v1beta2 PROTO library for proto-google-cloud-video-intelligence-v1beta2 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml index 70f0b97608eb..ce1dd319665b 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p1beta1 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-video-intelligence-v1p1beta1 PROTO library for proto-google-cloud-video-intelligence-v1p1beta1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml index 88a4497df959..fa1256b26712 100644 --- a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-video-intelligence-v1p2beta1 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-video-intelligence-v1p2beta1 PROTO library for proto-google-cloud-video-intelligence-v1p2beta1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml index c48de0804009..855b5e5efbfd 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1 -1.38.1-SNAPSHOT +1.40.0 proto-google-cloud-vision-v1 PROTO library for proto-google-cloud-vision-v1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml index 4fb0eb9465b4..dbc56aea5e67 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p1beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p1beta1 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-vision-v1p1beta1 PROTO library for proto-google-cloud-vision-v1p1beta1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml index af5170304768..600eea335a46 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p2beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p2beta1 -1.38.1-SNAPSHOT +1.40.0 proto-google-cloud-vision-v1p2beta1 PROTO library for proto-google-cloud-vision-v1p2beta1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml index 74a2f2916a40..bd712d5ee6a4 100644 --- a/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml +++ b/google-api-grpc/proto-google-cloud-vision-v1p3beta1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-vision-v1p3beta1 -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-vision-v1p3beta1 PROTO library for proto-google-cloud-vision-v1p3beta1 com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 diff --git a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index ea4afc5f2892..6f464de16d29 100644 --- a/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/google-api-grpc/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-websecurityscanner-v1alpha -0.39.1-SNAPSHOT +0.41.0 proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.api.grpc google-api-grpc -0.39.1-SNAPSHOT +0.41.0 @@ -1034,6 +1034,12 @@ diff --git a/google-cloud-bom/README.md b/google-cloud-bom/README.md index 51e78f10ee7b..f9f0d01435d8 100644 --- a/google-cloud-bom/README.md +++ b/google-cloud-bom/README.md @@ -13,7 +13,7 @@ To use it in Maven, add the following to your POM: diff --git a/google-cloud-bom/pom.xml b/google-cloud-bom/pom.xml index b5bd9a4b61e9..4d55163266aa 100644 --- a/google-cloud-bom/pom.xml +++ b/google-cloud-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bom -0.74.0-alpha +0.76.0-alpha pom import com.google.cloud google-cloud-bom pom -0.74.1-alpha-SNAPSHOT +0.76.0-alpha Google Cloud Java BOM https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-bom @@ -197,713 +197,713 @@ com.google.cloud google-cloud-asset -0.74.1-beta-SNAPSHOT +0.76.0-beta com.google.api.grpc proto-google-cloud-asset-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-asset-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-automl -0.74.1-beta-SNAPSHOT +0.76.0-beta com.google.api.grpc proto-google-cloud-automl-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-bigtable -0.74.1-alpha-SNAPSHOT +0.76.0-alpha com.google.api.grpc proto-google-cloud-bigtable-v2 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-bigtable-v2 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-bigtable-admin -0.74.1-alpha-SNAPSHOT +0.76.0-alpha com.google.api.grpc proto-google-cloud-bigtable-admin-v2 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-bigtable-emulator -0.74.1-alpha-SNAPSHOT +0.76.0-alpha com.google.cloud google-cloud-bigquery -1.56.1-SNAPSHOT +1.58.0 com.google.cloud google-cloud-bigquerydatatransfer -0.74.1-beta-SNAPSHOT +0.76.0-beta com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-compute -0.74.1-alpha-SNAPSHOT +0.76.0-alpha com.google.cloud google-cloud-container -0.74.1-beta-SNAPSHOT +0.76.0-beta com.google.api.grpc proto-google-cloud-container-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-container-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-containeranalysis -0.74.1-beta-SNAPSHOT +0.76.0-beta com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-contrib -0.74.1-alpha-SNAPSHOT +0.76.0-alpha com.google.cloud google-cloud-nio -0.74.1-alpha-SNAPSHOT +0.76.0-alpha com.google.cloud google-cloud-core -1.56.1-SNAPSHOT +1.58.0 com.google.cloud google-cloud-core-grpc -1.56.1-SNAPSHOT +1.58.0 com.google.cloud google-cloud-core-http -1.56.1-SNAPSHOT +1.58.0 com.google.cloud google-cloud-dataproc -0.74.1-alpha-SNAPSHOT +0.76.0-alpha com.google.api.grpc proto-google-cloud-dataproc-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-dataproc-v1beta2 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-dataproc-v1beta2 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-datastore -1.56.1-SNAPSHOT +1.58.0 com.google.api.grpc proto-google-cloud-datastore-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-dlp -0.74.1-beta-SNAPSHOT +0.76.0-beta com.google.api.grpc proto-google-cloud-dlp-v2 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-dlp-v2 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-dialogflow -0.74.1-alpha-SNAPSHOT +0.76.0-alpha com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-dns -0.74.1-alpha-SNAPSHOT +0.76.0-alpha com.google.cloud google-cloud-errorreporting -0.74.1-beta-SNAPSHOT +0.76.0-beta com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-firestore -0.74.1-beta-SNAPSHOT +0.76.0-beta com.google.api.grpc proto-google-cloud-firestore-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-firestore-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-kms -0.74.1-beta-SNAPSHOT +0.76.0-beta com.google.api.grpc proto-google-cloud-kms-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-kms-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-language -1.56.1-SNAPSHOT +1.58.0 com.google.api.grpc proto-google-cloud-language-v1 -1.38.1-SNAPSHOT +1.40.0 com.google.api.grpc grpc-google-cloud-language-v1 -1.38.1-SNAPSHOT +1.40.0 com.google.api.grpc proto-google-cloud-language-v1beta2 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-logging -1.56.1-SNAPSHOT +1.58.0 com.google.api.grpc proto-google-cloud-logging-v2 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-logging-v2 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-logging-logback -0.74.1-alpha-SNAPSHOT +0.76.0-alpha com.google.cloud google-cloud-monitoring -1.56.1-SNAPSHOT +1.58.0 com.google.api.grpc proto-google-cloud-monitoring-v3 -1.38.1-SNAPSHOT +1.40.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 -1.38.1-SNAPSHOT +1.40.0 com.google.cloud google-cloud-os-login -0.74.1-alpha-SNAPSHOT +0.76.0-alpha com.google.api.grpc proto-google-cloud-os-login-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-os-login-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-pubsub -1.56.1-SNAPSHOT +1.58.0 com.google.api.grpc proto-google-cloud-pubsub-v1 -1.38.1-SNAPSHOT +1.40.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 -1.38.1-SNAPSHOT +1.40.0 com.google.cloud google-cloud-redis -0.74.1-alpha-SNAPSHOT +0.76.0-alpha com.google.api.grpc proto-google-cloud-redis-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-redis-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-redis-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-resourcemanager -0.74.1-alpha-SNAPSHOT +0.76.0-alpha com.google.api.grpc proto-google-cloud-scheduler-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-spanner -1.1.1-SNAPSHOT +1.3.0 com.google.api.grpc proto-google-cloud-spanner-v1 -1.1.1-SNAPSHOT +1.3.0 com.google.api.grpc grpc-google-cloud-spanner-v1 -1.1.1-SNAPSHOT +1.3.0 com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 -1.1.1-SNAPSHOT +1.3.0 com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 -1.1.1-SNAPSHOT +1.3.0 com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 -1.1.1-SNAPSHOT +1.3.0 com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 -1.1.1-SNAPSHOT +1.3.0 com.google.cloud google-cloud-speech -0.74.1-beta-SNAPSHOT +0.76.0-beta com.google.api.grpc proto-google-cloud-speech-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-speech-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-speech-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-storage -1.56.1-SNAPSHOT +1.58.0 com.google.cloud google-cloud-tasks -0.74.1-beta-SNAPSHOT +0.76.0-beta com.google.api.grpc proto-google-cloud-tasks-v2beta2 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-texttospeech -0.74.1-beta-SNAPSHOT +0.76.0-beta com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-trace -0.74.1-beta-SNAPSHOT +0.76.0-beta com.google.api.grpc proto-google-cloud-trace-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-trace-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-trace-v2 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-trace-v2 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-translate -1.56.1-SNAPSHOT +1.58.0 com.google.cloud google-cloud-vision -1.56.1-SNAPSHOT +1.58.0 com.google.api.grpc proto-google-cloud-vision-v1 -1.38.1-SNAPSHOT +1.40.0 com.google.api.grpc grpc-google-cloud-vision-v1 -1.38.1-SNAPSHOT +1.40.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 -1.38.1-SNAPSHOT +1.40.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 -1.38.1-SNAPSHOT +1.40.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.cloud google-cloud-video-intelligence -0.74.1-beta-SNAPSHOT +0.76.0-beta com.google.api.grpc proto-google-cloud-video-intelligence-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-iot-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-iot-v1 -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha -0.39.1-SNAPSHOT +0.41.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 -0.1.1-alpha-SNAPSHOT +0.3.0-alpha com.google.api.grpc grpc-google-cloud-iamcredentials-v1 -0.1.1-alpha-SNAPSHOT +0.3.0-alpha com.google.cloud google-cloud-iamcredentials -0.1.1-alpha-SNAPSHOT +0.3.0-alpha + sign + diff --git a/google-cloud-clients/google-cloud-asset/README.md b/google-cloud-clients/google-cloud-asset/README.md index 0cbeac75cdf8..90aa48e1392c 100644 --- a/google-cloud-clients/google-cloud-asset/README.md +++ b/google-cloud-clients/google-cloud-asset/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file+ +--pinentry-mode +loopback +``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-asset:0.74.0-beta' +compile 'com.google.cloud:google-cloud-asset:0.76.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "0.74.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "0.76.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-asset/pom.xml b/google-cloud-clients/google-cloud-asset/pom.xml index 5c1ed428e6ae..b3e8c2bd25fe 100644 --- a/google-cloud-clients/google-cloud-asset/pom.xml +++ b/google-cloud-clients/google-cloud-asset/pom.xml @@ -2,7 +2,7 @@ com.google.cloud google-cloud-asset -0.74.0-beta +0.76.0-beta 4.0.0 google-cloud-asset -0.74.1-beta-SNAPSHOT +0.76.0-beta jar Google Cloud Asset https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-asset @@ -12,7 +12,7 @@com.google.cloud google-cloud-clients -0.74.1-alpha-SNAPSHOT +0.76.0-alpha google-cloud-asset diff --git a/google-cloud-clients/google-cloud-automl/README.md b/google-cloud-clients/google-cloud-automl/README.md index 74ab3ba61c3a..4e89150fae85 100644 --- a/google-cloud-clients/google-cloud-automl/README.md +++ b/google-cloud-clients/google-cloud-automl/README.md @@ -22,16 +22,16 @@ If you are using Maven, add this to your pom.xml file``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-automl:0.74.0-beta' +compile 'com.google.cloud:google-cloud-automl:0.76.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "0.74.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "0.76.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-automl/pom.xml b/google-cloud-clients/google-cloud-automl/pom.xml index af5a105b0569..84afa26fc7aa 100644 --- a/google-cloud-clients/google-cloud-automl/pom.xml +++ b/google-cloud-clients/google-cloud-automl/pom.xml @@ -2,7 +2,7 @@ com.google.cloud google-cloud-automl -0.74.0-beta +0.76.0-beta 4.0.0 google-cloud-automl -0.74.1-beta-SNAPSHOT +0.76.0-beta jar Google Cloud Auto ML https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-automl @@ -12,7 +12,7 @@com.google.cloud google-cloud-clients -0.74.1-alpha-SNAPSHOT +0.76.0-alpha google-cloud-automl diff --git a/google-cloud-clients/google-cloud-bigquery/README.md b/google-cloud-clients/google-cloud-bigquery/README.md index 1bff07db0c84..8532db06d8e8 100644 --- a/google-cloud-clients/google-cloud-bigquery/README.md +++ b/google-cloud-clients/google-cloud-bigquery/README.md @@ -18,16 +18,16 @@ If you are using Maven, add this to your pom.xml file``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquery:1.56.0' +compile 'com.google.cloud:google-cloud-bigquery:1.58.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "1.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery" % "1.58.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigquery/pom.xml b/google-cloud-clients/google-cloud-bigquery/pom.xml index 7ba225c6ab06..3d497bd76e12 100644 --- a/google-cloud-clients/google-cloud-bigquery/pom.xml +++ b/google-cloud-clients/google-cloud-bigquery/pom.xml @@ -2,7 +2,7 @@ com.google.cloud google-cloud-bigquery -1.56.0 +1.58.0 4.0.0 google-cloud-bigquery -1.56.1-SNAPSHOT +1.58.0 jar Google Cloud BigQuery https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquery @@ -12,7 +12,7 @@com.google.cloud google-cloud-clients -0.74.1-alpha-SNAPSHOT +0.76.0-alpha google-cloud-bigquery diff --git a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Field.java b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Field.java index 41f357e661b5..72b84a93ae31 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Field.java +++ b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Field.java @@ -105,7 +105,7 @@ public Builder setName(String name) { * @throws IllegalArgumentException if {@code type == LegacySQLTypeName.RECORD && * subFields.length == 0} or if {@code type != LegacySQLTypeName.RECORD && subFields.length * != 0} - * @see Data + * @see Data * Types */ public Builder setType(LegacySQLTypeName type, Field... subFields) { @@ -121,7 +121,7 @@ public Builder setType(LegacySQLTypeName type, Field... subFields) { * @throws IllegalArgumentException if {@code type == LegacySQLTypeName.RECORD && (subFields == * null || subFields.isEmpty())} or if {@code type != LegacySQLTypeName.RECORD && subFields * != null} - * @see Data + * @see Data * Types */ public Builder setType(LegacySQLTypeName type, FieldList subFields) { @@ -175,7 +175,7 @@ public String getName() { /** * Returns the field type. * - * @see Data + * @see Data * Types */ public LegacySQLTypeName getType() { diff --git a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryJobConfiguration.java b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryJobConfiguration.java index a5e741d7f8f3..9bc906a1fa17 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryJobConfiguration.java +++ b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryJobConfiguration.java @@ -60,6 +60,7 @@ public final class QueryJobConfiguration extends JobConfiguration { private final Boolean dryRun; private final Boolean useLegacySql; private final Integer maximumBillingTier; + private final Long maximumBytesBilled; private final ListschemaUpdateOptions; private final EncryptionConfiguration destinationEncryptionConfiguration; private final TimePartitioning timePartitioning; @@ -104,6 +105,7 @@ public static final class Builder private Boolean dryRun; private Boolean useLegacySql = false; private Integer maximumBillingTier; + private Long maximumBytesBilled; private List schemaUpdateOptions; private EncryptionConfiguration destinationEncryptionConfiguration; private TimePartitioning timePartitioning; @@ -131,6 +133,7 @@ private Builder(QueryJobConfiguration jobConfiguration) { this.dryRun = jobConfiguration.dryRun; this.useLegacySql = jobConfiguration.useLegacySql; this.maximumBillingTier = jobConfiguration.maximumBillingTier; + this.maximumBytesBilled = jobConfiguration.maximumBytesBilled; this.schemaUpdateOptions = jobConfiguration.schemaUpdateOptions; this.destinationEncryptionConfiguration = jobConfiguration.destinationEncryptionConfiguration; this.timePartitioning = jobConfiguration.timePartitioning; @@ -167,6 +170,9 @@ private Builder(com.google.api.services.bigquery.model.JobConfiguration configur if (queryConfigurationPb.getMaximumBillingTier() != null) { maximumBillingTier = queryConfigurationPb.getMaximumBillingTier(); } + if (queryConfigurationPb.getMaximumBytesBilled() != null) { + maximumBytesBilled = queryConfigurationPb.getMaximumBytesBilled(); + } dryRun = configurationPb.getDryRun(); if (queryConfigurationPb.getDestinationTable() != null) { destinationTable = TableId.fromPb(queryConfigurationPb.getDestinationTable()); @@ -482,6 +488,18 @@ public Builder setMaximumBillingTier(Integer maximumBillingTier) { return this; } + /** + * Limits the bytes billed for this job. Queries that will have bytes billed beyond this limit + * will fail (without incurring a charge). If unspecified, this will be set to your project + * default. + * + * @param maximumBytesBilled maximum bytes billed for this job + */ + public Builder setMaximumBytesBilled(Long maximumBytesBilled) { + this.maximumBytesBilled = maximumBytesBilled; + return this; + } + /** * [Experimental] Sets options allowing the schema of the destination table to be updated as a * side effect of the query job. Schema update options are supported in two cases: when @@ -538,6 +556,7 @@ private QueryJobConfiguration(Builder builder) { this.dryRun = builder.dryRun; this.useLegacySql = builder.useLegacySql; this.maximumBillingTier = builder.maximumBillingTier; + this.maximumBytesBilled = builder.maximumBytesBilled; this.schemaUpdateOptions = builder.schemaUpdateOptions; this.destinationEncryptionConfiguration = builder.destinationEncryptionConfiguration; this.timePartitioning = builder.timePartitioning; @@ -685,6 +704,11 @@ public Integer getMaximumBillingTier() { return maximumBillingTier; } + /** Returns the optional bytes billed limit for this job. */ + public Long getMaximumBytesBilled() { + return maximumBytesBilled; + } + /** * [Experimental] Returns options allowing the schema of the destination table to be updated as a * side effect of the query job. Schema update options are supported in two cases: when @@ -731,6 +755,7 @@ ToStringHelper toStringHelper() { .add("dryRun", dryRun) .add("useLegacySql", useLegacySql) .add("maximumBillingTier", maximumBillingTier) + .add("maximumBytesBilled", maximumBytesBilled) .add("schemaUpdateOptions", schemaUpdateOptions) .add("timePartitioning", timePartitioning) .add("clustering", clustering); @@ -762,6 +787,7 @@ public int hashCode() { dryRun, useLegacySql, maximumBillingTier, + maximumBytesBilled, schemaUpdateOptions, timePartitioning, clustering); @@ -835,6 +861,9 @@ com.google.api.services.bigquery.model.JobConfiguration toPb() { if (maximumBillingTier != null) { queryConfigurationPb.setMaximumBillingTier(maximumBillingTier); } + if (maximumBytesBilled != null) { + queryConfigurationPb.setMaximumBytesBilled(maximumBytesBilled); + } if (schemaUpdateOptions != null) { ImmutableList.Builder schemaUpdateOptionsBuilder = new ImmutableList.Builder<>(); for (JobInfo.SchemaUpdateOption schemaUpdateOption : schemaUpdateOptions) { diff --git a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardTableDefinition.java b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardTableDefinition.java index 880372b2b733..f12e6b608a91 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardTableDefinition.java +++ b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/StandardTableDefinition.java @@ -57,12 +57,12 @@ public static class StreamingBuffer implements Serializable { } /** Returns a lower-bound estimate of the number of rows currently in the streaming buffer. */ - public long getEstimatedRows() { + public Long getEstimatedRows() { return estimatedRows; } /** Returns a lower-bound estimate of the number of bytes currently in the streaming buffer. */ - public long getEstimatedBytes() { + public Long getEstimatedBytes() { return estimatedBytes; } @@ -95,10 +95,17 @@ public boolean equals(Object obj) { } Streamingbuffer toPb() { - return new Streamingbuffer() - .setEstimatedBytes(BigInteger.valueOf(estimatedBytes)) - .setEstimatedRows(BigInteger.valueOf(estimatedRows)) - .setOldestEntryTime(BigInteger.valueOf(oldestEntryTime)); + Streamingbuffer buffer = new Streamingbuffer(); + if (estimatedBytes != null) { + buffer.setEstimatedBytes(BigInteger.valueOf(estimatedBytes)); + } + if (estimatedRows != null) { + buffer.setEstimatedRows(BigInteger.valueOf(estimatedRows)); + } + if (oldestEntryTime != null) { + buffer.setOldestEntryTime(BigInteger.valueOf(oldestEntryTime)); + } + return buffer; } static StreamingBuffer fromPb(Streamingbuffer streamingBufferPb) { diff --git a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java index 7fee00952bae..d38957bd6186 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java +++ b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Table.java @@ -21,10 +21,10 @@ import com.google.cloud.bigquery.BigQuery.JobOption; import com.google.cloud.bigquery.BigQuery.TableDataListOption; import com.google.cloud.bigquery.BigQuery.TableOption; -import com.google.cloud.bigquery.TableInfo.Builder; import com.google.common.collect.ImmutableList; import java.io.IOException; import java.io.ObjectInputStream; +import java.math.BigInteger; import java.util.List; import java.util.Map; import java.util.Objects; @@ -102,6 +102,18 @@ Builder setLastModifiedTime(Long lastModifiedTime) { return this; } + @Override + Builder setNumBytes(Long numBytes) { + infoBuilder.setNumBytes(numBytes); + return this; + } + + @Override + Builder setNumRows(BigInteger numRows) { + infoBuilder.setNumRows(numRows); + return this; + } + @Override Builder setSelfLink(String selfLink) { infoBuilder.setSelfLink(selfLink); diff --git a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableInfo.java b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableInfo.java index 37831cf943e4..8fad66d20a7e 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableInfo.java +++ b/google-cloud-clients/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableInfo.java @@ -65,6 +65,8 @@ public Table apply(TableInfo tableInfo) { private final Long creationTime; private final Long expirationTime; private final Long lastModifiedTime; + private final Long numBytes; + private final BigInteger numRows; private final TableDefinition definition; private final EncryptionConfiguration encryptionConfiguration; private final Labels labels; @@ -92,6 +94,10 @@ public abstract static class Builder { abstract Builder setLastModifiedTime(Long lastModifiedTime); + abstract Builder setNumBytes(Long numBytes); + + abstract Builder setNumRows(BigInteger numRows); + abstract Builder setSelfLink(String selfLink); /** Sets the table identity. */ @@ -134,6 +140,8 @@ static class BuilderImpl extends Builder { private Long creationTime; private Long expirationTime; private Long lastModifiedTime; + private Long numBytes; + private BigInteger numRows; private TableDefinition definition; private EncryptionConfiguration encryptionConfiguration; private Labels labels = Labels.ZERO; @@ -150,6 +158,8 @@ static class BuilderImpl extends Builder { this.creationTime = tableInfo.creationTime; this.expirationTime = tableInfo.expirationTime; this.lastModifiedTime = tableInfo.lastModifiedTime; + this.numBytes = tableInfo.numBytes; + this.numRows = tableInfo.numRows; this.definition = tableInfo.definition; this.encryptionConfiguration = tableInfo.encryptionConfiguration; this.labels = tableInfo.labels; @@ -167,6 +177,8 @@ static class BuilderImpl extends Builder { this.etag = tablePb.getEtag(); this.generatedId = tablePb.getId(); this.selfLink = tablePb.getSelfLink(); + this.numBytes = tablePb.getNumBytes(); + this.numRows = tablePb.getNumRows(); this.definition = TableDefinition.fromPb(tablePb); if (tablePb.getEncryptionConfiguration() != null) { this.encryptionConfiguration = @@ -217,6 +229,18 @@ Builder setLastModifiedTime(Long lastModifiedTime) { return this; } + @Override + Builder setNumBytes(Long numBytes) { + this.numBytes = numBytes; + return this; + } + + @Override + Builder setNumRows(BigInteger numRows) { + this.numRows = numRows; + return this; + } + @Override Builder setSelfLink(String selfLink) { this.selfLink = selfLink; @@ -263,6 +287,8 @@ public TableInfo build() { this.creationTime = builder.creationTime; this.expirationTime = builder.expirationTime; this.lastModifiedTime = builder.lastModifiedTime; + this.numBytes = builder.numBytes; + this.numRows = builder.numRows; this.definition = builder.definition; this.encryptionConfiguration = builder.encryptionConfiguration; labels = builder.labels; @@ -329,6 +355,16 @@ public T getDefinition() { return (T) definition; } + /** Returns the size of this table in bytes */ + public Long getNumBytes() { + return numBytes; + } + + /** Returns the number of rows of data in this table */ + public BigInteger getNumRows() { + return numRows; + } + /** * Return a map for labels applied to the table. * @@ -357,6 +393,8 @@ public String toString() { .add("expirationTime", expirationTime) .add("creationTime", creationTime) .add("lastModifiedTime", lastModifiedTime) + .add("numBytes", numBytes) + .add("numRows", numRows) .add("definition", definition) .add("encryptionConfiguration", encryptionConfiguration) .add("labels", labels) diff --git a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/StandardTableDefinitionTest.java b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/StandardTableDefinitionTest.java index 79414fa5e6c2..d70d33fb119b 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/StandardTableDefinitionTest.java +++ b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/StandardTableDefinitionTest.java @@ -120,6 +120,11 @@ public void testFromPbWithNullEstimatedRowsAndBytes() { TABLE_DEFINITION.toPb().setStreamingBuffer(new Streamingbuffer())); } + @Test + public void testStreamingBufferWithNullFieldsToPb() { + new StreamingBuffer(null, null, null).toPb(); + } + private void compareStandardTableDefinition( StandardTableDefinition expected, StandardTableDefinition value) { assertEquals(expected, value); diff --git a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableInfoTest.java b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableInfoTest.java index 98434713478d..6e35ce6cb620 100644 --- a/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableInfoTest.java +++ b/google-cloud-clients/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableInfoTest.java @@ -20,6 +20,7 @@ import static org.junit.Assert.assertNull; import com.google.common.collect.ImmutableList; +import java.math.BigInteger; import java.util.Collections; import java.util.List; import org.junit.Test; @@ -93,6 +94,8 @@ public class TableInfoTest { .setFriendlyName(FRIENDLY_NAME) .setGeneratedId(GENERATED_ID) .setLastModifiedTime(LAST_MODIFIED_TIME) + .setNumBytes(NUM_BYTES) + .setNumRows(BigInteger.valueOf(NUM_ROWS)) .setSelfLink(SELF_LINK) .setLabels(Collections.singletonMap("a", "b")) .build(); @@ -244,6 +247,8 @@ private void compareTableInfo(TableInfo expected, TableInfo value) { assertEquals(expected.getFriendlyName(), value.getFriendlyName()); assertEquals(expected.getGeneratedId(), value.getGeneratedId()); assertEquals(expected.getLastModifiedTime(), value.getLastModifiedTime()); + assertEquals(expected.getNumBytes(), value.getNumBytes()); + assertEquals(expected.getNumRows(), value.getNumRows()); assertEquals(expected.getSelfLink(), value.getSelfLink()); assertEquals(expected.getLabels(), value.getLabels()); assertEquals(expected.hashCode(), value.hashCode()); diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md b/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md index 0cbebf38c8eb..8cf5f2afd489 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/README.md @@ -23,16 +23,16 @@ Add this to your pom.xml file ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquerydatatransfer:0.74.0-beta' +compile 'com.google.cloud:google-cloud-bigquerydatatransfer:0.76.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "0.74.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "0.76.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml index 461993beb4b7..8c9a41d62668 100644 --- a/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml +++ b/google-cloud-clients/google-cloud-bigquerydatatransfer/pom.xml @@ -2,7 +2,7 @@ com.google.cloud google-cloud-bigquerydatatransfer -0.74.0-beta +0.76.0-beta 4.0.0 google-cloud-bigquerydatatransfer -0.74.1-beta-SNAPSHOT +0.76.0-beta jar Google Cloud Bigquery Data Transfer https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquerydatatransfer @@ -12,7 +12,7 @@com.google.cloud google-cloud-clients -0.74.1-alpha-SNAPSHOT +0.76.0-alpha google-cloud-bigquerydatatransfer diff --git a/google-cloud-clients/google-cloud-bigquerystorage/README.md b/google-cloud-clients/google-cloud-bigquerystorage/README.md index b24262f0d79d..211ead343951 100644 --- a/google-cloud-clients/google-cloud-bigquerystorage/README.md +++ b/google-cloud-clients/google-cloud-bigquerystorage/README.md @@ -20,16 +20,16 @@ Add this to your pom.xml file``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigquerystorage:0.74.0-beta' +compile 'com.google.cloud:google-cloud-bigquerystorage:0.76.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "0.74.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "0.76.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigquerystorage/pom.xml b/google-cloud-clients/google-cloud-bigquerystorage/pom.xml index 8f925d6be750..f56e4177654e 100644 --- a/google-cloud-clients/google-cloud-bigquerystorage/pom.xml +++ b/google-cloud-clients/google-cloud-bigquerystorage/pom.xml @@ -2,7 +2,7 @@ com.google.cloud google-cloud-bigquerystorage -0.74.0-beta +0.76.0-beta 4.0.0 google-cloud-bigquerystorage -0.74.1-alpha-SNAPSHOT +0.76.0-alpha jar Google Cloud Bigquery Storage https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-bigquerystorage @@ -12,7 +12,7 @@com.google.cloud google-cloud-clients -0.74.1-alpha-SNAPSHOT +0.76.0-alpha google-cloud-bigquerystorage diff --git a/google-cloud-clients/google-cloud-bigtable-admin/README.md b/google-cloud-clients/google-cloud-bigtable-admin/README.md index 6cff7f98d32f..c3ab04696faf 100644 --- a/google-cloud-clients/google-cloud-bigtable-admin/README.md +++ b/google-cloud-clients/google-cloud-bigtable-admin/README.md @@ -21,16 +21,16 @@ If you are using Maven, add this to your pom.xml file``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-bigtable-admin:0.74.0-alpha' +compile 'com.google.cloud:google-cloud-bigtable-admin:0.76.0-alpha' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable-admin" % "0.74.0-alpha" +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable-admin" % "0.76.0-alpha" ``` [//]: # ({x-version-update-end}) diff --git a/google-cloud-clients/google-cloud-bigtable-admin/pom.xml b/google-cloud-clients/google-cloud-bigtable-admin/pom.xml index b0523b226e26..bf100e0a2d68 100644 --- a/google-cloud-clients/google-cloud-bigtable-admin/pom.xml +++ b/google-cloud-clients/google-cloud-bigtable-admin/pom.xml @@ -2,7 +2,7 @@ com.google.cloud google-cloud-bigtable-admin -0.74.0-alpha +0.76.0-alpha 4.0.0 google-cloud-bigtable-admin -0.74.1-alpha-SNAPSHOT +0.76.0-alpha jar Google Cloud Bigtable Admin https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-bigtable @@ -12,7 +12,7 @@com.google.cloud google-cloud-clients -0.74.1-alpha-SNAPSHOT +0.76.0-alpha google-cloud-bigtable-admin diff --git a/google-cloud-clients/google-cloud-bigtable-admin/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java b/google-cloud-clients/google-cloud-bigtable-admin/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java index ccec11154fdc..7c673bae7b1d 100644 --- a/google-cloud-clients/google-cloud-bigtable-admin/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java +++ b/google-cloud-clients/google-cloud-bigtable-admin/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableInstanceAdminClient.java @@ -22,18 +22,14 @@ import com.google.api.gax.rpc.ApiExceptions; import com.google.api.gax.rpc.NotFoundException; import com.google.api.resourcenames.ResourceName; -import com.google.bigtable.admin.v2.AppProfileName; -import com.google.bigtable.admin.v2.ClusterName; import com.google.bigtable.admin.v2.DeleteAppProfileRequest; import com.google.bigtable.admin.v2.GetAppProfileRequest; -import com.google.bigtable.admin.v2.InstanceName; import com.google.bigtable.admin.v2.ListAppProfilesRequest; -import com.google.bigtable.admin.v2.LocationName; -import com.google.bigtable.admin.v2.ProjectName; import com.google.cloud.Policy; import com.google.cloud.Policy.DefaultMarshaller; import com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListAppProfilesPage; import com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListAppProfilesPagedResponse; +import com.google.cloud.bigtable.admin.v2.internal.NameUtil; import com.google.cloud.bigtable.admin.v2.models.AppProfile; import com.google.cloud.bigtable.admin.v2.models.Cluster; import com.google.cloud.bigtable.admin.v2.models.CreateAppProfileRequest; @@ -57,7 +53,6 @@ import java.io.IOException; import java.util.Arrays; import java.util.List; -import java.util.Objects; import javax.annotation.Nonnull; /** @@ -67,7 +62,7 @@ *See the individual methods for example code. * *
{@code - * try(BigtableInstanceAdminClient client = BigtableInstanceAdminClient.create(ProjectName.of("my-project"))) { + * try(BigtableInstanceAdminClient client = BigtableInstanceAdminClient.create("my-project")) { * CreateInstanceRequest request = CreateInstanceRequest.of("my-instance") * .addCluster("my-cluster", "us-east1-c", 3, StorageType.SSD); * @@ -85,7 +80,7 @@ * *{@code * BigtableInstanceAdminSettings settings = BigtableInstanceAdminSettings.newBuilder() - * .setProjectName(ProjectName.of("my-project")) + * .setProjectId("my-project") * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) * .build(); * @@ -96,7 +91,7 @@ * *{@code * BigtableInstanceAdminSettings settings = BigtableInstanceAdminSettings.newBuilder() - * .setProjectName(ProjectName.of("my-project")) + * .setProjectId("my-project") * .setEndpoint(myEndpoint) * .build(); * @@ -104,40 +99,73 @@ * }*/ public final class BigtableInstanceAdminClient implements AutoCloseable { - private final ProjectName projectName; + + private final String projectId; private final BigtableInstanceAdminStub stub; - /** Constructs an instance of BigtableInstanceAdminClient with the given ProjectName. */ - public static BigtableInstanceAdminClient create(@Nonnull ProjectName projectName) - throws IOException { - return create(BigtableInstanceAdminSettings.newBuilder().setProjectName(projectName).build()); + /** Constructs an instance of BigtableInstanceAdminClient with the given project id. */ + public static BigtableInstanceAdminClient create(@Nonnull String projectId) throws IOException { + return create(BigtableInstanceAdminSettings.newBuilder().setProjectId(projectId).build()); + } + + /** + * Constructs an instance of BigtableInstanceAdminClient with the given project id. + * + * @deprecated Please use {@link #create(String)}. + */ + @Deprecated + public static BigtableInstanceAdminClient create( + @Nonnull com.google.bigtable.admin.v2.ProjectName projectName) throws IOException { + return create(projectName.getProject()); } /** Constructs an instance of BigtableInstanceAdminClient with the given settings. */ public static BigtableInstanceAdminClient create(@Nonnull BigtableInstanceAdminSettings settings) throws IOException { - return create(settings.getProjectName(), settings.getStubSettings().createStub()); + return create(settings.getProjectId(), settings.getStubSettings().createStub()); + } + + /** Constructs an instance of BigtableInstanceAdminClient with the given project id and stub. */ + public static BigtableInstanceAdminClient create( + @Nonnull String projectId, @Nonnull BigtableInstanceAdminStub stub) { + return new BigtableInstanceAdminClient(projectId, stub); } - /** Constructs an instance of BigtableInstanceAdminClient with the given ProjectName and stub. */ + /** + * Constructs an instance of BigtableInstanceAdminClient with the given ProjectName and stub. + * + * @deprecated Please use {@link #create(String, BigtableInstanceAdminStub)}. + */ + @Deprecated public static BigtableInstanceAdminClient create( - @Nonnull ProjectName projectName, @Nonnull BigtableInstanceAdminStub stub) { - return new BigtableInstanceAdminClient(projectName, stub); + @Nonnull com.google.bigtable.admin.v2.ProjectName projectName, + @Nonnull BigtableInstanceAdminStub stub) { + return create(projectName.getProject(), stub); } private BigtableInstanceAdminClient( - @Nonnull ProjectName projectName, @Nonnull BigtableInstanceAdminStub stub) { - this.projectName = projectName; + @Nonnull String projectId, @Nonnull BigtableInstanceAdminStub stub) { + this.projectId = projectId; this.stub = stub; } - /** Gets the ProjectName this client is associated with. */ + /** Gets the project id this client is associated with. */ + public String getProjectId() { + return projectId; + } + + /** + * Gets the ProjectName this client is associated with. + * + * @deprecated Please use {@link #getProjectId()}. + */ + @Deprecated @SuppressWarnings("WeakerAccess") - public ProjectName getProjectName() { - return projectName; + public com.google.bigtable.admin.v2.ProjectName getProjectName() { + return com.google.bigtable.admin.v2.ProjectName.of(projectId); } - /** Closes the client and frees all resources associated with it (like thread pools) */ + /** Closes the client and frees all resources associated with it (like thread pools). */ @Override public void close() { stub.close(); @@ -181,7 +209,7 @@ public Instance createInstance(CreateInstanceRequest request) { @SuppressWarnings("WeakerAccess") public ApiFuturecreateInstanceAsync(CreateInstanceRequest request) { return ApiFutures.transform( - stub.createInstanceOperationCallable().futureCall(request.toProto(projectName)), + stub.createInstanceOperationCallable().futureCall(request.toProto(projectId)), new ApiFunction () { @Override public Instance apply(com.google.bigtable.admin.v2.Instance proto) { @@ -229,7 +257,7 @@ public Instance updateInstance(UpdateInstanceRequest request) { @SuppressWarnings("WeakerAccess") public ApiFuture updateInstanceAsync(UpdateInstanceRequest request) { return ApiFutures.transform( - stub.partialUpdateInstanceOperationCallable().futureCall(request.toProto(projectName)), + stub.partialUpdateInstanceOperationCallable().futureCall(request.toProto(projectId)), new ApiFunction () { @Override public Instance apply(com.google.bigtable.admin.v2.Instance proto) { @@ -265,12 +293,10 @@ public Instance getInstance(String id) { */ @SuppressWarnings("WeakerAccess") public ApiFuture getInstanceAsync(String instanceId) { - InstanceName name = InstanceName.of(projectName.getProject(), instanceId); + String name = NameUtil.formatInstanceName(projectId, instanceId); com.google.bigtable.admin.v2.GetInstanceRequest request = - com.google.bigtable.admin.v2.GetInstanceRequest.newBuilder() - .setName(name.toString()) - .build(); + com.google.bigtable.admin.v2.GetInstanceRequest.newBuilder().setName(name).build(); return ApiFutures.transform( stub.getInstanceCallable().futureCall(request), @@ -337,7 +363,7 @@ public List listInstances() { public ApiFuture > listInstancesAsync() { com.google.bigtable.admin.v2.ListInstancesRequest request = com.google.bigtable.admin.v2.ListInstancesRequest.newBuilder() - .setParent(projectName.toString()) + .setParent(NameUtil.formatProjectName(projectId)) .build(); ApiFuture
responseFuture = @@ -362,8 +388,7 @@ public List