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/extended_operations.proto 18 19 package com.google.cloud; 20 21 public final class ExtendedOperationsProto { ExtendedOperationsProto()22 private ExtendedOperationsProto() {} 23 registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry)24 public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { 25 registry.add(com.google.cloud.ExtendedOperationsProto.operationField); 26 registry.add(com.google.cloud.ExtendedOperationsProto.operationRequestField); 27 registry.add(com.google.cloud.ExtendedOperationsProto.operationResponseField); 28 registry.add(com.google.cloud.ExtendedOperationsProto.operationService); 29 registry.add(com.google.cloud.ExtendedOperationsProto.operationPollingMethod); 30 } 31 registerAllExtensions(com.google.protobuf.ExtensionRegistry registry)32 public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { 33 registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); 34 } 35 36 public static final int OPERATION_FIELD_FIELD_NUMBER = 1149; 37 /** 38 * 39 * 40 * <pre> 41 * A field annotation that maps fields in an API-specific Operation object to 42 * their standard counterparts in google.longrunning.Operation. See 43 * OperationResponseMapping enum definition. 44 * </pre> 45 * 46 * <code>extend .google.protobuf.FieldOptions { ... }</code> 47 */ 48 public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< 49 com.google.protobuf.DescriptorProtos.FieldOptions, 50 com.google.cloud.OperationResponseMapping> 51 operationField = 52 com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension( 53 com.google.cloud.OperationResponseMapping.class, null); 54 55 public static final int OPERATION_REQUEST_FIELD_FIELD_NUMBER = 1150; 56 /** 57 * 58 * 59 * <pre> 60 * A field annotation that maps fields in the initial request message 61 * (the one which started the LRO) to their counterparts in the polling 62 * request message. For non-standard LRO, the polling response may be missing 63 * some of the information needed to make a subsequent polling request. The 64 * missing information (for example, project or region ID) is contained in the 65 * fields of the initial request message that this annotation must be applied 66 * to. The string value of the annotation corresponds to the name of the 67 * counterpart field in the polling request message that the annotated field's 68 * value will be copied to. 69 * </pre> 70 * 71 * <code>extend .google.protobuf.FieldOptions { ... }</code> 72 */ 73 public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< 74 com.google.protobuf.DescriptorProtos.FieldOptions, java.lang.String> 75 operationRequestField = 76 com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension( 77 java.lang.String.class, null); 78 79 public static final int OPERATION_RESPONSE_FIELD_FIELD_NUMBER = 1151; 80 /** 81 * 82 * 83 * <pre> 84 * A field annotation that maps fields in the polling request message to their 85 * counterparts in the initial and/or polling response message. The initial 86 * and the polling methods return an API-specific Operation object. Some of 87 * the fields from that response object must be reused in the subsequent 88 * request (like operation name/ID) to fully identify the polled operation. 89 * This annotation must be applied to the fields in the polling request 90 * message, the string value of the annotation must correspond to the name of 91 * the counterpart field in the Operation response object whose value will be 92 * copied to the annotated field. 93 * </pre> 94 * 95 * <code>extend .google.protobuf.FieldOptions { ... }</code> 96 */ 97 public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< 98 com.google.protobuf.DescriptorProtos.FieldOptions, java.lang.String> 99 operationResponseField = 100 com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension( 101 java.lang.String.class, null); 102 103 public static final int OPERATION_SERVICE_FIELD_NUMBER = 1249; 104 /** 105 * 106 * 107 * <pre> 108 * A method annotation that maps an LRO method (the one which starts an LRO) 109 * to the service, which will be used to poll for the operation status. The 110 * annotation must be applied to the method which starts an LRO, the string 111 * value of the annotation must correspond to the name of the service used to 112 * poll for the operation status. 113 * </pre> 114 * 115 * <code>extend .google.protobuf.MethodOptions { ... }</code> 116 */ 117 public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< 118 com.google.protobuf.DescriptorProtos.MethodOptions, java.lang.String> 119 operationService = 120 com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension( 121 java.lang.String.class, null); 122 123 public static final int OPERATION_POLLING_METHOD_FIELD_NUMBER = 1250; 124 /** 125 * 126 * 127 * <pre> 128 * A method annotation that marks methods that can be used for polling 129 * operation status (e.g. the MyPollingService.Get(MyPollingRequest) method). 130 * </pre> 131 * 132 * <code>extend .google.protobuf.MethodOptions { ... }</code> 133 */ 134 public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< 135 com.google.protobuf.DescriptorProtos.MethodOptions, java.lang.Boolean> 136 operationPollingMethod = 137 com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension( 138 java.lang.Boolean.class, null); 139 getDescriptor()140 public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 141 return descriptor; 142 } 143 144 private static com.google.protobuf.Descriptors.FileDescriptor descriptor; 145 146 static { 147 java.lang.String[] descriptorData = { 148 "\n&google/cloud/extended_operations.proto" 149 + "\022\014google.cloud\032 google/protobuf/descript" 150 + "or.proto*b\n\030OperationResponseMapping\022\r\n\t" 151 + "UNDEFINED\020\000\022\010\n\004NAME\020\001\022\n\n\006STATUS\020\002\022\016\n\nERR" 152 + "OR_CODE\020\003\022\021\n\rERROR_MESSAGE\020\004:_\n\017operatio" 153 + "n_field\022\035.google.protobuf.FieldOptions\030\375" 154 + "\010 \001(\0162&.google.cloud.OperationResponseMa" 155 + "pping:?\n\027operation_request_field\022\035.googl" 156 + "e.protobuf.FieldOptions\030\376\010 \001(\t:@\n\030operat" 157 + "ion_response_field\022\035.google.protobuf.Fie" 158 + "ldOptions\030\377\010 \001(\t::\n\021operation_service\022\036." 159 + "google.protobuf.MethodOptions\030\341\t \001(\t:A\n\030" 160 + "operation_polling_method\022\036.google.protob" 161 + "uf.MethodOptions\030\342\t \001(\010By\n\020com.google.cl" 162 + "oudB\027ExtendedOperationsProtoP\001ZCgoogle.g" 163 + "olang.org/genproto/googleapis/cloud/exte" 164 + "ndedops;extendedops\242\002\004GAPIb\006proto3" 165 }; 166 descriptor = 167 com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( 168 descriptorData, 169 new com.google.protobuf.Descriptors.FileDescriptor[] { 170 com.google.protobuf.DescriptorProtos.getDescriptor(), 171 }); 172 operationField.internalInit(descriptor.getExtensions().get(0)); 173 operationRequestField.internalInit(descriptor.getExtensions().get(1)); 174 operationResponseField.internalInit(descriptor.getExtensions().get(2)); 175 operationService.internalInit(descriptor.getExtensions().get(3)); 176 operationPollingMethod.internalInit(descriptor.getExtensions().get(4)); com.google.protobuf.DescriptorProtos.getDescriptor()177 com.google.protobuf.DescriptorProtos.getDescriptor(); 178 } 179 180 // @@protoc_insertion_point(outer_class_scope) 181 } 182