diff --git a/README.md b/README.md index 75c73587..cc4f811e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ -# Samples of using the [Google APIs Client Library for Java](https://github.com/google/google-api-java-client) -For a complete list of Google APIs, visit https://developers.google.com/api-client-library/java/apis/ +![status: inactive](https://img.shields.io/badge/status-inactive-red.svg) + +Please see [GoogleAPIs/google-api-java-client-services](https://github.com/googleapis/google-api-java-client-services#google-java-api-client-services) for this repositories successor. + + +# Samples of using the [Google APIs Client Library for Java](https://github.com/googleapis/google-api-java-client) +For a complete list of Google APIs, visit https://github.com/googleapis/google-api-java-client-services#supported-google-apis diff --git a/adexchangeseller-cmdline-sample/pom.xml b/adexchangeseller-cmdline-sample/pom.xml index e8894782..996bd184 100644 --- a/adexchangeseller-cmdline-sample/pom.xml +++ b/adexchangeseller-cmdline-sample/pom.xml @@ -114,7 +114,7 @@ com.google.apis google-api-services-adexchangeseller - v1.1-rev21-1.19.0 + v1.1-rev142-1.23.0 com.google.http-client @@ -128,8 +128,8 @@ - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/adsense-cmdline-sample/pom.xml b/adsense-cmdline-sample/pom.xml index a21baa08..dc6d915b 100644 --- a/adsense-cmdline-sample/pom.xml +++ b/adsense-cmdline-sample/pom.xml @@ -114,7 +114,7 @@ com.google.apis google-api-services-adsense - v1.3-rev54-1.19.0 + v1.4-rev323-1.23.0 com.google.http-client @@ -128,8 +128,8 @@ - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/adsensehost-cmdline-sample/pom.xml b/adsensehost-cmdline-sample/pom.xml index 77c574e8..08510538 100644 --- a/adsensehost-cmdline-sample/pom.xml +++ b/adsensehost-cmdline-sample/pom.xml @@ -114,7 +114,7 @@ com.google.apis google-api-services-adsensehost - v4.1-rev96-1.19.0 + v4.1-rev395-1.23.0 com.google.http-client @@ -128,8 +128,8 @@ - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/analytics-cmdline-sample/pom.xml b/analytics-cmdline-sample/pom.xml index ad7ce928..59a04033 100644 --- a/analytics-cmdline-sample/pom.xml +++ b/analytics-cmdline-sample/pom.xml @@ -114,7 +114,7 @@ com.google.apis google-api-services-analytics - v3-rev98-1.19.0 + v3-rev142-1.23.0 com.google.http-client @@ -128,8 +128,8 @@ - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/bigquery-appengine-sample/pom.xml b/bigquery-appengine-sample/pom.xml index f1a19dbf..1ef01872 100644 --- a/bigquery-appengine-sample/pom.xml +++ b/bigquery-appengine-sample/pom.xml @@ -14,9 +14,9 @@ war - v2-rev154-1.19.0 + v2-rev359-1.23.0 1.1.5 - 1.19.0 + 1.23.0 1.8.3 ${project.build.directory}/${project.build.finalName} UTF-8 diff --git a/books-cmdline-sample/pom.xml b/books-cmdline-sample/pom.xml index cd675f9a..9debbd2b 100644 --- a/books-cmdline-sample/pom.xml +++ b/books-cmdline-sample/pom.xml @@ -114,7 +114,7 @@ com.google.apis google-api-services-books - v1-rev57-1.19.0 + v1-rev93-1.23.0 com.google.http-client @@ -123,8 +123,8 @@ - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/calendar-android-sample/build.gradle b/calendar-android-sample/build.gradle index 8d8feae2..107dd795 100644 --- a/calendar-android-sample/build.gradle +++ b/calendar-android-sample/build.gradle @@ -6,9 +6,9 @@ repositories { } dependencies { - compile 'com.google.apis:google-api-services-calendar:v3-rev87-1.19.0' exclude module: 'httpclient' - compile 'com.google.api-client:google-api-client-android:1.19.0' exclude module: 'httpclient' - compile 'com.google.http-client:google-http-client-gson:1.19.0' exclude module: 'httpclient' + compile 'com.google.apis:google-api-services-calendar:v3-rev260-1.23.0' exclude module: 'httpclient' + compile 'com.google.api-client:google-api-client-android:1.23.0' exclude module: 'httpclient' + compile 'com.google.http-client:google-http-client-gson:1.23.0' exclude module: 'httpclient' compile 'com.google.android.gms:play-services-identity:7.3.0' } @@ -35,6 +35,4 @@ android { proguardFile getDefaultProguardFile('proguard-android.txt') } } - } - diff --git a/calendar-appengine-sample/pom.xml b/calendar-appengine-sample/pom.xml index 5e96ed0b..c3943ef2 100644 --- a/calendar-appengine-sample/pom.xml +++ b/calendar-appengine-sample/pom.xml @@ -267,7 +267,7 @@ com.google.apis google-api-services-calendar - v3-rev87-1.19.0 + v3-rev260-1.23.0 com.google.api-client diff --git a/calendar-cmdline-sample/pom.xml b/calendar-cmdline-sample/pom.xml index cc201419..cea49bd5 100644 --- a/calendar-cmdline-sample/pom.xml +++ b/calendar-cmdline-sample/pom.xml @@ -114,7 +114,7 @@ com.google.apis google-api-services-calendar - v3-rev87-1.19.0 + v3-rev260-1.23.0 com.google.http-client @@ -128,8 +128,8 @@ - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/compute-engine-cmdline-sample/pom.xml b/compute-engine-cmdline-sample/pom.xml index 38aeb1ab..7d56d090 100644 --- a/compute-engine-cmdline-sample/pom.xml +++ b/compute-engine-cmdline-sample/pom.xml @@ -124,12 +124,12 @@ com.google.apis google-api-services-compute - v1-rev27-1.19.0 + v1-rev158-1.23.0 - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/dfareporting-cmdline-sample/pom.xml b/dfareporting-cmdline-sample/pom.xml index 7442eb3b..a923851a 100644 --- a/dfareporting-cmdline-sample/pom.xml +++ b/dfareporting-cmdline-sample/pom.xml @@ -109,7 +109,7 @@ com.google.apis google-api-services-dfareporting - v1.3-rev21-1.19.0 + v2.8-rev2-1.23.0 com.google.http-client @@ -128,8 +128,8 @@ - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/discovery-cmdline-sample/pom.xml b/discovery-cmdline-sample/pom.xml index 81b1137f..403942d6 100644 --- a/discovery-cmdline-sample/pom.xml +++ b/discovery-cmdline-sample/pom.xml @@ -137,7 +137,7 @@ com.google.apis google-api-services-discovery - v1-rev45-1.19.0 + v1-rev61-1.23.0 com.google.http-client @@ -156,8 +156,8 @@ - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/drive-cmdline-sample/pom.xml b/drive-cmdline-sample/pom.xml index 021ea2cc..5e386d33 100644 --- a/drive-cmdline-sample/pom.xml +++ b/drive-cmdline-sample/pom.xml @@ -114,7 +114,7 @@ com.google.apis google-api-services-drive - v2-rev135-1.19.0 + v3-rev86-1.23.0 com.google.http-client @@ -133,8 +133,8 @@ - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/fusiontables-cmdline-sample/pom.xml b/fusiontables-cmdline-sample/pom.xml index 2764723f..90e3aa50 100644 --- a/fusiontables-cmdline-sample/pom.xml +++ b/fusiontables-cmdline-sample/pom.xml @@ -112,7 +112,7 @@ com.google.apis google-api-services-fusiontables - v1-rev52-1.19.0 + v2-rev19-1.23.0 com.google.http-client @@ -126,8 +126,8 @@ - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/oauth2-cmdline-sample/pom.xml b/oauth2-cmdline-sample/pom.xml index 8a8bf7e1..f09b2f5e 100644 --- a/oauth2-cmdline-sample/pom.xml +++ b/oauth2-cmdline-sample/pom.xml @@ -114,7 +114,7 @@ com.google.apis google-api-services-oauth2 - v2-rev75-1.19.0 + v2-rev131-1.23.0 com.google.http-client @@ -128,8 +128,8 @@ - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/plus-appengine-sample/pom.xml b/plus-appengine-sample/pom.xml index ca722623..b239b342 100644 --- a/plus-appengine-sample/pom.xml +++ b/plus-appengine-sample/pom.xml @@ -33,7 +33,7 @@ - 1.19.0 + 1.23.0 1.8.3 ${project.build.directory}/${project.build.finalName} @@ -160,7 +160,7 @@ com.google.apis google-api-services-plus - v1-rev137-1.19.0 + v1-rev530-1.23.0 com.google.api-client diff --git a/plus-cmdline-sample/pom.xml b/plus-cmdline-sample/pom.xml index 611b0f15..04090bec 100644 --- a/plus-cmdline-sample/pom.xml +++ b/plus-cmdline-sample/pom.xml @@ -114,7 +114,7 @@ com.google.apis google-api-services-plus - v1-rev137-1.19.0 + v1-rev530-1.23.0 com.google.http-client @@ -128,8 +128,8 @@ - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/plus-preview-appengine-sample/pom.xml b/plus-preview-appengine-sample/pom.xml index 382e5a12..008b6089 100644 --- a/plus-preview-appengine-sample/pom.xml +++ b/plus-preview-appengine-sample/pom.xml @@ -34,7 +34,7 @@ - 1.15.0-rc + 1.23.0 ${project.build.directory}/${project.build.finalName} UTF-8 @@ -163,7 +163,7 @@ com.google.apis google-api-services-plus - v1-rev137-1.19.0 + v1-rev530-1.23.0 com.google.api-client diff --git a/plus-preview-appengine-sample/src/main/java/com/google/api/services/samples/plus/Utils.java b/plus-preview-appengine-sample/src/main/java/com/google/api/services/samples/plus/Utils.java index 6b3d9219..e5f21649 100644 --- a/plus-preview-appengine-sample/src/main/java/com/google/api/services/samples/plus/Utils.java +++ b/plus-preview-appengine-sample/src/main/java/com/google/api/services/samples/plus/Utils.java @@ -19,7 +19,7 @@ import com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow; import com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets; import com.google.api.client.http.GenericUrl; -import com.google.api.client.json.jackson.JacksonFactory; +import com.google.api.client.json.jackson2.JacksonFactory; import com.google.api.client.util.Preconditions; import com.google.api.services.plus.PlusScopes; import com.google.appengine.api.users.User; diff --git a/plus-serviceaccount-cmdline-sample/pom.xml b/plus-serviceaccount-cmdline-sample/pom.xml index b485af8c..21564ba1 100644 --- a/plus-serviceaccount-cmdline-sample/pom.xml +++ b/plus-serviceaccount-cmdline-sample/pom.xml @@ -114,7 +114,7 @@ com.google.apis google-api-services-plus - v1-rev137-1.19.0 + v1-rev530-1.23.0 com.google.http-client @@ -128,7 +128,7 @@ - 1.19.0 + 1.23.0 UTF-8 diff --git a/prediction-cmdline-sample/pom.xml b/prediction-cmdline-sample/pom.xml index 3ecf3eed..66a43be2 100644 --- a/prediction-cmdline-sample/pom.xml +++ b/prediction-cmdline-sample/pom.xml @@ -114,12 +114,12 @@ com.google.apis google-api-services-prediction - v1.6-rev54-1.21.0 + v1.6-rev66-1.23.0 com.google.apis google-api-services-storage - v1-rev54-1.21.0 + v1-rev112-1.23.0 com.google.http-client @@ -133,8 +133,8 @@ - 1.21.0 - 1.21.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/siteVerification-cmdline-sample/pom.xml b/siteVerification-cmdline-sample/pom.xml index 407fa217..44339513 100644 --- a/siteVerification-cmdline-sample/pom.xml +++ b/siteVerification-cmdline-sample/pom.xml @@ -114,7 +114,7 @@ com.google.apis google-api-services-siteVerification - v1-rev37-1.19.0 + v1-rev51-1.23.0 com.google.http-client @@ -128,8 +128,8 @@ - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/storage-cmdline-sample/pom.xml b/storage-cmdline-sample/pom.xml index 256ec4ee..42bead18 100644 --- a/storage-cmdline-sample/pom.xml +++ b/storage-cmdline-sample/pom.xml @@ -98,7 +98,7 @@ com.google.apis google-api-services-storage - v1-rev33-1.20.0 + v1-rev112-1.23.0 com.google.http-client @@ -109,9 +109,9 @@ UTF-8 - 1.20.0 - 1.20.0 - 1.20.0 + 1.23.0 + 1.23.0 + 1.23.0 diff --git a/streetview-publish-cmdline-sample/.classpath b/streetview-publish-cmdline-sample/.classpath new file mode 100644 index 00000000..b61b819c --- /dev/null +++ b/streetview-publish-cmdline-sample/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/streetview-publish-cmdline-sample/.project b/streetview-publish-cmdline-sample/.project new file mode 100644 index 00000000..daae8bb5 --- /dev/null +++ b/streetview-publish-cmdline-sample/.project @@ -0,0 +1,23 @@ + + + streetview-publish-cmdline-sample + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/streetview-publish-cmdline-sample/.settings/org.eclipse.jdt.core.prefs b/streetview-publish-cmdline-sample/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..652b8127 --- /dev/null +++ b/streetview-publish-cmdline-sample/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,380 @@ +#Fri Nov 04 10:10:39 EDT 2011 +eclipse.preferences.version=1 +org.eclipse.jdt.core.codeComplete.argumentPrefixes= +org.eclipse.jdt.core.codeComplete.argumentSuffixes= +org.eclipse.jdt.core.codeComplete.fieldPrefixes= +org.eclipse.jdt.core.codeComplete.fieldSuffixes= +org.eclipse.jdt.core.codeComplete.localPrefixes= +org.eclipse.jdt.core.codeComplete.localSuffixes= +org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= +org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= +org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes= +org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes= +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=ignore +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.autoboxing=ignore +org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning +org.eclipse.jdt.core.compiler.problem.deadCode=warning +org.eclipse.jdt.core.compiler.problem.deprecation=warning +org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled +org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=enabled +org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore +org.eclipse.jdt.core.compiler.problem.emptyStatement=warning +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning +org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled +org.eclipse.jdt.core.compiler.problem.fieldHiding=warning +org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore +org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning +org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning +org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore +org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning +org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore +org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning +org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning +org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore +org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning +org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning +org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore +org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning +org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning +org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore +org.eclipse.jdt.core.compiler.problem.nullReference=warning +org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning +org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore +org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning +org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore +org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning +org.eclipse.jdt.core.compiler.problem.redundantNullCheck=warning +org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore +org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled +org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning +org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled +org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=warning +org.eclipse.jdt.core.compiler.problem.typeParameterHiding=ignore +org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning +org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore +org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=ignore +org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning +org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning +org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled +org.eclipse.jdt.core.compiler.problem.unusedImport=warning +org.eclipse.jdt.core.compiler.problem.unusedLabel=warning +org.eclipse.jdt.core.compiler.problem.unusedLocal=warning +org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore +org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled +org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled +org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning +org.eclipse.jdt.core.compiler.problem.unusedWarningToken=ignore +org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning +org.eclipse.jdt.core.compiler.source=1.6 +org.eclipse.jdt.core.formatter.align_type_members_on_columns=false +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_local_variable=569 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_member=569 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_package_declaration=569 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_parameter=24 +org.eclipse.jdt.core.formatter.alignment_for_annotations_on_type_declaration=569 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_assignment=16 +org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_compact_if=16 +org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=16 +org.eclipse.jdt.core.formatter.alignment_for_enum_constants=16|5|48 +org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16|5|80 +org.eclipse.jdt.core.formatter.alignment_for_field_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_for_statement=16 +org.eclipse.jdt.core.formatter.alignment_for_generic_type_arguments=16 +org.eclipse.jdt.core.formatter.alignment_for_local_variable_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 +org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 +org.eclipse.jdt.core.formatter.alignment_for_new_anonymous_class=0 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16|5|80 +org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16|5|80 +org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 +org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16|4|49 +org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16|4|48 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16|4|48 +org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16|4|48 +org.eclipse.jdt.core.formatter.blank_lines_after_imports=1 +org.eclipse.jdt.core.formatter.blank_lines_after_package=1 +org.eclipse.jdt.core.formatter.blank_lines_before_field=0 +org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 +org.eclipse.jdt.core.formatter.blank_lines_before_imports=0 +org.eclipse.jdt.core.formatter.blank_lines_before_member_type=0 +org.eclipse.jdt.core.formatter.blank_lines_before_method=1 +org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1 +org.eclipse.jdt.core.formatter.blank_lines_before_package=0 +org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 +org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=2 +org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line +org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false +org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false +org.eclipse.jdt.core.formatter.comment.format_block_comments=true +org.eclipse.jdt.core.formatter.comment.format_header=true +org.eclipse.jdt.core.formatter.comment.format_html=true +org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true +org.eclipse.jdt.core.formatter.comment.format_line_comments=true +org.eclipse.jdt.core.formatter.comment.format_source_code=false +org.eclipse.jdt.core.formatter.comment.indent_parameter_description=false +org.eclipse.jdt.core.formatter.comment.indent_root_tags=true +org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert +org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert +org.eclipse.jdt.core.formatter.comment.line_length=100 +org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true +org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true +org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false +org.eclipse.jdt.core.formatter.comment_new_line_at_start_of_html_paragraph=true +org.eclipse.jdt.core.formatter.compact_else_if=true +org.eclipse.jdt.core.formatter.continuation_indentation=2 +org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 +org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off +org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on +org.eclipse.jdt.core.formatter.force_if_else_statement_brace=true +org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false +org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true +org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true +org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_empty_lines=false +org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true +org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true +org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true +org.eclipse.jdt.core.formatter.indentation.size=4 +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert +org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=insert +org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert +org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert +org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert +org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert +org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert +org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert +org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert +org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert +org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert +org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert +org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert +org.eclipse.jdt.core.formatter.join_lines_in_comments=true +org.eclipse.jdt.core.formatter.join_wrapped_lines=true +org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false +org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false +org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=true +org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false +org.eclipse.jdt.core.formatter.lineSplit=100 +org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false +org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false +org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 +org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=3 +org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=false +org.eclipse.jdt.core.formatter.sort_local_variable_annotations=false +org.eclipse.jdt.core.formatter.sort_member_annotations=false +org.eclipse.jdt.core.formatter.sort_package_annotations=false +org.eclipse.jdt.core.formatter.sort_parameter_annotations=false +org.eclipse.jdt.core.formatter.sort_type_annotations=false +org.eclipse.jdt.core.formatter.tabulation.char=space +org.eclipse.jdt.core.formatter.tabulation.size=2 +org.eclipse.jdt.core.formatter.use_on_off_tags=false +org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false +org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true +org.eclipse.jdt.core.formatter.wrap_comment_inline_tags=false +org.eclipse.jdt.core.formatter.wrap_non_simple_local_variable_annotation=true +org.eclipse.jdt.core.formatter.wrap_non_simple_member_annotation=true +org.eclipse.jdt.core.formatter.wrap_non_simple_package_annotation=true +org.eclipse.jdt.core.formatter.wrap_non_simple_parameter_annotation=false +org.eclipse.jdt.core.formatter.wrap_non_simple_type_annotation=true +org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true +org.eclipse.jdt.core.formatter.wrap_prefer_two_fragments=false diff --git a/streetview-publish-cmdline-sample/.settings/org.eclipse.jdt.ui.prefs b/streetview-publish-cmdline-sample/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 00000000..96ded168 --- /dev/null +++ b/streetview-publish-cmdline-sample/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,118 @@ +cleanup.add_default_serial_version_id=true +cleanup.add_generated_serial_version_id=false +cleanup.add_missing_annotations=true +cleanup.add_missing_deprecated_annotations=true +cleanup.add_missing_methods=false +cleanup.add_missing_nls_tags=false +cleanup.add_missing_override_annotations=true +cleanup.add_serial_version_id=true +cleanup.always_use_blocks=true +cleanup.always_use_parentheses_in_expressions=false +cleanup.always_use_this_for_non_static_field_access=false +cleanup.always_use_this_for_non_static_method_access=false +cleanup.convert_to_enhanced_for_loop=false +cleanup.correct_indentation=true +cleanup.format_source_code=true +cleanup.format_source_code_changes_only=false +cleanup.make_local_variable_final=true +cleanup.make_parameters_final=false +cleanup.make_private_fields_final=true +cleanup.make_type_abstract_if_missing_method=false +cleanup.make_variable_declarations_final=false +cleanup.never_use_blocks=false +cleanup.never_use_parentheses_in_expressions=true +cleanup.organize_imports=true +cleanup.qualify_static_field_accesses_with_declaring_class=false +cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +cleanup.qualify_static_member_accesses_with_declaring_class=true +cleanup.qualify_static_method_accesses_with_declaring_class=false +cleanup.remove_private_constructors=true +cleanup.remove_trailing_whitespaces=true +cleanup.remove_trailing_whitespaces_all=true +cleanup.remove_trailing_whitespaces_ignore_empty=false +cleanup.remove_unnecessary_casts=true +cleanup.remove_unnecessary_nls_tags=true +cleanup.remove_unused_imports=true +cleanup.remove_unused_local_variables=false +cleanup.remove_unused_private_fields=true +cleanup.remove_unused_private_members=false +cleanup.remove_unused_private_methods=true +cleanup.remove_unused_private_types=true +cleanup.sort_members=false +cleanup.sort_members_all=false +cleanup.use_blocks=true +cleanup.use_blocks_only_for_return_and_throw=false +cleanup.use_parentheses_in_expressions=true +cleanup.use_this_for_non_static_field_access=true +cleanup.use_this_for_non_static_field_access_only_if_necessary=true +cleanup.use_this_for_non_static_method_access=true +cleanup.use_this_for_non_static_method_access_only_if_necessary=true +cleanup_profile=_google-api-java-client +cleanup_settings_version=2 +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +formatter_profile=_google-api-java-client 100 +formatter_settings_version=12 +org.eclipse.jdt.ui.exception.name=exception +org.eclipse.jdt.ui.gettersetter.use.is=false +org.eclipse.jdt.ui.ignorelowercasenames=true +org.eclipse.jdt.ui.importorder=com;org;;java;javax; +org.eclipse.jdt.ui.javadoc=true +org.eclipse.jdt.ui.keywordthis=false +org.eclipse.jdt.ui.ondemandthreshold=999 +org.eclipse.jdt.ui.overrideannotation=true +org.eclipse.jdt.ui.staticondemandthreshold=999 +org.eclipse.jdt.ui.text.custom_code_templates= +sp_cleanup.add_default_serial_version_id=true +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=true +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_missing_override_annotations_interface_methods=false +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_to_enhanced_for_loop=false +sp_cleanup.correct_indentation=false +sp_cleanup.format_source_code=false +sp_cleanup.format_source_code_changes_only=false +sp_cleanup.make_local_variable_final=false +sp_cleanup.make_parameters_final=false +sp_cleanup.make_private_fields_final=true +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=true +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=false +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=false +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_trailing_whitespaces=false +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=true +sp_cleanup.remove_unnecessary_nls_tags=false +sp_cleanup.remove_unused_imports=false +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_blocks=false +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_parentheses_in_expressions=false +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/streetview-publish-cmdline-sample/StreetViewSample.launch b/streetview-publish-cmdline-sample/StreetViewSample.launch new file mode 100644 index 00000000..1078c812 --- /dev/null +++ b/streetview-publish-cmdline-sample/StreetViewSample.launch @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/streetview-publish-cmdline-sample/instructions.html b/streetview-publish-cmdline-sample/instructions.html new file mode 100644 index 00000000..8965a8f4 --- /dev/null +++ b/streetview-publish-cmdline-sample/instructions.html @@ -0,0 +1,55 @@ + +streetview-publish-cmdline-sample + +

