• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/tasks/v2/target.proto
18 
19 package com.google.cloud.tasks.v2;
20 
21 public interface OAuthTokenOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.OAuthToken)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
31    * to be used for generating OAuth token.
32    * The service account must be within the same project as the queue. The
33    * caller must have iam.serviceAccounts.actAs permission for the service
34    * account.
35    * </pre>
36    *
37    * <code>string service_account_email = 1;</code>
38    *
39    * @return The serviceAccountEmail.
40    */
getServiceAccountEmail()41   java.lang.String getServiceAccountEmail();
42   /**
43    *
44    *
45    * <pre>
46    * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
47    * to be used for generating OAuth token.
48    * The service account must be within the same project as the queue. The
49    * caller must have iam.serviceAccounts.actAs permission for the service
50    * account.
51    * </pre>
52    *
53    * <code>string service_account_email = 1;</code>
54    *
55    * @return The bytes for serviceAccountEmail.
56    */
getServiceAccountEmailBytes()57   com.google.protobuf.ByteString getServiceAccountEmailBytes();
58 
59   /**
60    *
61    *
62    * <pre>
63    * OAuth scope to be used for generating OAuth access token.
64    * If not specified, "https://www.googleapis.com/auth/cloud-platform"
65    * will be used.
66    * </pre>
67    *
68    * <code>string scope = 2;</code>
69    *
70    * @return The scope.
71    */
getScope()72   java.lang.String getScope();
73   /**
74    *
75    *
76    * <pre>
77    * OAuth scope to be used for generating OAuth access token.
78    * If not specified, "https://www.googleapis.com/auth/cloud-platform"
79    * will be used.
80    * </pre>
81    *
82    * <code>string scope = 2;</code>
83    *
84    * @return The bytes for scope.
85    */
getScopeBytes()86   com.google.protobuf.ByteString getScopeBytes();
87 }
88