This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corresponding PR in gax-java: googleapis/gax-java#21 Change-Id: I21f902118c48eed94e086d09b7bdbfb0ffa4a791
- Loading branch information
1 parent
623b35d
commit f7b9b39
Showing
8 changed files
with
1,040 additions
and
695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
@snippet fileHeader(service) | ||
/* | ||
* Copyright 2015 Google Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License | ||
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
* or implied. See the License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
|
||
/* | ||
* EDITING INSTRUCTIONS | ||
* This file was generated from the file | ||
* https://github.com/google/googleapis/blob/master/{@service.getFile().getSimpleName()} | ||
* and updates to that file get reflected here through a refresh process. | ||
* For the short term, the refresh process will only be runnable by Google engineers. | ||
* Manual additions are allowed because the refresh process performs | ||
* a 3-way merge in order to preserve those manual additions. In order to not | ||
* break the refresh process, only certain types of modifications are | ||
* allowed. | ||
* | ||
* Allowed modifications - currently these are the only types allowed: | ||
* 1. New methods (these should be added to the end of the class) | ||
* 2. New imports | ||
* 3. Additional documentation between "manual edit" demarcations | ||
* | ||
* Happy editing! | ||
*/ | ||
|
||
@end | ||
|
||
@snippet autoGenClassWarning() | ||
// AUTO-GENERATED DOCUMENTATION AND CLASS - see instructions at the top of the file for editing. | ||
@end | ||
|
||
@snippet autoGenServiceWarning() | ||
// AUTO-GENERATED DOCUMENTATION AND SERVICE - see instructions at the top of the file for editing. | ||
@end | ||
|
||
@snippet autoGenMethodWarning() | ||
// AUTO-GENERATED DOCUMENTATION AND METHOD - see instructions at the top of the file for editing. | ||
@end | ||
|
||
@snippet settingsClassName(service) | ||
{@service.getSimpleName}Settings | ||
@end | ||
|
||
@snippet javaDoc(protoElement) | ||
{@javaDocStart()} | ||
{@javaDocLines(protoElement)} | ||
{@javaDocEmptyLine()} | ||
{@javaDocManualEdit()} | ||
{@javaDocEnd()} | ||
@end | ||
|
||
@snippet javaDocStart() | ||
/** | ||
@end | ||
|
||
@snippet javaDocLines(protoElement) | ||
@join commentLine : context.getJavaDocLines(getDoc(protoElement)) | ||
{@commentLine} | ||
@end | ||
@end | ||
|
||
@snippet javaDocEmptyLine() | ||
@let lineBarrier = "" | ||
{@lineBarrier} * | ||
@end | ||
@end | ||
|
||
@snippet javaDocManualEdit() | ||
@let lineBarrier = "" | ||
{@lineBarrier} * <!-- manual edit --> | ||
{@lineBarrier} * <!-- end manual edit --> | ||
@end | ||
@end | ||
|
||
@snippet javaDocEnd() | ||
@let lineBarrier = "" | ||
{@lineBarrier} */ | ||
@end | ||
@end | ||
|
||
@snippet getDoc(protoElement) | ||
{@context.getDescription(protoElement)} | ||
@end | ||
|
||
@snippet setCallName(field) | ||
@let paramNameInCamel = context.lowerUnderscoreToUpperCamel(field.getSimpleName) | ||
@if field.getType.isMap | ||
putAll{@paramNameInCamel} | ||
@else | ||
@if field.isRepeated | ||
addAll{@paramNameInCamel} | ||
@else | ||
set{@paramNameInCamel} | ||
@end | ||
@end | ||
@end | ||
@end | ||
|
||
@snippet getCallName(field) | ||
@let paramNameInCamel = context.lowerUnderscoreToUpperCamel(field.getSimpleName) | ||
@if field.isRepeated | ||
get{@paramNameInCamel}List | ||
@else | ||
get{@paramNameInCamel} | ||
@end | ||
@end | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.