Instructions for the Street View Publish API V1 Command-Line Sample

+ +

Register Your Application

+ +
    +
  • Visit the Google Cloud + console and enable the Street View Publish API for your project. If + you do not have a project, you will need to create one before you do this. +
  • +
  • Go to the credentials + page for your project. +
  • +
  • Click "Create Credentials" and then "Help me Choose."
  • +
  • For "Which API are you using?" enter "Street View Publish API."
  • +
  • For "Where will you be calling the API from?" enter "Other UI (e.g. Windows, CLI tool)."
  • +
  • For "What data will you be accessing?" enter "User data."
  • +
  • Click "What credentials do I need?"
  • +
  • Follow the steps to create your credentials.
  • +
  • Find your credentials on the credentials + page, click on the entry, and then click "Download JSON." Copy the + downloaded file (e.g. ~/Downloads/client_secrets.json to + src/main/resources/client_secrets.json. + If you skip this step, when trying to run the sample you will get a 400 + INVALID_CLIENT error in the browser. +
  • +
+ +

Checkout Instructions

+ +

+ Prerequisites: install Java 6, Git, and Maven. You may need to + set your + JAVA_HOME + . +

+ +
+cd [someDirectory]
+git clone https://github.com/google/google-api-java-client-samples.git
+cd google-api-java-client-samples/streetview-publish-cmdline-sample
+cp ~/Downloads/client_secrets.json src/main/resources/client_secrets.json
+mvn compile
+mvn -q exec:java
+  
+ +

To enable logging of HTTP requests and responses (highly recommended + when developing), please take a look at logging.properties.

+ + + diff --git a/streetview-publish-cmdline-sample/logging.properties b/streetview-publish-cmdline-sample/logging.properties new file mode 100644 index 00000000..96157a5f --- /dev/null +++ b/streetview-publish-cmdline-sample/logging.properties @@ -0,0 +1,10 @@ +# Properties file which configures the operation of the JDK logging facility. +# The system will look for this config file to be specified as a system property: +# -Djava.util.logging.config.file=${project_loc:streetview-publish-cmdline-sample}/logging.properties + +# Set up the console handler (uncomment "level" to show more fine-grained messages) +handlers = java.util.logging.ConsoleHandler +#java.util.logging.ConsoleHandler.level = CONFIG + +# Set up logging of HTTP requests and responses (uncomment "level" to show) +#com.google.api.client.http.level = CONFIG diff --git a/streetview-publish-cmdline-sample/pom.xml b/streetview-publish-cmdline-sample/pom.xml new file mode 100644 index 00000000..cdf6d09c --- /dev/null +++ b/streetview-publish-cmdline-sample/pom.xml @@ -0,0 +1,139 @@ + + 4.0.0 + + com.google + google + 5 + + com.google.apis-samples + streetview-publish-cmdline-sample + 1.0.0 + Example for the Street View Publish API using JSON and OAuth 2.0 + + http://code.google.com/p/google-api-java-client/ + + + code.google.com + http://code.google.com/p/google-api-java-client/issues/list + + + 2017 + + + 2.0.9 + + + + + + maven-compiler-plugin + 2.3.2 + + 1.6 + 1.6 + + + + org.codehaus.mojo + exec-maven-plugin + 1.1 + + + + java + + + + + com.google.api.services.samples.streetview.publish.cmdline.StreetViewPublishSample + + + java.util.logging.config.file + logging.properties + + + + + + maven-checkstyle-plugin + 2.6 + + ../checkstyle.xml + true + false + + + + + check + + + + + + org.codehaus.mojo + findbugs-maven-plugin + 2.3.2 + + false + + + + + check + + + + + + ${project.artifactId}-${project.version} + + + + commons-httpclient + commons-httpclient + 3.1 + + + org.apache.httpcomponents + httpmime + 4.5.3 + + + org.apache.httpcomponents + httpclient + 4.5.3 + + + com.google.streetview.publish + java-streetview-publish + 0.1.1 + + + com.google.http-client + google-http-client-jackson2 + ${project.http.version} + + + com.google.oauth-client + google-oauth-client-jetty + ${project.oauth.version} + + + com.google.apis + google-api-services-oauth2 + v2-rev131-1.23.0 + + + com.google.api + gax + 1.5.0 + + + + 1.23.0 + 1.23.0 + UTF-8 + + diff --git a/streetview-publish-cmdline-sample/src/main/java/com/google/api/services/samples/streetview/publish/cmdline/StreetViewPublishSample.java b/streetview-publish-cmdline-sample/src/main/java/com/google/api/services/samples/streetview/publish/cmdline/StreetViewPublishSample.java new file mode 100644 index 00000000..b2cd9a2a --- /dev/null +++ b/streetview-publish-cmdline-sample/src/main/java/com/google/api/services/samples/streetview/publish/cmdline/StreetViewPublishSample.java @@ -0,0 +1,183 @@ +/* + * Copyright (c) 2017 Google Inc. + * + * 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. + */ + +package com.google.api.services.samples.streetview.publish.cmdline; + +import com.google.api.client.auth.oauth2.Credential; +import com.google.api.client.extensions.java6.auth.oauth2.AuthorizationCodeInstalledApp; +import com.google.api.client.extensions.jetty.auth.oauth2.LocalServerReceiver; +import com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow; +import com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets; +import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport; +import com.google.api.client.http.HttpTransport; +import com.google.api.client.json.JsonFactory; +import com.google.api.client.json.jackson2.JacksonFactory; +import com.google.api.client.util.store.DataStoreFactory; +import com.google.api.client.util.store.FileDataStoreFactory; +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.auth.Credentials; +import com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Photo; +import com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.Pose; +import com.google.geo.ugc.streetview.publish.v1.StreetViewPublishResources.UploadRef; +import com.google.geo.ugc.streetview.publish.v1.StreetViewPublishServiceGrpc; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import com.google.streetview.publish.v1.StreetViewPublishServiceClient; +import com.google.streetview.publish.v1.StreetViewPublishServiceSettings; +import com.google.type.LatLng; +import java.io.IOException; +import java.io.InputStreamReader; +import java.net.URI; +import java.net.URL; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.apache.commons.httpclient.methods.ByteArrayRequestEntity; +import org.apache.http.HttpResponse; +import org.apache.http.client.HttpClient; +import org.apache.http.client.entity.EntityBuilder; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.impl.client.DefaultHttpClient; + +/** + * @author Louis O'Bryan + */ +public class StreetViewPublishSample { + + /** + * Be sure to specify the name of your application. If the application name is {@code null} or + * blank, the application will log a warning. Suggested format is "MyCompany-ProductName/1.0". + */ + private static final String APPLICATION_NAME = ""; + + /** Directory to store user credentials. */ + private static final java.io.File DATA_STORE_DIR = + new java.io.File(System.getProperty("user.home"), ".store/streetview_publish_sample"); + + /** + * Global instance of the {@link DataStoreFactory}. The best practice is to make it a single + * globally shared instance across your application. + */ + private static FileDataStoreFactory dataStoreFactory; + + /** Global instance of the HTTP transport. */ + private static HttpTransport httpTransport; + + /** Global instance of the JSON factory. */ + private static final JsonFactory JSON_FACTORY = JacksonFactory.getDefaultInstance(); + + private static Credential credential; + + /** Authorizes the installed application to access user's protected data. */ + private static Credential authorize() throws Exception { + // load client secrets + GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, + new InputStreamReader(StreetViewPublishSample.class.getResourceAsStream("/client_secrets.json"))); + if (clientSecrets.getDetails().getClientId().startsWith("Enter") + || clientSecrets.getDetails().getClientSecret().startsWith("Enter ")) { + System.out.println( + "Enter Client ID and Secret from https://console.cloud.google.com/apis/credentials " + + "into streetview-publish-cmdline-sample/src/main/resources/client_secrets.json"); + System.exit(1); + } + // set up authorization code flow + GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder( + httpTransport, JSON_FACTORY, clientSecrets, + Arrays.asList("https://www.googleapis.com/auth/streetviewpublish") + ).setDataStoreFactory( + dataStoreFactory).build(); + // authorize + return new AuthorizationCodeInstalledApp(flow, new LocalServerReceiver()).authorize("user"); + } + + public static void main(String[] args) { + try { + httpTransport = GoogleNetHttpTransport.newTrustedTransport(); + dataStoreFactory = new FileDataStoreFactory(DATA_STORE_DIR); + + // Authorize. + credential = authorize(); + System.out.println("Access token: " + credential.getAccessToken()); + + // Build a client to interact with the API. + StreetViewPublishServiceSettings settings = + StreetViewPublishServiceSettings.defaultBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(new Credentials() { + public String getAuthenticationType() { + return "OAuth2"; + } + public Map> getRequestMetadata(URI uri) throws IOException { + Map> map = new HashMap>(); + List list = new ArrayList(); + list.add("Bearer " + credential.getAccessToken()); + map.put("Authorization", list); + return map; + } + public boolean hasRequestMetadata() { return true; } + public boolean hasRequestMetadataOnly() { return true; } + public void refresh() throws IOException { } + })) + .build(); + StreetViewPublishServiceClient client = StreetViewPublishServiceClient.create(settings); + + // Request upload url. + UploadRef uploadRef = client.startUploadCallable().futureCall(Empty.newBuilder().build()).get(); + System.out.println("Requested upload url: " + uploadRef); + + // Upload photo bytes. + HttpPost request = new HttpPost(uploadRef.getUploadUrl()); + request.addHeader("Authorization", "Bearer " + credential.getAccessToken()); + request.addHeader("Content-Type", "image/jpeg"); + request.addHeader("x-Goog-Upload-protocol", "raw"); + URL url = StreetViewPublishSample.class.getResource("/sample.jpg"); + Path path = Paths.get(url.toURI()); + byte[] data = Files.readAllBytes(path); + request.addHeader("X-Goog-Upload-Content-Length", String.valueOf(data.length)); + request.setEntity(EntityBuilder.create().setBinary(data).build()); + + HttpClient httpClient = new DefaultHttpClient(); + HttpResponse response = httpClient.execute(request); + System.out.println("Http response: " + response); + + // Upload photo metadata. + Photo photo = client.createPhoto(Photo.newBuilder() + .setUploadReference(uploadRef) + .setCaptureTime(Timestamp.newBuilder().setSeconds(System.currentTimeMillis() / 1000)) + .setPose(Pose.newBuilder() + .setHeading(105d) + .setLatLngPair(LatLng.newBuilder() + .setLatitude(46.7512623d) + .setLongitude(-121.9376983d) + .build()) + .build() + ) + .build()); + + System.out.println("Uploaded photo metadata: " + photo); + return; + } catch (IOException e) { + System.err.println(e.getMessage()); + } catch (Throwable t) { + t.printStackTrace(); + } + System.exit(1); + } + +} diff --git a/streetview-publish-cmdline-sample/src/main/resources/client_secrets.json b/streetview-publish-cmdline-sample/src/main/resources/client_secrets.json new file mode 100644 index 00000000..e448bab9 --- /dev/null +++ b/streetview-publish-cmdline-sample/src/main/resources/client_secrets.json @@ -0,0 +1,6 @@ +{ + "installed": { + "client_id": "Enter Client ID", + "client_secret": "Enter Client Secret" + } +} diff --git a/streetview-publish-cmdline-sample/src/main/resources/sample.jpg b/streetview-publish-cmdline-sample/src/main/resources/sample.jpg new file mode 100644 index 00000000..7dfb7bb8 Binary files /dev/null and b/streetview-publish-cmdline-sample/src/main/resources/sample.jpg differ diff --git a/taskqueue-cmdline-sample/pom.xml b/taskqueue-cmdline-sample/pom.xml index 53ac99ee..0012918f 100644 --- a/taskqueue-cmdline-sample/pom.xml +++ b/taskqueue-cmdline-sample/pom.xml @@ -114,7 +114,7 @@ com.google.apis google-api-services-taskqueue - v1beta2-rev33-1.19.0 + v1beta2-rev46-1.23.0 com.google.http-client @@ -128,8 +128,8 @@ - 1.19.0 - 1.19.0 + 1.23.0 + 1.23.0 UTF-8 diff --git a/tasks-android-sample/build.gradle b/tasks-android-sample/build.gradle index be54c296..fad4b097 100644 --- a/tasks-android-sample/build.gradle +++ b/tasks-android-sample/build.gradle @@ -6,9 +6,9 @@ repositories { } dependencies { - compile 'com.google.apis:google-api-services-tasks:v1-rev35-1.19.0' exclude module: 'httpclient' - compile 'com.google.api-client:google-api-client-android:1.19.0' exclude module: 'httpclient' - compile 'com.google.http-client:google-http-client-gson:1.19.0' exclude module: 'httpclient' + compile 'com.google.apis:google-api-services-tasks:v1-rev48-1.23.0' exclude module: 'httpclient' + compile 'com.google.api-client:google-api-client-android:1.23.0' exclude module: 'httpclient' + compile 'com.google.http-client:google-http-client-gson:1.23.0' exclude module: 'httpclient' compile 'com.google.android.gms:play-services-identity:7.3.0' } diff --git a/urlshortener-robots-appengine-sample/pom.xml b/urlshortener-robots-appengine-sample/pom.xml index a3a9c6df..3c7e3623 100644 --- a/urlshortener-robots-appengine-sample/pom.xml +++ b/urlshortener-robots-appengine-sample/pom.xml @@ -49,8 +49,8 @@ 1.1.5 - 1.8.3 - 1.19.0 + 1.9.58 + 1.23.0 ${project.build.directory}/${project.build.finalName} UTF-8 @@ -244,7 +244,7 @@ com.google.apis google-api-services-urlshortener - v1-rev33-1.19.0 + v1-rev49-1.23.0 com.google.appengine