...

Source file src/cloud.google.com/go/iam/credentials/apiv1/credentialspb/iamcredentials.pb.go

Documentation: cloud.google.com/go/iam/credentials/apiv1/credentialspb

     1  // Copyright 2020 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.33.0
    18  // 	protoc        v4.25.3
    19  // source: google/iam/credentials/v1/iamcredentials.proto
    20  
    21  package credentialspb
    22  
    23  import (
    24  	context "context"
    25  	reflect "reflect"
    26  
    27  	_ "google.golang.org/genproto/googleapis/api/annotations"
    28  	grpc "google.golang.org/grpc"
    29  	codes "google.golang.org/grpc/codes"
    30  	status "google.golang.org/grpc/status"
    31  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    32  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    33  )
    34  
    35  const (
    36  	// Verify that this generated code is sufficiently up-to-date.
    37  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    38  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    39  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    40  )
    41  
    42  var File_google_iam_credentials_v1_iamcredentials_proto protoreflect.FileDescriptor
    43  
    44  var file_google_iam_credentials_v1_iamcredentials_proto_rawDesc = []byte{
    45  	0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x63, 0x72, 0x65,
    46  	0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x61, 0x6d, 0x63,
    47  	0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
    48  	0x12, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x72, 0x65,
    49  	0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
    50  	0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
    51  	0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
    52  	0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
    53  	0x74, 0x6f, 0x1a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x63,
    54  	0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f,
    55  	0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xad, 0x07, 0x0a, 0x0e, 0x49,
    56  	0x41, 0x4d, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x12, 0xec, 0x01,
    57  	0x0a, 0x13, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
    58  	0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69,
    59  	0x61, 0x6d, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x76,
    60  	0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73,
    61  	0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67,
    62  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,
    63  	0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74,
    64  	0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70,
    65  	0x6f, 0x6e, 0x73, 0x65, 0x22, 0x66, 0xda, 0x41, 0x1d, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x64, 0x65,
    66  	0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x2c, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x2c, 0x6c, 0x69,
    67  	0x66, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x3a, 0x01, 0x2a, 0x22,
    68  	0x3b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,
    69  	0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63,
    70  	0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74,
    71  	0x65, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0xe4, 0x01, 0x0a,
    72  	0x0f, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
    73  	0x12, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x72,
    74  	0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e,
    75  	0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75,
    76  	0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d,
    77  	0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e,
    78  	0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x64, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52,
    79  	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6a, 0xda, 0x41, 0x25, 0x6e, 0x61, 0x6d, 0x65,
    80  	0x2c, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x2c, 0x61, 0x75, 0x64, 0x69, 0x65,
    81  	0x6e, 0x63, 0x65, 0x2c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x65, 0x6d, 0x61, 0x69,
    82  	0x6c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x3a, 0x01, 0x2a, 0x22, 0x37, 0x2f, 0x76, 0x31, 0x2f,
    83  	0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,
    84  	0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
    85  	0x2f, 0x2a, 0x7d, 0x3a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x64, 0x54, 0x6f,
    86  	0x6b, 0x65, 0x6e, 0x12, 0xb9, 0x01, 0x0a, 0x08, 0x53, 0x69, 0x67, 0x6e, 0x42, 0x6c, 0x6f, 0x62,
    87  	0x12, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x72,
    88  	0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67,
    89  	0x6e, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x67,
    90  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e,
    91  	0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x42, 0x6c, 0x6f,
    92  	0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0xda, 0x41, 0x16, 0x6e, 0x61,
    93  	0x6d, 0x65, 0x2c, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x73, 0x2c, 0x70, 0x61, 0x79,
    94  	0x6c, 0x6f, 0x61, 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x3a, 0x01, 0x2a, 0x22, 0x30, 0x2f,
    95  	0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
    96  	0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75,
    97  	0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x6c, 0x6f, 0x62, 0x12,
    98  	0xb5, 0x01, 0x0a, 0x07, 0x53, 0x69, 0x67, 0x6e, 0x4a, 0x77, 0x74, 0x12, 0x29, 0x2e, 0x67, 0x6f,
    99  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
   100  	0x69, 0x61, 0x6c, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x4a, 0x77, 0x74, 0x52,
   101  	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   102  	0x69, 0x61, 0x6d, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e,
   103  	0x76, 0x31, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x4a, 0x77, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
   104  	0x73, 0x65, 0x22, 0x53, 0xda, 0x41, 0x16, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x64, 0x65, 0x6c, 0x65,
   105  	0x67, 0x61, 0x74, 0x65, 0x73, 0x2c, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x82, 0xd3, 0xe4,
   106  	0x93, 0x02, 0x34, 0x3a, 0x01, 0x2a, 0x22, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
   107  	0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x72,
   108  	0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,
   109  	0x73, 0x69, 0x67, 0x6e, 0x4a, 0x77, 0x74, 0x1a, 0x51, 0xca, 0x41, 0x1d, 0x69, 0x61, 0x6d, 0x63,
   110  	0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   111  	0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70,
   112  	0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
   113  	0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
   114  	0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0xca, 0x01, 0x0a, 0x23, 0x63,
   115  	0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
   116  	0x69, 0x61, 0x6d, 0x2e, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2e,
   117  	0x76, 0x31, 0x42, 0x13, 0x49, 0x41, 0x4d, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
   118  	0x6c, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x63, 0x6c, 0x6f, 0x75, 0x64,
   119  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x69,
   120  	0x61, 0x6d, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x2f, 0x61,
   121  	0x70, 0x69, 0x76, 0x31, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73,
   122  	0x70, 0x62, 0x3b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x70, 0x62,
   123  	0xf8, 0x01, 0x01, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f,
   124  	0x75, 0x64, 0x2e, 0x49, 0x61, 0x6d, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61,
   125  	0x6c, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43,
   126  	0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x49, 0x61, 0x6d, 0x5c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74,
   127  	0x69, 0x61, 0x6c, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   128  }
   129  
   130  var file_google_iam_credentials_v1_iamcredentials_proto_goTypes = []interface{}{
   131  	(*GenerateAccessTokenRequest)(nil),  // 0: google.iam.credentials.v1.GenerateAccessTokenRequest
   132  	(*GenerateIdTokenRequest)(nil),      // 1: google.iam.credentials.v1.GenerateIdTokenRequest
   133  	(*SignBlobRequest)(nil),             // 2: google.iam.credentials.v1.SignBlobRequest
   134  	(*SignJwtRequest)(nil),              // 3: google.iam.credentials.v1.SignJwtRequest
   135  	(*GenerateAccessTokenResponse)(nil), // 4: google.iam.credentials.v1.GenerateAccessTokenResponse
   136  	(*GenerateIdTokenResponse)(nil),     // 5: google.iam.credentials.v1.GenerateIdTokenResponse
   137  	(*SignBlobResponse)(nil),            // 6: google.iam.credentials.v1.SignBlobResponse
   138  	(*SignJwtResponse)(nil),             // 7: google.iam.credentials.v1.SignJwtResponse
   139  }
   140  var file_google_iam_credentials_v1_iamcredentials_proto_depIdxs = []int32{
   141  	0, // 0: google.iam.credentials.v1.IAMCredentials.GenerateAccessToken:input_type -> google.iam.credentials.v1.GenerateAccessTokenRequest
   142  	1, // 1: google.iam.credentials.v1.IAMCredentials.GenerateIdToken:input_type -> google.iam.credentials.v1.GenerateIdTokenRequest
   143  	2, // 2: google.iam.credentials.v1.IAMCredentials.SignBlob:input_type -> google.iam.credentials.v1.SignBlobRequest
   144  	3, // 3: google.iam.credentials.v1.IAMCredentials.SignJwt:input_type -> google.iam.credentials.v1.SignJwtRequest
   145  	4, // 4: google.iam.credentials.v1.IAMCredentials.GenerateAccessToken:output_type -> google.iam.credentials.v1.GenerateAccessTokenResponse
   146  	5, // 5: google.iam.credentials.v1.IAMCredentials.GenerateIdToken:output_type -> google.iam.credentials.v1.GenerateIdTokenResponse
   147  	6, // 6: google.iam.credentials.v1.IAMCredentials.SignBlob:output_type -> google.iam.credentials.v1.SignBlobResponse
   148  	7, // 7: google.iam.credentials.v1.IAMCredentials.SignJwt:output_type -> google.iam.credentials.v1.SignJwtResponse
   149  	4, // [4:8] is the sub-list for method output_type
   150  	0, // [0:4] is the sub-list for method input_type
   151  	0, // [0:0] is the sub-list for extension type_name
   152  	0, // [0:0] is the sub-list for extension extendee
   153  	0, // [0:0] is the sub-list for field type_name
   154  }
   155  
   156  func init() { file_google_iam_credentials_v1_iamcredentials_proto_init() }
   157  func file_google_iam_credentials_v1_iamcredentials_proto_init() {
   158  	if File_google_iam_credentials_v1_iamcredentials_proto != nil {
   159  		return
   160  	}
   161  	file_google_iam_credentials_v1_common_proto_init()
   162  	type x struct{}
   163  	out := protoimpl.TypeBuilder{
   164  		File: protoimpl.DescBuilder{
   165  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   166  			RawDescriptor: file_google_iam_credentials_v1_iamcredentials_proto_rawDesc,
   167  			NumEnums:      0,
   168  			NumMessages:   0,
   169  			NumExtensions: 0,
   170  			NumServices:   1,
   171  		},
   172  		GoTypes:           file_google_iam_credentials_v1_iamcredentials_proto_goTypes,
   173  		DependencyIndexes: file_google_iam_credentials_v1_iamcredentials_proto_depIdxs,
   174  	}.Build()
   175  	File_google_iam_credentials_v1_iamcredentials_proto = out.File
   176  	file_google_iam_credentials_v1_iamcredentials_proto_rawDesc = nil
   177  	file_google_iam_credentials_v1_iamcredentials_proto_goTypes = nil
   178  	file_google_iam_credentials_v1_iamcredentials_proto_depIdxs = nil
   179  }
   180  
   181  // Reference imports to suppress errors if they are not otherwise used.
   182  var _ context.Context
   183  var _ grpc.ClientConnInterface
   184  
   185  // This is a compile-time assertion to ensure that this generated file
   186  // is compatible with the grpc package it is being compiled against.
   187  const _ = grpc.SupportPackageIsVersion6
   188  
   189  // IAMCredentialsClient is the client API for IAMCredentials service.
   190  //
   191  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   192  type IAMCredentialsClient interface {
   193  	// Generates an OAuth 2.0 access token for a service account.
   194  	GenerateAccessToken(ctx context.Context, in *GenerateAccessTokenRequest, opts ...grpc.CallOption) (*GenerateAccessTokenResponse, error)
   195  	// Generates an OpenID Connect ID token for a service account.
   196  	GenerateIdToken(ctx context.Context, in *GenerateIdTokenRequest, opts ...grpc.CallOption) (*GenerateIdTokenResponse, error)
   197  	// Signs a blob using a service account's system-managed private key.
   198  	SignBlob(ctx context.Context, in *SignBlobRequest, opts ...grpc.CallOption) (*SignBlobResponse, error)
   199  	// Signs a JWT using a service account's system-managed private key.
   200  	SignJwt(ctx context.Context, in *SignJwtRequest, opts ...grpc.CallOption) (*SignJwtResponse, error)
   201  }
   202  
   203  type iAMCredentialsClient struct {
   204  	cc grpc.ClientConnInterface
   205  }
   206  
   207  func NewIAMCredentialsClient(cc grpc.ClientConnInterface) IAMCredentialsClient {
   208  	return &iAMCredentialsClient{cc}
   209  }
   210  
   211  func (c *iAMCredentialsClient) GenerateAccessToken(ctx context.Context, in *GenerateAccessTokenRequest, opts ...grpc.CallOption) (*GenerateAccessTokenResponse, error) {
   212  	out := new(GenerateAccessTokenResponse)
   213  	err := c.cc.Invoke(ctx, "/google.iam.credentials.v1.IAMCredentials/GenerateAccessToken", in, out, opts...)
   214  	if err != nil {
   215  		return nil, err
   216  	}
   217  	return out, nil
   218  }
   219  
   220  func (c *iAMCredentialsClient) GenerateIdToken(ctx context.Context, in *GenerateIdTokenRequest, opts ...grpc.CallOption) (*GenerateIdTokenResponse, error) {
   221  	out := new(GenerateIdTokenResponse)
   222  	err := c.cc.Invoke(ctx, "/google.iam.credentials.v1.IAMCredentials/GenerateIdToken", in, out, opts...)
   223  	if err != nil {
   224  		return nil, err
   225  	}
   226  	return out, nil
   227  }
   228  
   229  func (c *iAMCredentialsClient) SignBlob(ctx context.Context, in *SignBlobRequest, opts ...grpc.CallOption) (*SignBlobResponse, error) {
   230  	out := new(SignBlobResponse)
   231  	err := c.cc.Invoke(ctx, "/google.iam.credentials.v1.IAMCredentials/SignBlob", in, out, opts...)
   232  	if err != nil {
   233  		return nil, err
   234  	}
   235  	return out, nil
   236  }
   237  
   238  func (c *iAMCredentialsClient) SignJwt(ctx context.Context, in *SignJwtRequest, opts ...grpc.CallOption) (*SignJwtResponse, error) {
   239  	out := new(SignJwtResponse)
   240  	err := c.cc.Invoke(ctx, "/google.iam.credentials.v1.IAMCredentials/SignJwt", in, out, opts...)
   241  	if err != nil {
   242  		return nil, err
   243  	}
   244  	return out, nil
   245  }
   246  
   247  // IAMCredentialsServer is the server API for IAMCredentials service.
   248  type IAMCredentialsServer interface {
   249  	// Generates an OAuth 2.0 access token for a service account.
   250  	GenerateAccessToken(context.Context, *GenerateAccessTokenRequest) (*GenerateAccessTokenResponse, error)
   251  	// Generates an OpenID Connect ID token for a service account.
   252  	GenerateIdToken(context.Context, *GenerateIdTokenRequest) (*GenerateIdTokenResponse, error)
   253  	// Signs a blob using a service account's system-managed private key.
   254  	SignBlob(context.Context, *SignBlobRequest) (*SignBlobResponse, error)
   255  	// Signs a JWT using a service account's system-managed private key.
   256  	SignJwt(context.Context, *SignJwtRequest) (*SignJwtResponse, error)
   257  }
   258  
   259  // UnimplementedIAMCredentialsServer can be embedded to have forward compatible implementations.
   260  type UnimplementedIAMCredentialsServer struct {
   261  }
   262  
   263  func (*UnimplementedIAMCredentialsServer) GenerateAccessToken(context.Context, *GenerateAccessTokenRequest) (*GenerateAccessTokenResponse, error) {
   264  	return nil, status.Errorf(codes.Unimplemented, "method GenerateAccessToken not implemented")
   265  }
   266  func (*UnimplementedIAMCredentialsServer) GenerateIdToken(context.Context, *GenerateIdTokenRequest) (*GenerateIdTokenResponse, error) {
   267  	return nil, status.Errorf(codes.Unimplemented, "method GenerateIdToken not implemented")
   268  }
   269  func (*UnimplementedIAMCredentialsServer) SignBlob(context.Context, *SignBlobRequest) (*SignBlobResponse, error) {
   270  	return nil, status.Errorf(codes.Unimplemented, "method SignBlob not implemented")
   271  }
   272  func (*UnimplementedIAMCredentialsServer) SignJwt(context.Context, *SignJwtRequest) (*SignJwtResponse, error) {
   273  	return nil, status.Errorf(codes.Unimplemented, "method SignJwt not implemented")
   274  }
   275  
   276  func RegisterIAMCredentialsServer(s *grpc.Server, srv IAMCredentialsServer) {
   277  	s.RegisterService(&_IAMCredentials_serviceDesc, srv)
   278  }
   279  
   280  func _IAMCredentials_GenerateAccessToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   281  	in := new(GenerateAccessTokenRequest)
   282  	if err := dec(in); err != nil {
   283  		return nil, err
   284  	}
   285  	if interceptor == nil {
   286  		return srv.(IAMCredentialsServer).GenerateAccessToken(ctx, in)
   287  	}
   288  	info := &grpc.UnaryServerInfo{
   289  		Server:     srv,
   290  		FullMethod: "/google.iam.credentials.v1.IAMCredentials/GenerateAccessToken",
   291  	}
   292  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   293  		return srv.(IAMCredentialsServer).GenerateAccessToken(ctx, req.(*GenerateAccessTokenRequest))
   294  	}
   295  	return interceptor(ctx, in, info, handler)
   296  }
   297  
   298  func _IAMCredentials_GenerateIdToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   299  	in := new(GenerateIdTokenRequest)
   300  	if err := dec(in); err != nil {
   301  		return nil, err
   302  	}
   303  	if interceptor == nil {
   304  		return srv.(IAMCredentialsServer).GenerateIdToken(ctx, in)
   305  	}
   306  	info := &grpc.UnaryServerInfo{
   307  		Server:     srv,
   308  		FullMethod: "/google.iam.credentials.v1.IAMCredentials/GenerateIdToken",
   309  	}
   310  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   311  		return srv.(IAMCredentialsServer).GenerateIdToken(ctx, req.(*GenerateIdTokenRequest))
   312  	}
   313  	return interceptor(ctx, in, info, handler)
   314  }
   315  
   316  func _IAMCredentials_SignBlob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   317  	in := new(SignBlobRequest)
   318  	if err := dec(in); err != nil {
   319  		return nil, err
   320  	}
   321  	if interceptor == nil {
   322  		return srv.(IAMCredentialsServer).SignBlob(ctx, in)
   323  	}
   324  	info := &grpc.UnaryServerInfo{
   325  		Server:     srv,
   326  		FullMethod: "/google.iam.credentials.v1.IAMCredentials/SignBlob",
   327  	}
   328  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   329  		return srv.(IAMCredentialsServer).SignBlob(ctx, req.(*SignBlobRequest))
   330  	}
   331  	return interceptor(ctx, in, info, handler)
   332  }
   333  
   334  func _IAMCredentials_SignJwt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   335  	in := new(SignJwtRequest)
   336  	if err := dec(in); err != nil {
   337  		return nil, err
   338  	}
   339  	if interceptor == nil {
   340  		return srv.(IAMCredentialsServer).SignJwt(ctx, in)
   341  	}
   342  	info := &grpc.UnaryServerInfo{
   343  		Server:     srv,
   344  		FullMethod: "/google.iam.credentials.v1.IAMCredentials/SignJwt",
   345  	}
   346  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   347  		return srv.(IAMCredentialsServer).SignJwt(ctx, req.(*SignJwtRequest))
   348  	}
   349  	return interceptor(ctx, in, info, handler)
   350  }
   351  
   352  var _IAMCredentials_serviceDesc = grpc.ServiceDesc{
   353  	ServiceName: "google.iam.credentials.v1.IAMCredentials",
   354  	HandlerType: (*IAMCredentialsServer)(nil),
   355  	Methods: []grpc.MethodDesc{
   356  		{
   357  			MethodName: "GenerateAccessToken",
   358  			Handler:    _IAMCredentials_GenerateAccessToken_Handler,
   359  		},
   360  		{
   361  			MethodName: "GenerateIdToken",
   362  			Handler:    _IAMCredentials_GenerateIdToken_Handler,
   363  		},
   364  		{
   365  			MethodName: "SignBlob",
   366  			Handler:    _IAMCredentials_SignBlob_Handler,
   367  		},
   368  		{
   369  			MethodName: "SignJwt",
   370  			Handler:    _IAMCredentials_SignJwt_Handler,
   371  		},
   372  	},
   373  	Streams:  []grpc.StreamDesc{},
   374  	Metadata: "google/iam/credentials/v1/iamcredentials.proto",
   375  }
   376  

View as plain text